LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   cpp fails sanity check? (http://www.linuxquestions.org/questions/linux-software-2/cpp-fails-sanity-check-323907/)

linux-rulz 05-16-2005 03:09 AM

cpp fails sanity check?
 
Hi all.

I am running CentOS 4.0, which is a fully compatable rebuild of Red Hat Enterprise Linux 4.

Quite often, when I am trying to compile stuff that compiles on every single other distribution of Linux I have used, I get this error. (I was attempting to compile Koffice in this case (I heard good things about the Chart function in KSpread)).

checking for FCC... no
checking for KCC... no
checking for RCC... no
checking for xlC_r... no
checking for xlC... no
checking whether we are using the GNU C++ compiler... no
checking whether g++ accepts -g... no
checking dependency style of g++... none
checking whether g++ supports -Wmissing-format-attribute... no
checking whether gcc supports -Wmissing-format-attribute... yes
checking whether g++ supports -Wundef... no
checking whether g++ supports -Wno-long-long... no
checking whether g++ supports -Wnon-virtual-dtor... no
checking how to run the C++ preprocessor... /lib/cpp
configure: error: C++ preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details.

Is this an error with the gcc package provided by Red Hat? Is there any other CentOS users or RHEL4 users that are experiencing this error. Thx for any help you can give me :-)

Ryan

Zeistler 05-16-2005 03:44 AM

Development tools
 
Hi

You are missing the development tools needed to compile the program. The easiest way to fix this is to instruct the installer to install them when you run it. If you are going to install them from inside the system it is going to be more difficult because different distros package them in different ways and I don't know exactly how Centrino packages them.

However here are some of the names you should look for when deciding which packages to install:

gcc
g++
make
autoconf
automake
libtool

linux-rulz 05-16-2005 03:55 AM

/lib/cpp is on my system. and all of those tools are installed. I have compiled other software packages on my system before. yum says they are all installed.

Harmaa Kettu 05-16-2005 04:03 AM

If I remember correctly that test uses some header from the kernel headers package so lack of that package is one possible cause.

Quote:

See `config.log' for more details.
Do like it says. There is a more descriptive error message in that file.

linux-rulz 05-16-2005 05:00 AM

OK, I have found out what the problem is. I thought the package name for the GNU C++ compiled was g++ like on Debian, but it isn't on Red Hat systems, it is gcc-c++. I installed that and it is working. Anyways, I will post back with any more problems that come up. Thx for the help!


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