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 08-25-2005, 11:02 PM   #1
Varius
LQ Newbie
 
Registered: Aug 2005
Posts: 1

Rep: Reputation: 0
/lib/cpp fails sanity check problem


Hi all,

I'm trying to install NCURSES-5.4 on a Linux box but am receiving the error:

Configuring NCURSES 5.4 ABI 5 (Thu Aug 25 23:57:25 EDT 2005)
checking build system type... i686-pc-linux-gnulibc1
checking host system type... i686-pc-linux-gnulibc1
checking target system type... i686-pc-linux-gnulibc1
Configuring for linux-gnulibc1
checking for prefix... /usr
checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for executable suffix...
checking for object suffix... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking version of gcc... 3.2.2
checking how to run the C preprocessor... /lib/cpp
configure: error: C preprocessor "/lib/cpp" fails sanity check

I decided to try compiling gcc-4.0.1 to hopefully fix the c++ processor.

Configure runs with no issue, but when attempting to 'make', I get:

checking how to run the C preprocessor... /lib/cpp
configure: error: C preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details.
make: *** [configure-fastjar] Error 1

Now the config.log shows me this:

This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

configure:595: checking host system type
configure:616: checking target system type
configure:634: checking build system type
configure:689: checking for a BSD compatible install
configure:742: checking whether ln works
configure:766: checking whether ln -s works
configure:1808: checking for gcc
configure:1921: checking whether the C compiler (gcc ) works
configure:1937: gcc -o conftest conftest.c 1>&5
configure:1963: checking whether the C compiler (gcc ) is a cross-compiler
configure:1968: checking whether we are using GNU C
configure:1996: checking whether gcc accepts -g
configure:2063: checking for gnatbind
configure:2128: checking whether compiler driver understands Ada
configure:2160: checking how to compare bootstrapped objects
configure:2258: checking for correct version of gmp.h
configure:2271: gcc -c -g -O2 conftest.c 1>&5
configure:2261:17: gmp.h: No such file or directory
configure: In function `main':
configure:2265: `choke' undeclared (first use in this function)
configure:2265: (Each undeclared identifier is reported only once
configure:2265: for each function it appears in.)
configure:2265: parse error before "me"
configure: failed program was:
#line 2260 "configure"
#include "confdefs.h"
#include "gmp.h"
int main() {

#if __GNU_MP_VERSION < 3
choke me
#endif

; return 0; }
configure:2784: checking for bison
configure:2819: checking for bison
configure:2854: checking for gm4
configure:2889: checking for flex
configure:2924: checking for flex
configure:2959: checking for makeinfo
configure:3606: checking for i686-pc-linux-gnulibc1-ar
configure:3639: checking for ar
configure:3678: checking for i686-pc-linux-gnulibc1-as
configure:3711: checking for as
configure:3750: checking for i686-pc-linux-gnulibc1-dlltool
configure:3783: checking for dlltool
configure:3822: checking for i686-pc-linux-gnulibc1-ld
configure:3855: checking for ld
configure:3894: checking for i686-pc-linux-gnulibc1-nm
configure:3927: checking for nm
configure:3966: checking for i686-pc-linux-gnulibc1-ranlib
configure:3999: checking for ranlib
configure:4038: checking for i686-pc-linux-gnulibc1-windres
configure:4071: checking for windres
configure:4110: checking for i686-pc-linux-gnulibc1-objcopy
configure:4143: checking for objcopy
configure:4182: checking for i686-pc-linux-gnulibc1-objdump
configure:4215: checking for objdump
configure:4261: checking for i686-pc-linux-gnulibc1-ar
configure:4294: checking for ar
configure:4333: checking for i686-pc-linux-gnulibc1-as
configure:4366: checking for as
configure:4405: checking for i686-pc-linux-gnulibc1-dlltool
configure:4438: checking for dlltool
configure:4477: checking for i686-pc-linux-gnulibc1-ld
configure:4510: checking for ld
configure:4549: checking for i686-pc-linux-gnulibc1-nm
configure:4582: checking for nm
configure:4621: checking for i686-pc-linux-gnulibc1-ranlib
configure:4654: checking for ranlib
configure:4693: checking for i686-pc-linux-gnulibc1-windres
configure:4726: checking for windres
configure:4811: checking whether to enable maintainer-specific portions of Makefiles
configure:4858: checking if symbolic links between directories work

One other note, this is on a virtual dedicated server, running -jailshell-2.05b and I don't currently have root access.

Could the lack of trying to configure/make as root be the issue? Or soemthing else?

Any help appreciated.
 
Old 08-26-2005, 12:13 AM   #2
linux-rulz
Member
 
Registered: Dec 2004
Distribution: Windows XP Home, Ubuntu Hoary
Posts: 584

Rep: Reputation: 30
/lib/cpp fails sanity check means that you don't have a C++ compiler. Have you installed the gcc-c++ or g++ RPM (depending on distro)?
 
  


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
/lib/cpp fails sanity check on KUbuntu Cipher01 Ubuntu 2 09-25-2005 08:28 PM
configure /lib/cpp fails sanity check johnlittlepeap Fedora 0 12-07-2004 05:52 AM
/lib/cpp fails sanity check? NonSumPisces Linux - Software 2 10-02-2004 07:46 AM
??? c++ prprocessor /lib/cpp fails sanity check ???? Killah Linux - Newbie 7 03-30-2004 02:39 PM
/lib/cpp fails sanity check error message lansman Linux - Software 3 11-07-2003 06:37 PM


All times are GMT -5. The time now is 02:05 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