LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 02-09-2007, 12:32 AM   #1
alkos333
Member
 
Registered: Dec 2006
Posts: 271

Rep: Reputation: 31
C preprocessor "/lib/cpp" fails sanity check


I'm using Slackware 11. When I was trying to build a library for musicBrainz Picard tagger, I got the following error:

Code:
checking how to run the C preprocessor... /lib/cpp
configure: error: C preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details.
Failed
Here is log file mentioned in the error above: http://alkos333.net/config.log

I tried searching for a solution and found plenty of threads that basically suggested that gcc-g++ or gcc packages should be installed, but I seem to have everything installed already:

Code:
root@alkos333:/var/log/packages# ls g*
gawk-3.1.5-i486-3      gdk-pixbuf-0.22.0-i486-1   glib-1.2.10-i386-2             gnome-icon-theme-2.14.2-noarch-1
gcc-3.4.6-i486-1       genpower-1.0.5-i486-1      glib2-2.10.3-i486-1            gnupg-1.4.5-i486-1
gcc-g++-3.4.6-i486-1   getmail-4.6.3-noarch-1     glibc-2.3.6-i486-6             gpm-1.20.1-i486-2
gcc-g77-3.4.6-i486-1   gettext-0.15-i486-1        glibc-i18n-2.3.6-noarch-6      grep-2.5-i486-3
gcc-gnat-3.4.6-i486-1  gettext-tools-0.15-i486-1  glibc-profile-2.3.6-i486-6     groff-1.19.2-i486-1
gcc-java-3.4.6-i486-1  getty-ps-2.1.0b-i486-1     glibc-solibs-2.3.6-i486-6      gtk+-1.2.10-i386-3
gcc-objc-3.4.6-i486-1  gimp-2.2.13-i486-1         glibc-zoneinfo-2.3.6-noarch-6  gtk+2-2.8.20-i486-1
gd-2.0.33-i486-1       gimp-print-4.2.7-i486-2    glut-3.7-i486-1                gtk-gnutella-0.96.2-i486-1arf
gdb-6.5-i486-1         git-1.4.2.1-i486-1         gmp-4.2.1-i486-1               guile-1.8.0-i486-1
gdbm-1.8.3-i486-3      gkrellm-2.2.9-i486-1       gnet-2.0.7-i486-3              gzip-1.3.5-i486-1
Code:
root@alkos333:/var/log/packages# locate cc1       
/usr/libexec/gcc/i486-slackware-linux/3.4.6/cc1
/usr/libexec/gcc/i486-slackware-linux/3.4.6/cc1obj
/usr/libexec/gcc/i486-slackware-linux/3.4.6/cc1plus
Code:
root@alkos333:/var/log/packages# locate cpp
/lib/cpp -> /usr/bin/cpp*
/usr/bin/cpp
/usr/bin/winecpp
/usr/lib/gcc/i486-slackware-linux/3.4.6/adainclude/i-cpp.adb
/usr/lib/gcc/i486-slackware-linux/3.4.6/adainclude/i-cpp.ads
/usr/lib/gcc/i486-slackware-linux/3.4.6/adalib/i-cpp.ali
So I'm really not sure what's wrong here :/

Last edited by alkos333; 02-09-2007 at 01:01 AM.
 
Old 02-09-2007, 01:40 AM   #2
alkos333
Member
 
Registered: Dec 2006
Posts: 271

Original Poster
Rep: Reputation: 31
Solved

The problem has been solved. After reviewing config.log, I made a conclusion that kernel headers were missing, so I installed standard 2.4.33 kernel headers from a d/ directory and everything worked!
 
  


Reply


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: C++ preprocessor "/lib/cpp" fails sanity check marek345 Linux - Software 4 11-06-2008 09:49 AM
error: C preprocessor "/lib/cpp" fails sanity check ankit4u1 Linux - Software 2 04-02-2006 12:24 PM
C preprocessor "/lib/cpp" fails sanity check thomasw92 Linux - Newbie 6 03-27-2006 09:57 AM
c++ preprocessor "/lib/cpp" fails sanity check... siuyiu Mandriva 1 10-06-2005 05:49 PM
error: C preprocessor "/lib/cpp" fails sanity check Master Fox Linux - Software 0 10-14-2004 03:39 PM


All times are GMT -5. The time now is 07:49 PM.

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