LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   cpp - I'm about to fail MY sanity check (http://www.linuxquestions.org/questions/linux-software-2/cpp-im-about-to-fail-my-sanity-check-449982/)

RAdams 05-30-2006 01:52 PM

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.

lord_shadow 05-30-2006 01:59 PM

I'm not sure, but try to check if you have installed g++ (not only gcc)

Daws 05-30-2006 08:54 PM

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

RAdams 05-30-2006 09:11 PM

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 05-30-2006 09:28 PM

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 06-01-2006 09:30 PM

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?

jc_cpu 06-01-2006 10:11 PM

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.


nicron 07-24-2006 06:00 PM

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

tgo 07-24-2006 07:07 PM

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.


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