3rd [Techtalk] kernel What have i done

Val Henson val at nmt.edu
Thu Aug 8 17:47:39 EST 2002


On Fri, Aug 09, 2002 at 07:37:36AM +1000, Malcolm Tredinnick wrote:
> 
> On Thu, Aug 08, 2002 at 02:48:42AM -0400, Andrew wrote:
> > 	Info:
> > 
> > 	from scriptd/mkdep.c:35
> > /usr/include/bits/local_lim.h36:26: linux/limits.h: Npsuch file or directory
> > make: *** [scripts/mkdep] Error 1
> 
> Aah .. I think I understand what's going on now (a little bit of
> guessing here, but maybe you can customise it to fit):
> 
> As the error message says, the problem is when one of the scripts wants
> to include /usr/include/bits/local_lim.h, which, in turn, wants to
> include /usr/include/linux/limits.h -- and the latter file does not
> exist.
> 
> Is there anything under /usr/include/linux?

Ah.  I should put this in the kernel hacking lessons.

Many distros ship with a complicated web of symbolic links that I
won't go into detail about here.  The bottom line is:

Make sure /usr/src/linux is a symlink to your current build tree, or
the build won't work.

So if you're compiling a kernel in /usr/src/linux-2.4.19, you need to
do:

cd /usr/src/
ln -s linux linux-2.4.19

And then your build will work.

-VAL



More information about the Techtalk mailing list