LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-05-2008, 07:49 AM   #1
vennaas
LQ Newbie
 
Registered: Feb 2008
Posts: 1

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


Hi,

While installing any software using tarball i am getting the following error,please help me to resolve this error


[root@rhel-1 rancid-2.3.2a6]# ./configure
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 for gmake... /usr/bin/gmake
checking whether /usr/bin/gmake sets $(MAKE)... yes
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... none needed
checking for style of include used by /usr/bin/gmake... GNU
checking dependency style of gcc... gcc3
checking for function prototypes... yes
checking how to run the C preprocessor... /lib/cpp
configure: error: C preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details.


config.log


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

It was created by configure, which was
generated by GNU Autoconf 2.60. Invocation command line was

$ ./configure

## --------- ##
## Platform. ##
## --------- ##

hostname = rhel-1
uname -m = i686
uname -r = 2.6.9-42.ELsmp
uname -s = Linux
uname -v = #1 SMP Wed Jul 12 23:27:17 EDT 2006

/usr/bin/uname -p = unknown
/bin/uname -X = unknown

/bin/arch = i686
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo = unknown
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown

PATH: /usr/kerberos/sbin
PATH: /usr/kerberos/bin
PATH: /usr/local/sbin
PATH: /usr/local/bin
PATH: /sbin
PATH: /bin
PATH: /usr/sbin
PATH: /usr/bin
PATH: /usr/X11R6/bin
PATH: /usr/java/jdk1.5.0_08/bin
PATH: /root/bin


## ----------- ##
## Core tests. ##
## ----------- ##

configure:1791: checking for a BSD-compatible install
configure:1847: result: /usr/bin/install -c
configure:1858: checking whether build environment is sane
configure:1901: result: yes
configure:1929: checking for a thread-safe mkdir -p
configure:1968: result: /bin/mkdir -p
configure:1981: checking for gawk
configure:1997: found /bin/gawk
configure:2008: result: gawk
configure:2019: checking whether make sets $(MAKE)
configure:2040: result: yes
configure:2227: checking for gmake
configure:2245: found /usr/bin/gmake
configure:2258: result: /usr/bin/gmake
configure:2316: checking whether /usr/bin/gmake sets $(MAKE)
configure:2337: result: yes
configure:2396: checking for gcc
configure:2412: found /usr/bin/gcc
configure:2423: result: gcc
configure:2661: checking for C compiler version
configure:2668: gcc --version >&5
gcc (GCC) 3.4.6 20060404 (Red Hat 3.4.6-3)
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:2671: $? = 0
configure:2678: gcc -v >&5
Reading specs from /usr/lib/gcc/i386-redhat-linux/3.4.6/specs
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-checking --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-java-awt=gtk --host=i386-redhat-linux
Thread model: posix
gcc version 3.4.6 20060404 (Red Hat 3.4.6-3)
configure:2681: $? = 0
configure:2688: gcc -V >&5
gcc: `-V' option must have argument
configure:2691: $? = 1
configure:2714: checking for C compiler default output file name
configure:2741: gcc conftest.c >&5
configure:2744: $? = 0
configure:2790: result: a.out
configure:2795: checking whether the C compiler works
configure:2805: ./a.out
configure:2808: $? = 0
configure:2825: result: yes
configure:2832: checking whether we are cross compiling
configure:2834: result: no
configure:2837: checking for suffix of executables
configure:2844: gcc -o conftest conftest.c >&5
configure:2847: $? = 0
configure:2871: result:
configure:2877: checking for suffix of object files
configure:2903: gcc -c conftest.c >&5
configure:2906: $? = 0
configure:2929: result: o
configure:2933: checking whether we are using the GNU C compiler
configure:2962: gcc -c conftest.c >&5
configure:2968: $? = 0
configure:2975: test -z "$ac_c_werror_flag" || test ! -s conftest.err
configure:2978: $? = 0
configure:2985: test -s conftest.o
configure:2988: $? = 0
configure:3002: result: yes
configure:3007: checking whether gcc accepts -g
configure:3037: gcc -c -g conftest.c >&5
configure:3043: $? = 0
configure:3050: test -z "$ac_c_werror_flag" || test ! -s conftest.err
configure:3053: $? = 0
configure:3060: test -s conftest.o
configure:3063: $? = 0
configure:3193: result: yes
configure:3210: checking for gcc option to accept ISO C89
configure:3284: gcc -c -g -O2 conftest.c >&5
configure:3290: $? = 0
configure:3297: test -z "$ac_c_werror_flag" || test ! -s conftest.err
configure:3300: $? = 0
configure:3307: test -s conftest.o
configure:3310: $? = 0
configure:3330: result: none needed
configure:3359: checking for style of include used by /usr/bin/gmake
configure:3387: result: GNU
configure:3412: checking dependency style of gcc
configure:3503: result: gcc3
configure:3518: checking for function prototypes
configure:3521: result: yes
configure:3544: checking how to run the C preprocessor
configure:3584: gcc -E conftest.c
In file included from /usr/include/bits/posix1_lim.h:153,
from /usr/include/limits.h:144,
from /usr/lib/gcc/i386-redhat-linux/3.4.6/include/limits.h:122,
from /usr/lib/gcc/i386-redhat-linux/3.4.6/include/syslimits.h:7,
from /usr/lib/gcc/i386-redhat-linux/3.4.6/include/limits.h:11,
from conftest.c:11:
/usr/include/bits/local_lim.h:36:26: linux/limits.h: No such file or directory
configure:3590: $? = 1
configure: failed program was:
| /* confdefs.h. */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PROTOTYPES 1
| #define __PROTOTYPES 1
| /* end confdefs.h. */
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
| Syntax error
configure:3584: gcc -E conftest.c
In file included from /usr/include/bits/posix1_lim.h:153,
from /usr/include/limits.h:144,
from /usr/lib/gcc/i386-redhat-linux/3.4.6/include/limits.h:122,
from /usr/lib/gcc/i386-redhat-linux/3.4.6/include/syslimits.h:7,
from /usr/lib/gcc/i386-redhat-linux/3.4.6/include/limits.h:11,
from conftest.c:11:
/usr/include/bits/local_lim.h:36:26: linux/limits.h: No such file or directory
configure:3590: $? = 1
configure: failed program was:
| /* confdefs.h. */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PROTOTYPES 1
| #define __PROTOTYPES 1
| /* end confdefs.h. */
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
| Syntax error
configure:3584: gcc -E -traditional-cpp conftest.c
In file included from /usr/include/features.h:319,
from /usr/include/assert.h:36,
from conftest.c:13:
/usr/include/sys/cdefs.h:31: #error "You need a ISO C conforming compiler to use the glibc headers"
configure:3590: $? = 1
configure: failed program was:
| /* confdefs.h. */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PROTOTYPES 1
| #define __PROTOTYPES 1
| /* end confdefs.h. */
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
| Syntax error
configure:3584: gcc -E -traditional-cpp conftest.c
In file included from /usr/include/features.h:319,
from /usr/include/assert.h:36,
from conftest.c:13:
/usr/include/sys/cdefs.h:31: #error "You need a ISO C conforming compiler to use the glibc headers"
configure:3590: $? = 1
configure: failed program was:
| /* confdefs.h. */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PROTOTYPES 1
| #define __PROTOTYPES 1
| /* end confdefs.h. */
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
| Syntax error
configure:3584: /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/i386-redhat-linux/3.4.6/include/limits.h:122,
from /usr/lib/gcc/i386-redhat-linux/3.4.6/include/syslimits.h:7,
from /usr/lib/gcc/i386-redhat-linux/3.4.6/include/limits.h:11,
from conftest.c:11:
/usr/include/bits/local_lim.h:36:26: linux/limits.h: No such file or directory
configure:3590: $? = 1
configure: failed program was:
| /* confdefs.h. */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PROTOTYPES 1
| #define __PROTOTYPES 1
| /* end confdefs.h. */
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
| Syntax error
configure:3584: /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/i386-redhat-linux/3.4.6/include/limits.h:122,
from /usr/lib/gcc/i386-redhat-linux/3.4.6/include/syslimits.h:7,
from /usr/lib/gcc/i386-redhat-linux/3.4.6/include/limits.h:11,
from conftest.c:11:
/usr/include/bits/local_lim.h:36:26: linux/limits.h: No such file or directory
configure:3590: $? = 1
configure: failed program was:
| /* confdefs.h. */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PROTOTYPES 1
| #define __PROTOTYPES 1
| /* end confdefs.h. */
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
| Syntax error
configure:3674: result: /lib/cpp
configure:3703: /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/i386-redhat-linux/3.4.6/include/limits.h:122,
from /usr/lib/gcc/i386-redhat-linux/3.4.6/include/syslimits.h:7,
from /usr/lib/gcc/i386-redhat-linux/3.4.6/include/limits.h:11,
from conftest.c:11:
/usr/include/bits/local_lim.h:36:26: linux/limits.h: No such file or directory
configure:3709: $? = 1
configure: failed program was:
| /* confdefs.h. */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PROTOTYPES 1
| #define __PROTOTYPES 1
| /* end confdefs.h. */
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
| Syntax error
configure:3703: /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/i386-redhat-linux/3.4.6/include/limits.h:122,
from /usr/lib/gcc/i386-redhat-linux/3.4.6/include/syslimits.h:7,
from /usr/lib/gcc/i386-redhat-linux/3.4.6/include/limits.h:11,
from conftest.c:11:
/usr/include/bits/local_lim.h:36:26: linux/limits.h: No such file or directory
configure:3709: $? = 1
configure: failed program was:
| /* confdefs.h. */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PROTOTYPES 1
| #define __PROTOTYPES 1
| /* end confdefs.h. */
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
| Syntax error
configure:3785: error: C preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details.

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_c_compiler_gnu=yes
ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=
ac_cv_env_CFLAGS_value=
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_objext=o
ac_cv_path_MAKE=/usr/bin/gmake
ac_cv_path_install='/usr/bin/install -c'
ac_cv_path_mkdir=/bin/mkdir
ac_cv_prog_AWK=gawk
ac_cv_prog_CPP=/lib/cpp
ac_cv_prog_ac_ct_CC=gcc
ac_cv_prog_cc_c89=
ac_cv_prog_cc_g=yes
ac_cv_prog_make__usr_bin_gmake_set=yes
ac_cv_prog_make_make_set=yes
am_cv_CC_dependencies_compiler_type=gcc3

## ----------------- ##
## Output variables. ##
## ----------------- ##

ACLOCAL='${SHELL} /usr/local/rancid/tar/rancid-2.3.2a6/missing --run aclocal-1.10'
ADMINMAILPLUS=''
AMDEPBACKSLASH='\'
AMDEP_FALSE='#'
AMDEP_TRUE=''
AMTAR='${SHELL} /usr/local/rancid/tar/rancid-2.3.2a6/missing --run tar'
ANSI2KNR=''
AUTOCONF='${SHELL} /usr/local/rancid/tar/rancid-2.3.2a6/missing --run autoconf'
AUTOHEADER='${SHELL} /usr/local/rancid/tar/rancid-2.3.2a6/missing --run autoheader'
AUTOMAKE='${SHELL} /usr/local/rancid/tar/rancid-2.3.2a6/missing --run automake-1.10'
AWK='gawk'
CC='gcc'
CCDEPMODE='depmode=gcc3'
CFLAGS='-g -O2'
COMM=''
CONF_INSTALL_FALSE=''
CONF_INSTALL_TRUE=''
CPP='/lib/cpp'
CPPFLAGS=''
CVS=''
CYGPATH_W='echo'
DEFS=''
DEPDIR='.deps'
DIFF=''
DIFF_CMD=''
DIRNAME=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
ENV_PATH=''
EXEEXT=''
EXPECT_PATH=''
FIND=''
GREP=''
ID=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='$(install_sh) -c -s'
LDFLAGS=''
LG_PING_CMD=''
LIBOBJS=''
LIBS=''
LTLIBOBJS=''
MAILPLUS=''
MAKE='/usr/bin/gmake'
MAKEINFO='${SHELL} /usr/local/rancid/tar/rancid-2.3.2a6/missing --run makeinfo'
MKDIR=''
MK_LCLSTATEDIR_FALSE=''
MK_LCLSTATEDIR_TRUE=''
OBJEXT='o'
PACKAGE='rancid'
PACKAGE_BUGREPORT=''
PACKAGE_NAME=''
PACKAGE_STRING=''
PACKAGE_TARNAME=''
PACKAGE_VERSION=''
PATH_SEPARATOR=':'
PERLV=''
PERLV_PATH=''
PING_PATH=''
RCSSYS=''
RSH=''
SENDMAIL=''
SET_MAKE=''
SHELL='/bin/sh'
SORT=''
SSH=''
STRIP=''
SVN=''
TAR=''
TELNET=''
TOUCH=''
U=''
VERSION='2.3.2a6'
ac_ct_CC='gcc'
am__fastdepCC_FALSE='#'
am__fastdepCC_TRUE=''
am__include='include'
am__isrc=''
am__leading_dot='.'
am__quote=''
am__tar='${AMTAR} chof - "$$tardir"'
am__untar='${AMTAR} xf -'
bindir='${exec_prefix}/bin'
build_alias=''
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE}'
dvidir='${docdir}'
exec_prefix='NONE'
host_alias=''
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
install_sh='$(SHELL) /usr/local/rancid/tar/rancid-2.3.2a6/install-sh'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
mkdir_p='/bin/mkdir -p'
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='NONE'
program_transform_name='s,x,x,'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''

## ----------- ##
## confdefs.h. ##
## ----------- ##

#define PACKAGE_NAME ""
#define PACKAGE_TARNAME ""
#define PACKAGE_VERSION ""
#define PACKAGE_STRING ""
#define PACKAGE_BUGREPORT ""
#define PROTOTYPES 1
#define __PROTOTYPES 1

configure: exit 1



OS Details

[root@rhel-1 rancid-2.3.2a6]# uname -a
Linux rhel-1 2.6.9-42.ELsmp #1 SMP Wed Jul 12 23:27:17 EDT 2006 i686 i686 i386 GNU/Linux
 
Old 02-06-2008, 06:21 PM   #2
cetialphav
Member
 
Registered: Sep 2003
Location: Raleigh, NC, USA
Distribution: Fedora
Posts: 88

Rep: Reputation: 16
It looks like this is the problem:

/usr/include/bits/local_lim.h:36:26: linux/limits.h: No such file or directory

On my Fedora system, linux/limits.h is provided by the kernel-headers rpm.

Code:
[todd@hobbes hw2]$ rpm -qf /usr/include/linux/limits.h
kernel-headers-2.6.23.14-107.fc8
You should probably check to see if that is installed.
 
  


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
configure: error: C++ preprocessor "/lib/cpp" fails sanity check Mugatu Linux - Software 53 03-10-2016 03:17 AM
configure: error: C preprocessor "/lib/cpp" fails sanity check vikiugu Linux - Newbie 1 12-22-2007 01:06 PM
configure: error: C++ preprocessor "/lib/cpp" fails sanity check HELP Ckesey Linux - Newbie 3 10-04-2004 02:58 PM
configure: error: C++ preprocessor "/lib/cpp" fails sanity check HELP Ckesey Linux - Software 0 10-04-2004 10:49 AM
configure: error: C++ preprocessor "/lib/cpp" fails sanity check raela Linux - Software 6 03-16-2004 06:59 PM


All times are GMT -5. The time now is 06:37 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration