Incorrect behaviour RE: /lib/cpp fails due to missing kernel includes!!!

Ranitha Mapatuna ranitha at optusnet.com.au
Fri Apr 11 19:19:35 GMT 2003


Hey,
	FYI, this symlinking of the linux header files of the current
kernel from /usr/src/linux or /usr/include/linux is incorrect strictly
speaking. The includes in /usr/include/linux should be from the kernel
that glibc was built against which is not necessarily the current one.

Ranitha

-----Original Message-----
From: lunar-bounces at lunar-linux.org
[mailto:lunar-bounces at lunar-linux.org] On Behalf Of Auke Kok
Sent: Friday, 11 April 2003 2:34 AM
To: Lunar Linux Mailing List! (all are welcome)
Subject: /lib/cpp fails due to missing kernel includes!!!


PLEASE READ:

SYMPTOM:
> configure: error: C preprocessor "/lib/cpp" fails sanity check

REASON:
the sole reason is that the kernel includes are not available. In lunar
we tend to keep the kernel includes in /usr/src/linux/include, and there
are appropriate symlinks in /usr/include/linux that point there.


CAUSE:
if the chain of symlinks to the right include dir is broken, cpp cannot
even include the basic set of includes, and therefore will break
completely.

FIX:
untar your kernel sources in /usr/src/ and symlink the correct kernel
version directory to /usr/src/linux (or lin linux to do it
automatically).

greetz,

sofar

-- 
Auke Kok <auke.kok at planet.nl>



More information about the Lunar mailing list