<quote who="Wienand Ian">

*snip*

> >Do they have to be in any particular place (e.g., if you were compiling
> >a kernel in /usr/home/cm/linux-2.4.19 should you stick them in 
> >/usr/home/cm? 
> 
> If you have the kernel source, then you already have the headers.  If you
> extracted your kernel to /usr/home/cm/linux-2.4.19 they are in the include/
> subdirectory.  If something you are compiling needs the kernel headers point
> them to this directory.  

This depends on whether you're talking about a module to load into the
current kernel or a user program which happens to needs constants or such
from the kernel source code. In particular, the header files in
/usr/include/linux and /usr/include/asm should be from the version of the
kernel that your glibc was compiled against.

Linus explained it on the kernel mailing list awhile ago and it ended up
being a FAQ:
http://www.tldp.org/LDP/lfs/LFS/chapter05/kernel.html
"5.14.3. Why we copy the kernel headers and don't symlink them"

Cheers,
J.

--
Jan Schmidt                                  [EMAIL PROTECTED]

Have you been half-asleep? Have you heard voices?
I've heard them calling my name...
 -Kermit the Frog (Rainbow Connection)
-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug

Reply via email to