Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 07-19-2004, 03:54 AM   #1
LQ Newbie
Registered: Jul 2004
Distribution: Slackware, Ubuntu, DSL
Posts: 21

Rep: Reputation: 15
GCC error when installing GAIM

I've googled this a bit, and didn't really find anything for it.
Not really sure what to do here...
(I'm running Damn Small Linux, if that's of any help)

dsl@box:~/gaim-0.80$ ./configure
checking build system type... i586-pc-linux-gnulibc1
checking host system type... i586-pc-linux-gnulibc1
checking target system type... i586-pc-linux-gnulibc1
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... no
checking for sed... /bin/sed
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for style of include used by make... none
checking dependency style of gcc... none
checking for a sed that does not truncate output... /bin/sed
checking for egrep... grep -E
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
checking how to run the C preprocessor... /lib/cpp
configure: error: C preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details.
Old 07-19-2004, 06:51 AM   #2
Maxwell Rain
Registered: Apr 2004
Distribution: Ubuntu Feisty Fawn & Mandrake 2006.0 Free Edition
Posts: 31

Rep: Reputation: 15
From Lunar

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:

lin kernel-headers
might work for you!

2. Otherwise:
mkdir -p /usr/include/{linux,asm}
to create the two target dirs, if needed. Then execute:
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

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.

Last edited by Maxwell Rain; 07-19-2004 at 06:52 AM.
Old 08-20-2004, 02:48 PM   #3
LQ Newbie
Registered: Jun 2004
Posts: 9

Rep: Reputation: 0
Man ty so much. I am such a noob. I had kernel 2.4 installed and the source in /usr/src/linux

Last night i recompiled to kernel 2.6.81 and the source of that one was in /usr/src/linux-

I went and deleted the dir linux without ermakign a sympbolic link hehe or atleast rename the source of the new kernel.

Then today I tried to compile somethig ans it gave me that error that /lib/cpp didnt pass sanity check. I treid to install gcc 3.4 and atleast 25 other things before i gave up and asked my best buddy google.

And here was your post. hehe so simple but man linux doesnt forgive. Next time ill read the fuckn manual

Thanks buddy


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
error while installing gaim mardanian *BSD 1 01-17-2005 02:13 PM
gcc error when installing usb wireless for redhat 9 bernard_lee Linux - Wireless Networking 3 02-18-2004 10:11 AM
Problem Installing/Upgrading Gaim 0.60 or Gaim 0.71 AskMe Linux - Newbie 1 10-25-2003 09:00 PM
error installing gaim pls mp3province Linux - Software 23 07-16-2003 02:05 PM
error installing GCC +please help saurav_gohain Linux From Scratch 5 07-07-2003 12:30 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:21 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration