View Single Post
Old 02-10-03, 11:05 PM   #4
bwkaz
Registered User
 
Join Date: Sep 2002
Posts: 2,262
Default

Yeah, LFS does some strange things with the headers that get put into /usr/include/linux. You have to make sure that you're booted into your LFS kernel (not in chroot), and that the /lib/modules/<kernel version>/build symlink exists and points to the correct, configured, and built kernel source tree (mine, for reference, is /usr/src/linux-2.4.20). The nVidia Makefile looks for include files in /lib/modules/$(uname -r)/build/include, then in /usr/src/linux/include (which might still work, but isn't as foolproof), then in /usr/include, which is almost always wrong. I've noticed that sometimes, I have to recompile my kernel after booting to the LFS kernel for the first time, too, and I'm not positive why. Maybe the build symlink is broken? I don't know.
__________________
Registered Linux User #219692
bwkaz is offline   Reply With Quote