[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Rebuilding the Kernel Mini HOW TO



Colin Watson wrote:
> 
> On Tue, Oct 15, 2002 at 12:13:33PM +1000, Russell wrote:
> > Bob Nielsen wrote:
> > > AFAIK, the symlink is mostly used when compiling source which looks for
> > > headers in /usr/src/linux/include.
> >
> > That's what i understood, for other distros. I think for debian
> > you're supposed to do: ln -s /usr/include/linux/include /usr/src/linux
> 
> No, please, no ...
> 
> > If you *need* the headers in the current kernel, then you
> > add -I/usr/src/linux/include/ to the command line when compiling.
> >
> >   http://www.debian.org/doc/FAQ/ch-kernel.en.html#s-non-debian-kernel
> >
> > I think you need to apt-get the headers, because /usr/include/linux/include
> > doesn't seem to be on my system.
> 
> There's no such directory - just /usr/include/linux (for the kernel
> headers against which glibc was compiled, to be used when compiling
> userspace programs) and /usr/src/linux/include etc. (for the headers of
> the kernel of your choice, to be used when compiling drivers for that
> kernel). Don't mix the two.

That's what i thought. Is this a mistake in the manual? :
  http://www.debian.org/doc/FAQ/ch-kernel.en.html#s-non-debian-kernel



Reply to: