configure: error: C preprocessor "/lib/cpp" fails sanity check
Red HatThis forum is for the discussion of Red Hat Linux.
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.
configure: error: C preprocessor "/lib/cpp" fails sanity check
Dear Friends,
I have Acer G540 Server with RHEL 4 Update 6 + Oracle 10 g Installed. Some applications required web server and i have downloaded httpd-2.2.0 and installed with the following configure option.
#configure --enable-so
I received the following error at the end...
-------------------------------------------------
checking how to run the C preprocessor... /lib/cpp
configure: error: C preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details.
configure failed for srclib/apr
--------------------------------------------------
I have gcc-3.4.3EL4 and gcc-c++-3.4.3-9EL4 installed
#c++ -v or g++ -v gives the following result:
Reading specs from /usr/lib/gcc/i386-redhat-linux/3.4.6/specs
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-checking --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-java-awt=gtk --host=i386-redhat-linux
Thread model: posix
gcc version 3.4.6 20060404 (Red Hat 3.4.6-9)
checking for chosen layout... Apache
checking for working mkdir -p... yes
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
Configuring Apache Portable Runtime library ...
checking for APR... reconfig
configuring package in srclib/apr now
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
Configuring APR library
Platform: i686-pc-linux-gnu
checking for working mkdir -p... yes
APR Version: 1.2.2
checking for chosen layout... apr
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 ANSI C... none needed
Applying APR hints file rules for i686-pc-linux-gnu
setting CPPFLAGS to "-DLINUX=2"
adding "-D_REENTRANT" to CPPFLAGS
adding "-D_GNU_SOURCE" to CPPFLAGS
(Default will be unix)
checking whether make sets $(MAKE)... yes
checking how to run the C preprocessor... /lib/cpp
configure: error: C preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details.
configure failed for srclib/apr
---------------------------------------------------------------
I tried the net and our linuxQuestions.org but no particular solution for RHEL...
Kindly someone help me to solve the problem please...
Thanks & Regards,
Mohanraj.S
Last edited by Nivix; 05-04-2009 at 07:37 AM.
Reason: to add more details
I have Acer G540 Server with RHEL 4 Update 6 + Oracle 10 g Installed. Some applications required web server and i have downloaded httpd-2.2.0 and installed with the following configure option.
I tried the net and our linuxQuestions.org but no particular solution for RHEL...
Ok...as root, type in "yum install apache2". Press enter. Apache will then be downloaded and installed. Is there a particular reason you're downloading/compiling from source?
Also, RedHat support can easily help you with this...you're paying for phone/web support when you purchase RedHat Enterprise. They will support anything you can ask them.
Ok...as root, type in "yum install apache2". Press enter. Apache will then be downloaded and installed. Is there a particular reason you're downloading/compiling from source?
Also, RedHat support can easily help you with this...you're paying for phone/web support when you purchase RedHat Enterprise. They will support anything you can ask them.
Thanks to everyone for suggessions... I have solved the problem by installing the follwoing rpms:
Apache nicely compiled and installed without a hitch...
Once again thanks to all for suggessions...
Regards,
-Mohanraj.S
Nivix,
where from/how did you install the glibc-xxx libraries, I think I have the same problem; yum returns the same error when trying to ./configure or install (usually 3rd party packages)?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.