LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices



Reply
 
Search this Thread
Old 05-04-2009, 07:51 AM   #1
Nivix
LQ Newbie
 
Registered: Oct 2008
Posts: 7

Rep: Reputation: 0
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)

# rpm -qa | grep c++ gives the following:

compat-libstdc++-33-3.2.3-47.3
gcc-c++-3.4.6-9
compat-libstdc++-296-2.96-132.7.2
gcc4-c++-4.1.2-14.EL4
compat-gcc-32-c++-3.2.3-47.3
libstdc++-3.4.6-9
libstdc++-devel-3.4.6-9

# ls -l /lib/cpp Gives the following

lrwxrwxrwx 1 root root 14 Sep 18 2008 /lib/cpp -> ../usr/bin/cpp

-----------------------------------------------------------------------

Below is the entire out put of configure --enable-so command:

root|C:/usr/local/httpd-2.2.0> ./configure --enable-so

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 08:37 AM. Reason: to add more details
 
Old 05-04-2009, 01:55 PM   #2
TB0ne
Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 15,098

Rep: Reputation: 2719Reputation: 2719Reputation: 2719Reputation: 2719Reputation: 2719Reputation: 2719Reputation: 2719Reputation: 2719Reputation: 2719Reputation: 2719Reputation: 2719
Quote:
Originally Posted by Nivix View Post
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.

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.
 
Old 05-23-2009, 07:03 AM   #3
Nivix
LQ Newbie
 
Registered: Oct 2008
Posts: 7

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by TB0ne View Post
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:

glibc-kernheaders
glibc-headers
glibc-common
glibc-profile
gclibc-utils
glibc
glibc-devel

Apache nicely compiled and installed without a hitch...

Once again thanks to all for suggessions...

Regards,
-Mohanraj.S
 
Old 06-02-2009, 10:55 PM   #4
bg3075
Member
 
Registered: Apr 2009
Posts: 34

Rep: Reputation: 15
Quote:
Originally Posted by Nivix View Post
Thanks to everyone for suggessions... I have solved the problem by installing the follwoing rpms:

glibc-kernheaders
glibc-headers
glibc-common
glibc-profile
gclibc-utils
glibc
glibc-devel

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)?
 
  


Reply

Tags
check, configure, error, fails, libcpp, sanity


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
configure: error: C++ preprocessor "/lib/cpp" fails sanity check Mugatu Linux - Software 52 05-31-2012 11:27 AM
configure: error: C++ preprocessor "/lib/cpp" fails sanity check hagdanan Linux - Newbie 3 05-02-2008 04:55 AM
configure: error: C preprocessor "/lib/cpp" fails sanity check vennaas Linux - Newbie 1 02-06-2008 06:21 PM
configure: error: C preprocessor "/lib/cpp" fails sanity check rundata Linux - Newbie 2 01-16-2008 04:01 AM
configure: error: C++ preprocessor "/lib/cpp" fails sanity check the1wraith Linux - Software 1 02-18-2007 02:55 PM


All times are GMT -5. The time now is 03:57 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration