LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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-30-2006, 02:52 PM   #1
RAdams
Member
 
Registered: May 2006
Location: Cincinnati, Ohio
Distribution: Ubuntu
Posts: 256

Rep: Reputation: 30
Angry cpp - I'm about to fail MY sanity check


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.
 
Old 05-30-2006, 02:59 PM   #2
lord_shadow
LQ Newbie
 
Registered: Oct 2004
Distribution: Debian Wheezy
Posts: 27

Rep: Reputation: 1
I'm not sure, but try to check if you have installed g++ (not only gcc)
 
Old 05-30-2006, 09:54 PM   #3
Daws
Member
 
Registered: May 2006
Location: UK
Distribution: Debian, Linux From Scratch
Posts: 416
Blog Entries: 1

Rep: Reputation: 32
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
 
Old 05-30-2006, 10:11 PM   #4
RAdams
Member
 
Registered: May 2006
Location: Cincinnati, Ohio
Distribution: Ubuntu
Posts: 256

Original Poster
Rep: Reputation: 30
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++.
 
Old 05-30-2006, 10:28 PM   #5
RAdams
Member
 
Registered: May 2006
Location: Cincinnati, Ohio
Distribution: Ubuntu
Posts: 256

Original Poster
Rep: Reputation: 30
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.
 
Old 06-01-2006, 10:30 PM   #6
RAdams
Member
 
Registered: May 2006
Location: Cincinnati, Ohio
Distribution: Ubuntu
Posts: 256

Original Poster
Rep: Reputation: 30
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?
 
Old 06-01-2006, 11:11 PM   #7
jc_cpu
Member
 
Registered: May 2006
Distribution: Fedora 14
Posts: 71

Rep: Reputation: 15
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.
 
Old 07-24-2006, 07:00 PM   #8
nicron
LQ Newbie
 
Registered: Jul 2006
Location: France
Distribution: Debian/Ubuntu
Posts: 1

Rep: Reputation: 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
 
Old 07-24-2006, 08:07 PM   #9
tgo
Member
 
Registered: Dec 2004
Posts: 125

Rep: Reputation: 15
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.
 
  


Reply

Tags
c++, compilers, cpp, gcc, sanity, scripts


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
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 07:23 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