Linux - Software This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
03-09-2009, 03:16 PM
|
#1
|
LQ Newbie
Registered: Jul 2008
Posts: 17
Rep:
|
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,
thanks for your advice!!!
|
|
|
03-09-2009, 03:26 PM
|
#2
|
LQ Guru
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Rep: 
|
You apparently don't have the full GCC develpment package installed.
Try this:
Quote:
yum install gcc gcc-c++ autoconf automake
|
Or (which I suspect you already tried...but it didn't succeed):
Quote:
yum groupinstall 'Development Tools'
|
|
|
|
03-09-2009, 04:04 PM
|
#3
|
LQ Newbie
Registered: Jul 2008
Posts: 17
Original Poster
Rep:
|
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?
thanks again for your help, i really apreciate it
|
|
|
03-09-2009, 08:58 PM
|
#4
|
LQ Guru
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Rep: 
|
Hi -
1. Try something like this:
Quote:
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.
|
|
|
03-10-2009, 01:25 AM
|
#5
|
LQ Newbie
Registered: Jul 2008
Posts: 17
Original Poster
Rep:
|
hey
i cannot compile it!!! it has been frustrating
here are the results of grep
gcc-gfortran-4.1.2-42.el5
gcc-objc-4.1.2-42.el5
libgcc-4.1.2-42.el5
gcc-gnat-4.1.2-42.el5
gcc-4.1.2-42.el5
gcc-c++-4.1.2-42.el5
here when i try to compile the source
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
thanks for your advise
|
|
|
03-10-2009, 09:15 AM
|
#6
|
LQ Guru
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Rep: 
|
Hi, again -
You've done everything "right" ...but you need to install one more package:
Quote:
yum install glibc-headers
|
Look here:
http://www.linuxquestions.org/questi...ectory-685758/
'Hope that helps .. PSM
Last edited by paulsm4; 03-10-2009 at 09:17 AM.
|
|
|
03-10-2009, 01:05 PM
|
#7
|
LQ Newbie
Registered: Jul 2008
Posts: 17
Original Poster
Rep:
|
it works now!!
however i don't know why that headers where absent from the install list
maybe an issue in centos software manager
thanks for your help guys =D !!!
|
|
|
03-10-2009, 01:39 PM
|
#8
|
LQ Guru
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Rep: 
|
Cool :-)
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.
But I'm glad we resolved the problem!
Happy compiling;-)
Your .. PSM
|
|
|
All times are GMT -5. The time now is 09:36 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|