LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   C preprocessor "/lib/cpp" fails sanity check (https://www.linuxquestions.org/questions/linux-newbie-8/c-preprocessor-lib-cpp-fails-sanity-check-607395/)

sophisticate 12-17-2007 01:04 PM

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

Tinkster 12-17-2007 01:56 PM

It always pays to examine the config.log file ....



Cheers,
Tink

sophisticate 12-17-2007 02:04 PM

there alot of info in the config.log and i don't understand it can you me please... !!!

Tinkster 12-17-2007 02:15 PM

Look for the cpp ...



Cheers,
Tink

sophisticate 12-17-2007 02:25 PM

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

Tinkster 12-17-2007 02:44 PM

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

sophisticate 12-18-2007 03:30 AM

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

Tinkster 12-18-2007 11:36 AM

Quote:

Originally Posted by sophisticate (Post 2994410)
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

sophisticate 12-18-2007 01:13 PM

when I copied the code to the shell I got
glibc-devel-2.5-12

Tinkster 12-18-2007 02:00 PM

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

sophisticate 12-18-2007 02:10 PM

no it doesn't

Tinkster 12-18-2007 02:17 PM

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

sophisticate 12-18-2007 02:38 PM

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

sophisticate 12-19-2007 09:49 AM

no answer untill now


All times are GMT -5. The time now is 04:47 PM.