continued troubles compiling kernel

Ralph Siemsen ralphs at netwinder.org
Sat Jan 8 15:54:50 EST 2005


I forgot to mention, the limits.h that you want is the one that is part 
of the kernel source directory.  If you're trying to rebuild the src.rpm 
then the file is most probably:
/usr/src/redhat/BUILD/linux-2.4.19xxxx/include/linux/limits.h

or else wherever you did unpack the kernel tarball and apply the various 
patches to it.

Now when the compiler sees #include <linux/limits.h> then it will by 
default go looking in /usr/include/linux/limits.h  e.g. it will prefix 
/usr/include to the filename in question.  One way or another you have 
to get the right files to show up there... symbolic links are the way we 
usually handle this, though you could just copy the whole directory over 
(which will cause you grief when you later forget you did that, and try 
to build a newer kernel with the "old" header files).

-Ralph



More information about the Netwinder mailing list