LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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

Reply
 
Search this Thread
Old 05-16-2005, 02:09 AM   #1
linux-rulz
Member
 
Registered: Dec 2004
Distribution: Windows XP Home, Ubuntu Hoary
Posts: 584

Rep: Reputation: 30
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
 
Old 05-16-2005, 02:44 AM   #2
Zeistler
Member
 
Registered: May 2004
Distribution: Slackware
Posts: 108

Rep: Reputation: 15
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
 
Old 05-16-2005, 02:55 AM   #3
linux-rulz
Member
 
Registered: Dec 2004
Distribution: Windows XP Home, Ubuntu Hoary
Posts: 584

Original Poster
Rep: Reputation: 30
/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.
 
Old 05-16-2005, 03:03 AM   #4
Harmaa Kettu
Member
 
Registered: Apr 2005
Location: Finland
Posts: 196

Rep: Reputation: 30
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.
 
Old 05-16-2005, 04:00 AM   #5
linux-rulz
Member
 
Registered: Dec 2004
Distribution: Windows XP Home, Ubuntu Hoary
Posts: 584

Original Poster
Rep: Reputation: 30
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!
 
  


Reply


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
/lib/cpp fails sanity check on KUbuntu Cipher01 Ubuntu 2 09-25-2005 08:28 PM
/lib/cpp fails sanity check problem Varius Linux - Software 1 08-26-2005 12:13 AM
cpp fails sanity check??? dinolinux Debian 2 07-30-2005 11:43 AM
/lib/cpp fails sanity check? NonSumPisces Linux - Software 2 10-02-2004 07:46 AM
??? c++ prprocessor /lib/cpp fails sanity check ???? Killah Linux - Newbie 7 03-30-2004 02:39 PM


All times are GMT -5. The time now is 04:51 AM.

Main Menu
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