From
Lunar Linux.org
Q: configure: error: C preprocessor "/lib/cpp" fails sanity check ?
Submitted by nestu on Thu, 05/20/2004 - 14:27.
Your kernel headers are missing from /usr/include. This means the C PreProcessor cannot verify that it has the proper cached copies of those vital header files. You need to install the proper ones manually. Here's how:
1.
might work for you!
2. Otherwise:
Code:
mkdir -p /usr/include/{linux,asm}
to create the two target dirs, if needed. Then execute:
Code:
cp -av /usr/src/linux/include/linux /usr/include/
cp -av /usr/src/linux/include/asm/* /usr/include/asm/
to copy the files manually. Be warned that the second command has to be done this way since /usr/src/linux/include/asm is a softlink to your arch asm header files (asm points to asm-i386, on x86 machines). So if, on the other hand, you had copied
Code:
cp -av /usr/src/linux/include/asm /usr/include/
you would then get a softlink to nowhere under /usr/include/.
3. Last, you can always try to unpack the kernel tarball you have into /usr/src/linux and manaully link or copy the headers over yourself.