LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 12-17-2007, 01:04 PM   #1
sophisticate
Member
 
Registered: Oct 2007
Distribution: CentOS 5
Posts: 39

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


Hi
I was tryin to load support for ntfs so I downloaded ntsfprgs,fuse,ntsfprogs-gnome and ntsfprogs-devel and when I started to configure the fuse I got this message

checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
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 ISO C89... unsupported
checking dependency style of gcc... gcc3
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for fgrep... /bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 32768
checking whether the shell understands some XSI constructs... yes
checking for /usr/bin/ld option to reload object files... -r
checking how to recognise dependent libraries... pass_all
checking for ar... ar
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking how to run the C preprocessor... /lib/cpp
configure: error: C preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details.
and i setup gcc and cpp but I still have the same message can any body help please and I hope my message is clear because there alot of points I'm not able to express because I'm totally new in linux
 
Old 12-17-2007, 01:56 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
It always pays to examine the config.log file ....



Cheers,
Tink
 
Old 12-17-2007, 02:04 PM   #3
sophisticate
Member
 
Registered: Oct 2007
Distribution: CentOS 5
Posts: 39

Original Poster
Rep: Reputation: 15
there alot of info in the config.log and i don't understand it can you me please... !!!
 
Old 12-17-2007, 02:15 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Look for the cpp ...



Cheers,
Tink
 
Old 12-17-2007, 02:25 PM   #5
sophisticate
Member
 
Registered: Oct 2007
Distribution: CentOS 5
Posts: 39

Original Poster
Rep: Reputation: 15
what about this part

Syntax error
configure:5684: /lib/cpp conftest.c
In file included from conftest.c:11:
/usr/include/limits.h:125:26: error: no include path in which to search for limits.h
configure:5690: $? = 1
configure: failed program was:
| /* confdefs.h. */
| #define PACKAGE_NAME "fuse"
| #define PACKAGE_TARNAME "fuse"
| #define PACKAGE_VERSION "2.7.1"
| #define PACKAGE_STRING "fuse 2.7.1"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "fuse"
| #define VERSION "2.7.1"
| /* end confdefs.h. */
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
 
Old 12-17-2007, 02:44 PM   #6
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Well done. Now check if you have the kernel and/or libc development files
installed, which limits.h is part of.

In this context: it helps if you mention your distro (either in the post,
or in your profile [if you're only using one - and you haven't changed it
very recently :}]).



Cheers,
Tink
 
Old 12-18-2007, 03:30 AM   #7
sophisticate
Member
 
Registered: Oct 2007
Distribution: CentOS 5
Posts: 39

Original Poster
Rep: Reputation: 15
Now check if you have the kernel and/or libc development files
installed, which limits.h is part of.

I'm sorry I don't know how to do that can you clarify this to please and regarding the distro that I'm using well I'm using centos 5
 
Old 12-18-2007, 11:36 AM   #8
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Quote:
Originally Posted by sophisticate View Post
I'm sorry I don't know how to do that can you clarify this to please and regarding the distro that I'm using well I'm using centos 5
I'm not a Centos expert, so there's probably a more elegant way
of doing this...

Code:
rpm -qa | egrep "dev"|egrep "(libc|kernel)"

Cheers,
Tink
 
Old 12-18-2007, 01:13 PM   #9
sophisticate
Member
 
Registered: Oct 2007
Distribution: CentOS 5
Posts: 39

Original Poster
Rep: Reputation: 15
when I copied the code to the shell I got
glibc-devel-2.5-12
 
Old 12-18-2007, 02:00 PM   #10
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Now if you do
Code:
rpm -ql glibc-devel-2.5-12| grep limit
Does that show you the header the config.log file was complaining about?


Cheers,
Tink
 
Old 12-18-2007, 02:10 PM   #11
sophisticate
Member
 
Registered: Oct 2007
Distribution: CentOS 5
Posts: 39

Original Poster
Rep: Reputation: 15
no it doesn't
 
Old 12-18-2007, 02:17 PM   #12
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Hmmm ... Try installing the kernel-source (or kernel-header, again, I don't know
much about Centos package management) package, then, since it wasn't listed in
the output of the first grep. Is there a GUI tool in centos that allows you to
search for available packages?


Cheers,
Tink
 
Old 12-18-2007, 02:38 PM   #13
sophisticate
Member
 
Registered: Oct 2007
Distribution: CentOS 5
Posts: 39

Original Poster
Rep: Reputation: 15
i tried to install the kernel and kernel header but told me the the package is already installed and i installed kernel devel but the problem still exist
 
Old 12-19-2007, 09:49 AM   #14
sophisticate
Member
 
Registered: Oct 2007
Distribution: CentOS 5
Posts: 39

Original Poster
Rep: Reputation: 15
no answer untill now
 
  


Reply



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
C++ preprocessor "/lib/cpp" fails sanity check zoidb3rg Linux - Newbie 1 04-27-2007 04:20 AM
error: C++ preprocessor "/lib/cpp" fails sanity check i.you Linux - Software 3 03-06-2007 02:24 AM
error: C preprocessor "/lib/cpp" fails sanity check ankit4u1 Linux - Software 2 04-02-2006 12:24 PM
error: C preprocessor "/lib/cpp" fails sanity check Master Fox Linux - Software 0 10-14-2004 03:39 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:15 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration