LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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-2009, 10:01 AM   #1
Eclectic
LQ Newbie
 
Registered: Aug 2005
Location: Norwich, UK
Distribution: Gentoo
Posts: 10

Rep: Reputation: 0
configure error


I cant seem to figure this out:

configure: error: C preprocessor "/lib/cpp" fails sanity check

Its not localized to the one peice of software, its happening on everything I try to compile from source.

It IS a new server I have, and trying to set up, Its running OpenSuSe11.1 as I figured Id be fine with it, having used it a fair bit, and being quite in love with YaST. But alas, YaST doesnt help when working on a server a mans way lol.

I have installed gcc twice, and just about everything else gcc* in an attempt to remedy it.

Auto-make, make, etc etc. Ive tried alsorts that I can think it would need and still get the same error, Please help.

Code:
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking how to create a ustar tar archive... gnutar
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for style of include used by make... GNU
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... unsupported
checking dependency style of gcc... gcc3
checking for a sed that does not truncate output... /usr/bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ld used by gcc... /usr/i586-suse-linux/bin/ld
checking if the linker (/usr/i586-suse-linux/bin/ld) is GNU ld... yes
checking for /usr/i586-suse-linux/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognize dependent libraries... pass_all
checking how to run the C preprocessor... /lib/cpp
configure: error: in `/home/eclectic/transmission-1.61':
configure: error: C preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details.
 
Old 05-30-2009, 10:08 AM   #2
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,465

Rep: Reputation: Disabled
You need to have the g++-4.x package installed. (4.1 or 4.2 or 4.3 or 4.4 or whatever)
cheers,
jdk
 
Old 05-30-2009, 10:33 AM   #3
Eclectic
LQ Newbie
 
Registered: Aug 2005
Location: Norwich, UK
Distribution: Gentoo
Posts: 10

Original Poster
Rep: Reputation: 0
Thanks for the reply. Im sure I have the SuSe version of g++, atleast according to their forums gcc-c++ is just that.

http://bayimg.com/image/oaabkaacf.jpg
I had already installed that in the hunt to get it working :/

Also:

Quote:
$ which g++
/usr/bin/g++

$ which gcc
/usr/bin/gcc
Edit: Im also googling to try resolve the issue, here's something I found, which could be un-earth something to someone with the right eye.

grep "Configured with" config.log

Quote:
Configured with: ../configure --prefix=/usr --with-local-prefix=/usr/local --infodir=/usr/share/info --mandir=/usr/share/man --libdir=/usr/lib --libexecdir=/usr/lib --enable-languages=c,c++,objc,fortran,obj-c++,java,ada --enable-checking=release --with-gxx-include-dir=/usr/include/c++/4.3 --enable-ssp --disable-libssp --with-bugurl=http://bugs.opensuse.org/ --with-pkgversion='SUSE Linux' --disable-libgcj --with-slibdir=/lib --with-system-zlib --enable-__cxa_atexit --enable-libstdcxx-allocator=new --disable-libstdcxx-pch --program-suffix=-4.3 --enable-version-specific-runtime-libs --enable-linux-futex --without-system-libunwind --with-cpu=generic --build=i586-suse-linux
Edit2:

Reinstalling glibc-devel-2.8-14.2 seems to have resolved the issue.

Thanks for your help jdkaye

Last edited by Eclectic; 05-30-2009 at 11:07 AM.
 
Old 05-30-2009, 01:28 PM   #4
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,465

Rep: Reputation: Disabled
Well that package is supposed to supply the cc1plus. If you don't have that it causes the sanity check failure. Mine is located here:
/usr/lib/gcc/i486-linux-gnu/4.3/cc1plus
cheers,
jdk
 
  


Reply



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
configure error: configure: error: cannot execute: /usr/local/bin/arm-apple-darwin-ld GunNam Linux - General 0 10-24-2008 08:26 PM
dpkg-buildpackage configure: error: can only configure for one host and one target at donnied Debian 0 05-26-2008 07:08 PM
./configure fails with: libz... configure: error: not found. erpe Linux - Software 17 10-11-2006 05:56 PM
ardour wont configure: configure: error: C preprocessor "/lib/cpp" fails sanity check disciple061 Linux - Software 4 01-22-2005 12:35 PM
configure: error: when trying to install / configure new software ? met tomfer007 Linux - Software 1 07-25-2004 03:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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

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
Open Source Consulting | Domain Registration