LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 11-07-2004, 09:52 PM   #1
pablovschby
Member
 
Registered: Oct 2003
Posts: 153

Rep: Reputation: 30
sanity check failed for g++


I'm trying to compile mpeg4ip on a Fedora Core2-machine and I always get the same anxious message, when I run ./configure:
Code:
checking how to run the C preprocessor... g++
configure: error: C preprocessor "g++" fails sanity check
See `config.log' for more details.
config.log says:
Code:
[.............]
| #endif
|                      Syntax error
configure:3926: g++  conftest.c
./configure: line 1: g++: command not found
configure:3932: $? = 127
configure: failed program was:
| #line 3912 "configure"
| /* confdefs.h.  */
[..............]
BILLS_CPPWARNINGS=''
BILLS_CWARNINGS=''
CC='gcc'
CCAS=''
CCASFLAGS=''
CCDEPMODE='depmode=gcc3'
CFLAGS='-g -O2'
CPP='g++'
[..........................]
#define PACKAGE_VERSION ""
#define VERSION "1.1"

configure: exit 1
So, I've seen thousands of threads that treat this problem, but not one could solve the mine.
  • - gcc is installed
    - X11lib is installed
    - cpp is installed....
Here is what I get when I enter...:
Code:
ls -l /lib/cpp
lrwxrwxrwx  1 root root 14  2. Nov 11:34 /lib/cpp -> ../usr/bin/cpp
And my c++ runs well, usually, compiling is no problem on that machine.
Yet, what can I do? Have I goto change something in configure.in?

Last edited by pablovschby; 11-07-2004 at 09:53 PM.
 
Old 11-08-2004, 01:37 AM   #2
krupa
LQ Newbie
 
Registered: Sep 2003
Posts: 6

Rep: Reputation: 0
Is g++ installed?

gcc is the Gnu C Compiler. g++ is the Gnu C++ compiler, they're different.

I'm running Fedora Core 2 and just downloaded mpeg4ip and ran configure and had no problems. I realize it isn't the best answer, but if I were you, I'd make sure I had g++ installed.
 
Old 11-08-2004, 02:39 AM   #3
pablovschby
Member
 
Registered: Oct 2003
Posts: 153

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by krupa
Is g++ installed?

gcc is the Gnu C Compiler. g++ is the Gnu C++ compiler, they're different.

I'm running Fedora Core 2 and just downloaded mpeg4ip and ran configure and had no problems. I realize it isn't the best answer, but if I were you, I'd make sure I had g++ installed.
For me, cpp is the package you're mentioning.

Is there another package I should have installed? Which packages do you mean with the "g++"-package? For me, cpp is meant, cause it's the only c++-package I could find for fedora 2.

Please explain me, which packages you've meant (and where I can download them). Thanks.
 
  


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
FC4 /lib/cpp failed sanity check cwynn Fedora 2 11-07-2005 12:35 PM
cpp sanity check alexrait1 Slackware 6 04-24-2005 08:43 AM
LFS 6 ch5.9 adjusting the toolchain failed sanity check totty79 Linux From Scratch 1 03-21-2005 02:58 PM
Failed sanity check in fluxbox ./configure scuzzman Linux - Newbie 6 06-20-2004 10:26 PM
IPTables Sanity Check Crashed_Again Linux - Networking 3 03-06-2003 08:49 PM


All times are GMT -5. The time now is 01:52 PM.

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