LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux > 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

Tags used in this thread
Popular LQ Tags , , , , ,

Reply
 
Thread Tools
Old 05-30-2006, 02:52 PM   #1
RAdams
Member
 
Registered: May 2006
Location: Cincinnati, Ohio
Distribution: Ubuntu 8.10, Fedora 10, CentOS Enterprise 4.7
Posts: 255
Thanked: 0
Angry cpp - I'm about to fail MY sanity check


[Log in to get rid of this advertisement]
Hello all. I'm trying to run a configure file programmed in c (snyce for kde, as it happens). It fails at the C Preprocessor (/lib/cpp failed sanity check) every time. I have all the applicable cpp apps installed from Livna (I'm running Fedora Core 5 x86_64), and gcc (including gcc-c++ and gcc-c) installed.

Does anyone have any idea why it might be repeatedly failing? Is there a simple test environment/procedure for this? I can post the log of the script that failed, or anything else that is needed.

Thanks everyone.
RAdams is offline  
Tag This Post , , , , ,
Reply With Quote
Old 05-30-2006, 02:59 PM   #2
lord_shadow
LQ Newbie
 
Registered: Oct 2004
Distribution: Debian
Posts: 19
Thanked: 0
I'm not sure, but try to check if you have installed g++ (not only gcc)
lord_shadow is offline     Reply With Quote
Old 05-30-2006, 09:54 PM   #3
Daws
Member
 
Registered: May 2006
Location: UK
Distribution: Debian, Linux From Scratch
Posts: 416
Thanked: 0
You may be missing a symlink in /lib to /usr/bin/cpp

run "ln -sv /usr/bin/cpp /lib" just to make sure its there. Other than that I dont know. Sorry
Daws is offline     Reply With Quote
Old 05-30-2006, 10:11 PM   #4
RAdams
Member
 
Registered: May 2006
Location: Cincinnati, Ohio
Distribution: Ubuntu 8.10, Fedora 10, CentOS Enterprise 4.7
Posts: 255
Thanked: 0

Original Poster
Quote:
Originally Posted by lord_shadow
I'm not sure, but try to check if you have installed g++ (not only gcc)
I did not see any package named g++.
RAdams is offline     Reply With Quote
Old 05-30-2006, 10:28 PM   #5
RAdams
Member
 
Registered: May 2006
Location: Cincinnati, Ohio
Distribution: Ubuntu 8.10, Fedora 10, CentOS Enterprise 4.7
Posts: 255
Thanked: 0

Original Poster
Quote:
Originally Posted by Daws
You may be missing a symlink in /lib to /usr/bin/cpp

run "ln -sv /usr/bin/cpp /lib" just to make sure its there. Other than that I dont know. Sorry
I created the link, but it did not change the situation.
RAdams is offline     Reply With Quote
Old 06-01-2006, 10:30 PM   #6
RAdams
Member
 
Registered: May 2006
Location: Cincinnati, Ohio
Distribution: Ubuntu 8.10, Fedora 10, CentOS Enterprise 4.7
Posts: 255
Thanked: 0

Original Poster
Update - I tried disabling SELinux, but that didn't do the trick.

I really need my C compiler to work... does anyone have an idea?
RAdams is offline     Reply With Quote
Old 06-01-2006, 11:11 PM   #7
jc_cpu
Member
 
Registered: May 2006
Distribution: Fedora 8 and 9
Posts: 64
Thanked: 0
Compile Error

Do you see this behavior on all configure files? If not, then it is something specific to that one configure file. If you do see this behavior on all configure files, then it may be your compiler. If you suspect this, you could try to uninstall/reinstall your GCC/G++ packages. They should be available on your installation CD's.



Quote:
Originally Posted by RAdams
Hello all. I'm trying to run a configure file programmed in c (snyce for kde, as it happens). It fails at the C Preprocessor (/lib/cpp failed sanity check) every time. I have all the applicable cpp apps installed from Livna (I'm running Fedora Core 5 x86_64), and gcc (including gcc-c++ and gcc-c) installed.

Does anyone have any idea why it might be repeatedly failing? Is there a simple test environment/procedure for this? I can post the log of the script that failed, or anything else that is needed.

Thanks everyone.
jc_cpu is offline     Reply With Quote
Old 07-24-2006, 07:00 PM   #8
nicron
LQ Newbie
 
Registered: Jul 2006
Location: France
Distribution: Debian/Ubuntu
Posts: 1
Thanked: 0
Sorry my answer comes late, but this can help someone...

The needed symbolic links must be created. To do this, enter the following commands :

Code:
ln -s /usr/bin/g++-X.XX /usr/bin/g++
ln -s /usr/bin/gcc-X.XX /usr/bin/gcc
ln -s /usr/bin/cpp-X.XX /usr/bin/cpp
* X.XX is the version number
nicron is offline     Reply With Quote
Old 07-24-2006, 08:07 PM   #9
tgo
Member
 
Registered: Dec 2004
Posts: 125
Thanked: 0
I had the same problem this weekend. I had to do a ghetto slack install cuz the box i was installing on was a pos and forgot some packages. After installing the kernel headers and binutils ( for as ) it worked fine.

Last edited by tgo; 07-24-2006 at 08:19 PM..
tgo is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

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
cpp fails sanity check??? dinolinux Debian 2 07-30-2005 12:43 PM
cpp fails sanity check? linux-rulz Linux - Software 4 05-16-2005 05:00 AM
cpp sanity check alexrait1 Slackware 6 04-24-2005 09:43 AM
configure /lib/cpp fails sanity check johnlittlepeap Fedora 0 12-07-2004 06:52 AM
/lib/cpp fails sanity check? NonSumPisces Linux - Software 2 10-02-2004 08:46 AM


All times are GMT -5. The time now is 11:21 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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration