LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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 12-18-2005, 09:02 PM   #31
chlorantus
LQ Newbie
 
Registered: Dec 2005
Posts: 6

Rep: Reputation: 0
:(


My errors:

[root@localhost gst-plugins-good-0.9.7]# ./configure
configure: configuring gst-plugins-good for release
checking whether to enable maintainer-specific portions of Makefiles... no
checking build system type... i686-redhat-linux-gnulibc1
checking host system type... i686-redhat-linux-gnulibc1
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
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 ANSI C... none needed
checking dependency style of gcc... gcc3
checking for a sed that does not truncate output... /bin/sed
checking for egrep... grep -E
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/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 recognise dependent libraries... pass_all
checking how to run the C preprocessor... /lib/cpp
configure: error: C preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details.

[root@localhost gst-plugins-good-0.9.7]#
[root@localhost gst-plugins-good-0.9.7]# grep cpp config.log
configure:3980: gcc -E -traditional-cpp conftest.c
configure:3980: gcc -E -traditional-cpp conftest.c
configure:3980: /lib/cpp conftest.c
configure:3980: /lib/cpp conftest.c
configure:4063: result: /lib/cpp
configure:4087: /lib/cpp conftest.c
configure:4087: /lib/cpp conftest.c
configure:4162: error: C preprocessor "/lib/cpp" fails sanity check
ac_cv_prog_CPP=/lib/cpp
CPP='/lib/cpp'



Try complie C :
#include<stdio.h>
main()
{ printf(“hello world”);
}

Error:
hello.c:1:18: error: stdio.h: No such file or directory
hello.c: In function ‘main’:
hello.c:3: warning: incompatible implicit declaration of built-in function ‘printf’



I saw gcc and gcc-lib in /usr/lib (but not have cpp), i also saw rpm gcc-c++-4.0.0-8 & cpp-4.0.0-8 installed.
But I still have errors above, what must I do ?
 
Old 12-29-2005, 03:02 PM   #32
kaspen
LQ Newbie
 
Registered: Dec 2005
Posts: 1

Rep: Reputation: 0
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... /lib/cpp
configure: error: C preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details.
(Thu Dec 29 @ ~/superkaramba) ( -bash )
(19:00:48)-(~/superkaramba)->

I check config.log


configure:3247: gcc -c conftest.c >&5
conftest.c:2: error: syntax error before "me"
configure:3253: $? = 1
configure: failed program was:
| #ifndef __cplusplus
| choke me
| #endif
configure:3388: checking dependency style of gcc
configure:3478: result: gcc3



Syntax error
configure:3536: gcc -E -traditional-cpp conftest.c
In file included from /usr/include/features.h:308,
from /usr/include/assert.h:36,
from conftest.c:14:
/usr/include/sys/cdefs.h:31: #error "You need a ISO C conforming compiler to us$
configure:3542: $? = 1
configure: failed program was:
| /* confdefs.h. */



| Syntax error
configure:3536: /lib/cpp conftest.c
In file included from /usr/include/bits/posix1_lim.h:153,
from /usr/include/limits.h:144,
from /usr/lib/gcc-lib/i486-slackware-linux/3.3.6/include/limit$
from /usr/lib/gcc-lib/i486-slackware-linux/3.3.6/include/sysli$
from /usr/lib/gcc-lib/i486-slackware-linux/3.3.6/include/limit$
from conftest.c:12:
/usr/include/bits/local_lim.h:36:26: linux/limits.h: No such file or directory
configure:3542: $? = 1


I found that's lines wrong .. I dont know what do.. i have re-install qt 2 times and nothing fix

I'm using slackware 10.2 with kernel 2.6.14.4..

some idea for i'm fix that?..

Thanks.
 
Old 01-22-2006, 03:04 PM   #33
zip
LQ Newbie
 
Registered: Aug 2003
Location: CA
Distribution: Debian Sarge 3.1
Posts: 5

Rep: Reputation: 0
C++ preprocessor "/lib/cpp" fails sanity check SOLVED

Thank you for posting this solution.
I had the same problem.
Who would have known that cc1 is cc1plus?
This is for Debian 3.1. ./configuration for a Graphire 4 graphics tablet.

asus:/usr/bin# ln -s /usr/lib/gcc/i486-linux-gnu/4.0.3/cc1 cc1plus



Quote:
Originally Posted by exeon
I know this shouldn't be right.
gcc was already installed on my machine but I still got:
C++ preprocessor "/lib/cpp" fails sanity check
I looked at config.log and it said something like:
cc1plus command not found

i found cc1
/usr/lib/gcc/i586-mandrake-linux-gnu/3.4.1/cc1
so I linked it in /usr/bin
ln -s /usr/lib/gcc/i586-mandrake-linux-gnu/3.4.1/cc1 cc1plus

voila: all working

Mandrake 10.1 Community Edition
Athlon XP 1500+
Chipset SIS 735
 
Old 08-16-2006, 09:53 AM   #34
imanassypov
LQ Newbie
 
Registered: Sep 2005
Location: Toronto, Canada
Distribution: FreeBSD, Gentoo, NetBSD
Posts: 28

Rep: Reputation: 15
Cool

Dudes,

You are missing the g++ package. Just do 'apt-get install g++'.
This will definitely get you going with your /.configure



-igor
 
Old 08-29-2006, 02:39 PM   #35
wvragga
LQ Newbie
 
Registered: Jul 2006
Posts: 6

Rep: Reputation: 0
lib/cpp sanity check error file does not exist message Solution

Greetings All,

this had me tearing my hair out for a while.....

The solution for me was to create 2 missing symbolic links, I got the info from the GCC install howto.

My error was that linux/limits.h did not exist .

In the dir usr/include linux should be linked to /linux/include/linux in the kernel source dir, and asm should be linked to linux/include/asm also in kernel source dir.

My commands needed were:

ln -s /usr/src/linux/include/linux /usr/include/linux

ln -s /usr/src/linux/include/asm /usr/include/asm

This assumes that you have a symbolic link in usr/src (or wherever your source is) linux that links to /linux-2.6.whatever your kernel is ;-)

Configure was looking for these links, as soon as I created them I was all good!

Respects,
Ragga ;-)
 
Old 09-17-2006, 09:46 AM   #36
b3ck
LQ Newbie
 
Registered: Sep 2006
Distribution: linux/redhat
Posts: 1

Rep: Reputation: 0
Question

Hello all! I hope one of you guys can help me out here, I'm trying to install gcc-4.1.1 and I get this error:

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

Below is the whole output I get from trying to 'make' gcc, I am I missing something? please me know...


Code:
root@pradio [~/gcc-4.1.1]# make
make[1]: Entering directory `/home/pradio/gcc-4.1.1'
mkdir -p -- host-i686-pc-linux-gnulibc1/fastjar
Configuring in host-i686-pc-linux-gnulibc1/fastjar
configure: creating cache ./config.cache
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for i686-pc-linux-gnulibc1-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 ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for a BSD-compatible install... /usr/bin/install -c
checking for rm... /bin/rm
checking for cp... /bin/cp
checking for strip... /usr/bin/strip
checking for chmod... /bin/chmod
checking whether to enable maintainer-specific portions of Makefiles... no
checking for dirent.h that defines DIR... no
checking for sys/ndir.h that defines DIR... no
checking for sys/dir.h that defines DIR... no
checking for ndir.h that defines DIR... no
checking for library containing opendir... none required
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[1]: *** [configure-fastjar] Error 1
make[1]: Leaving directory `/home/pradio/gcc-4.1.1'
here is the contents of my config.log:

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

configure:600: checking host system type
configure:621: checking target system type
configure:639: checking build system type
configure:694: checking for a BSD compatible install
configure:747: checking whether ln works
configure:771: checking whether ln -s works
configure:1825: checking for gcc
configure:1938: checking whether the C compiler (gcc  ) works
configure:1954: gcc -o conftest    conftest.c  1>&5
configure:1980: checking whether the C compiler (gcc  ) is a cross-compiler
configure:1985: checking whether we are using GNU C
configure:1994: gcc -E conftest.c
configure:2013: checking whether gcc accepts -g
configure:2080: checking for gnatbind
configure:2145: checking whether compiler driver understands Ada
configure:2177: checking how to compare bootstrapped objects
configure:2275: checking for correct version of gmp.h
configure:2288: gcc -c -g -O2   conftest.c 1>&5
configure:2278:17: gmp.h: No such file or directory
configure: In function `main':
configure:2282: error: `choke' undeclared (first use in this function)
configure:2282: error: (Each undeclared identifier is reported only once
configure:2282: error: for each function it appears in.)
configure:2282: error: syntax error before "me"
configure: failed program was:
#line 2277 "configure"
#include "confdefs.h"
#include "gmp.h"
int main() {

#if __GNU_MP_VERSION < 3
choke me
#endif

; return 0; }
configure:3313: checking for bison
configure:3353: checking for bison
configure:3392: checking for gm4
configure:3392: checking for gnum4
configure:3392: checking for m4
configure:3431: checking for flex
configure:3471: checking for flex
configure:3510: checking for makeinfo
configure:3563: checking for expect
configure:3604: checking for runtest
configure:3652: checking for i686-pc-linux-gnulibc1-ar
configure:3683: checking for ar
configure:3727: checking for i686-pc-linux-gnulibc1-as
configure:3758: checking for as
configure:3802: checking for i686-pc-linux-gnulibc1-dlltool
configure:3833: checking for dlltool
configure:3877: checking for i686-pc-linux-gnulibc1-ld
configure:3908: checking for ld
configure:3952: checking for i686-pc-linux-gnulibc1-lipo
configure:3983: checking for lipo
configure:4027: checking for i686-pc-linux-gnulibc1-nm
configure:4058: checking for nm
configure:4102: checking for i686-pc-linux-gnulibc1-ranlib
configure:4133: checking for ranlib
configure:4172: checking for i686-pc-linux-gnulibc1-strip
configure:4203: checking for strip
configure:4242: checking for i686-pc-linux-gnulibc1-windres
configure:4273: checking for windres
configure:4317: checking for i686-pc-linux-gnulibc1-objcopy
configure:4348: checking for objcopy
configure:4392: checking for i686-pc-linux-gnulibc1-objdump
configure:4423: checking for objdump
configure:4474: checking for i686-pc-linux-gnulibc1-ar
configure:4505: checking for ar
configure:4549: checking for i686-pc-linux-gnulibc1-as
configure:4580: checking for as
configure:4624: checking for i686-pc-linux-gnulibc1-cc
configure:4655: checking for cc
configure:4699: checking for i686-pc-linux-gnulibc1-c++
configure:4730: checking for c++
configure:4774: checking for i686-pc-linux-gnulibc1-dlltool
configure:4805: checking for dlltool
configure:4849: checking for i686-pc-linux-gnulibc1-gcc
configure:4880: checking for gcc
configure:4919: checking for i686-pc-linux-gnulibc1-gcj
configure:4950: checking for gcj
configure:4994: checking for i686-pc-linux-gnulibc1-gfortran
configure:5025: checking for gfortran
configure:5069: checking for i686-pc-linux-gnulibc1-ld
configure:5100: checking for ld
configure:5144: checking for i686-pc-linux-gnulibc1-lipo
configure:5175: checking for lipo
configure:5219: checking for i686-pc-linux-gnulibc1-nm
configure:5250: checking for nm
configure:5294: checking for i686-pc-linux-gnulibc1-objdump
configure:5325: checking for objdump
configure:5369: checking for i686-pc-linux-gnulibc1-ranlib
configure:5400: checking for ranlib
configure:5439: checking for i686-pc-linux-gnulibc1-strip
configure:5470: checking for strip
configure:5514: checking for i686-pc-linux-gnulibc1-windres
configure:5545: checking for windres
configure:5588: checking where to find the target ar
configure:5613: checking where to find the target as
configure:5638: checking where to find the target cc
configure:5663: checking where to find the target c++
configure:5691: checking where to find the target c++ for libstdc++
configure:5719: checking where to find the target dlltool
configure:5744: checking where to find the target gcc
configure:5769: checking where to find the target gcj
configure:5797: checking where to find the target gfortran
configure:5825: checking where to find the target ld
configure:5850: checking where to find the target lipo
configure:5865: checking where to find the target nm
configure:5890: checking where to find the target objdump
configure:5915: checking where to find the target ranlib
configure:5940: checking where to find the target strip
configure:5965: checking where to find the target windres
configure:6018: checking whether to enable maintainer-specific portions of Makefiles
configure:6065: checking if symbolic links between directories work

Thanks in advance,
-b3ck

Last edited by b3ck; 09-17-2006 at 09:51 AM.
 
Old 04-04-2007, 01:13 AM   #37
d4nk
LQ Newbie
 
Registered: Apr 2007
Posts: 1

Rep: Reputation: 0
Thanks wvragga

Running DreamLinux (Debian) on kernal 2.6 and having same error...
Created the symbolic links as per wvragga's instructions and all is well. Nice job!

Dan
 
Old 05-16-2007, 08:15 AM   #38
koca
LQ Newbie
 
Registered: Jan 2007
Posts: 5

Rep: Reputation: 0
miss package gcc-c++

you dont have installed this package gcc-c++.
 
Old 09-19-2007, 09:07 AM   #39
xerxes2695
LQ Newbie
 
Registered: Sep 2007
Posts: 1

Rep: Reputation: 0
For Fedora, CentOS, Red hat (based) distros:

yum install gcc-objc

is needed
 
Old 11-21-2007, 01:43 PM   #40
mossy
Member
 
Registered: Aug 2003
Location: USexIRL
Distribution: *nix
Posts: 849

Rep: Reputation: 30
Tinkster -- Thanks for the distinction between gcc & g++
 
Old 11-29-2007, 05:21 AM   #41
Chagai.Dromi
LQ Newbie
 
Registered: Nov 2007
Posts: 1

Rep: Reputation: 0
linux/limits.h: No such file or directory

Just for the recored

At Dreamlinux it seem like the next link exist :
/usr/include/linux to /usr/src/linux/include/linux
However /usr/src/linux/include/linux does not exist and therefore it was necessary to install the next link :
ln -s /usr/src/linux-headers-2.6.18.1-kanotix-1/include/linux /usr/include/linux

This solve the linux/limits.h problem
//Chagai
 
Old 01-10-2008, 08:29 AM   #42
properganda
Member
 
Registered: Jan 2008
Posts: 43

Rep: Reputation: 15
Quote:
Originally Posted by Boyer View Post
Like said above, you must install gcc, gcc-cpp, and gcc-c++

Just do:

# urpmi gcc gcc-cpp gcc-c++

and urpmi will install the nessessary packages for you. If you don't have urpmi for some reason, try www.pbone.net or www.rpmfind.net

Cheers,
Boyer
Do you think this may be a similar issue for Slackware? Slakware uses installpkg instead of rpm...
 
Old 04-23-2008, 11:04 PM   #43
mhsh
LQ Newbie
 
Registered: Apr 2008
Posts: 1

Rep: Reputation: 0
SuSE 10.3

hi!
I had this problem too in open SuSE 10.3
and i also had glibc-devel- 2.6.1-18. i586.rpm

but when i installed these package my problem solved :
glibc-devel-2.6.1-18.3.i586.rpm
linux-kernel-headers-2.6.24-5.6.noarch.rpm


Cheers
Mohammad Hoseyn Sheykholeslam
mhsh_92@yahoo.com

Last edited by mhsh; 04-23-2008 at 11:05 PM.
 
Old 10-02-2008, 03:28 AM   #44
alainscribot
LQ Newbie
 
Registered: Jun 2008
Location: France (Paris area)
Distribution: Slackware
Posts: 4

Rep: Reputation: 0
Unhappy

Hi, I get same type of error with a new installation os Slacw. 12.1 trying to install imlib2 from salckbuilds:

configure: error: C preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details.

I checked all my C compilers ("slackpkg search gcc"), reinstalled etc..
I also checked I had the kernel sources..

It's probably something silly I overlooked.. fanx 4 telling me what.. please, if somebody knows
Cheers, Alan
 
Old 10-02-2008, 06:53 AM   #45
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware-current, Cross Linux from Scratch, Gentoo
Posts: 2,704
Blog Entries: 1

Rep: Reputation: 220Reputation: 220Reputation: 220
Quote:
Originally Posted by alainscribot View Post
I checked all my C compilers ("slackpkg search gcc"), reinstalled etc..
I also checked I had the kernel sources..
Except you didn't check what you were told to check by Imlib's configure script. Why not take a look at config.log to see what went wrong?
 
  


Reply

Tags
cpp


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
error: C++ preprocessor "/lib/cpp" fails sanity check marek345 Linux - Software 4 11-06-2008 09:49 AM
ardour wont configure: configure: error: C preprocessor "/lib/cpp" fails sanity check disciple061 Linux - Software 4 01-22-2005 12:35 PM
configure: error: C++ preprocessor "/lib/cpp" fails sanity check HELP Ckesey Linux - Newbie 3 10-04-2004 01:58 PM
configure: error: C++ preprocessor "/lib/cpp" fails sanity check HELP Ckesey Linux - Software 0 10-04-2004 09:49 AM
configure: error: C++ preprocessor "/lib/cpp" fails sanity check raela Linux - Software 6 03-16-2004 05:59 PM


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