C preprocessor "/lib/cpp" fails sanity check, cannot find stdio.h ???
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
C preprocessor "/lib/cpp" fails sanity check, cannot find stdio.h ???
hello
i'm trying to install FUSE, i want to mount a ntfs partition, the problem
is that when i run ./configure it fails with that message
C preprocessor "/lib/cpp" fails sanity check
checking the logs i've found it fails with this message
configure:3644: gcc -c -g -O2 conftest.c >&5
conftest.c:11:19: error: stdio.h: No such file or directory
conftest.c:12:23: error: sys/types.h: No such file or directory
conftest.c:13:22: error: sys/stat.h: No such file or directory
i'm running Centos 5.2, i have installed Developer tools,
i'm not sure why this happens
i have installed fuse on another machine succesfully, so i don't
know why it fails or how to correct it
i have searched the filesystem for that library, found it on
/usr/lib/bcc/include , however if i try to set a .configure variable
with that path it fails too,
i what to know how to fix that, and why that library is not where
it should be,
hello
thanks for your reply
gcc-c++ appears as installed, same for autoconf and automake, however i still have the same problem
is it possible to download and install the library manually???
if yes, what path is the apropriate???? or is it possible
to use another lib already installed?
rpm -qa|grep gcc
gcc-c++-2.96-54
gcc-2.96-54
gcc-g77-2.96-54
<= This is a very old Redhat .. you will *not* see this with your new CentOS...
... but it *should* give you some idea if you've actually got GCC installed
2. Then try this:
Quote:
vi hello.c
Code:
#include <stdio.h>
int main (int argc, char *argv[])
{
printf ("Hello world!\n");
return 0;
}
gcc -o hello -Wall -g hello.c
ls -l hello -rwxr-xr-x 1 paulsm users 21313 Mar 9 18:02 hello
./hello Hello world!
<= This will tell us if you can compile *any* program that needs "stdio.h"
3. If things still aren't working, please post back what you find.
gcc -o test -Wall -g test.c
test.c:1:19: error: stdio.h: No such file or directory
test.c: In function ‘main’:
test.c:5: warning: implicit declaration of function ‘printf’
test.c:5: warning: incompatible implicit declaration of built-in function ‘printf’
i'm pretty confused !!, you can see gcc is there but the compiler can't find the libraries
And no, I don't know why you had to explicitly install the headers (independent of all the other components you installed), either. I've never had to do that before, on any *nix platform. I have no idea why CentOS does it that way.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.