Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 02-09-2007, 12:32 AM   #1
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:

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

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:

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-         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
root@alkos333:/var/log/packages# locate cc1       
root@alkos333:/var/log/packages# locate cpp
/lib/cpp -> /usr/bin/cpp*
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
Registered: Dec 2006
Posts: 271

Original Poster
Rep: Reputation: 31

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!


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 02:59 PM.

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