Andy Campbell usenet at
Tue Oct 22 12:13:32 PDT 2002

On Tue, 22 Oct 2002 11:13:24 +0100, Jeroen Coumans wrote:

> On Tuesday 22 October 2002 11:24, Andy Campbell wrote:
>> At the start of chapter 6 we copy the kernel headers to /usr/include
>> and create /usr/include/linux/autoconf.h with touch.
>> After we actually build the kernel, should do this again, or at least
>> copy a valid autoconf.h across ?
> Nope, IIRC (*) programs which use that autoconf.h are broken and need to
> be fixed to search for the correct headers. If it needs autoconf.h then
> it needs to link against the current, running kernel, not the headers
> against which glibc was build. It should use the symlink in
> /lib/modules/`uname -r`/build/.
> (*) Check the archives to be sure


I've just looked at the install script.  It asks for the kernel source
directory, then doesn't set the variable correctly so,

gcc  -w -O2 -I. -I$KERNELSRCDIR/include ...

get converted to 

gcc  -w -O2 -I. -I/include

I then reacted to the errors, so look in /usr/include

Unsubscribe: send email to listar at
and put 'unsubscribe lfs-support' in the subject header of the message

More information about the lfs-support mailing list