[NTLUG:Discuss] configure: error: C++ preprocessor "/lib/cpp" fails sanity check
Terry
trryhend at gmail.com
Tue Feb 8 12:20:21 CST 2005
When trying to run ./configure on kiwimanager I get error:
checking how to run the C++ preprocessor... /lib/cpp
configure: error: C++ preprocessor "/lib/cpp" fails sanity check
(I tried it on another application, kifi, and did same thing.)
Any help most appreciated! :)
config.log follows:
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.53. Invocation command line was
$ ./configure
## --------- ##
## Platform. ##
## --------- ##
hostname = localhost.localdomain
uname -m = i686
uname -r = 2.4.22-1.2199.nptl
uname -s = Linux
uname -v = #1 Wed Aug 4 12:21:48 EDT 2004
/usr/bin/uname -p = unknown
/bin/uname -X = unknown
/bin/arch = i686
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
hostinfo = unknown
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown
PATH: /usr/local/bin
PATH: /usr/bin
PATH: /bin
PATH: /usr/X11R6/bin
PATH: /usr/lib/jre/bin
PATH: /home/candice/bin
PATH: /usr/lib/jre/bin
## ----------- ##
## Core tests. ##
## ----------- ##
configure:1433: checking build system type
configure:1451: result: i686-pc-linux-gnu
configure:1461: checking host system type
configure:1475: result: i686-pc-linux-gnu
configure:1485: checking target system type
configure:1499: result: i686-pc-linux-gnu
configure:1548: checking for a BSD-compatible install
configure:1602: result: /usr/bin/install -c
configure:1617: checking for -p flag to install
configure:1630: result: yes
configure:1641: checking whether build environment is sane
configure:1684: result: yes
configure:1704: checking for gawk
configure:1720: found /usr/bin/gawk
configure:1730: result: gawk
configure:1740: checking whether make sets ${MAKE}
configure:1760: result: yes
configure:1963: checking for style of include used by make
configure:1991: result: GNU
configure:2138: checking for gcc
configure:2154: found /usr/bin/gcc
configure:2164: result: gcc
configure:2408: checking for C compiler version
configure:2411: gcc --version </dev/null >&5
gcc (GCC) 3.3.2 20031022 (Red Hat Linux 3.3.2-1)
Copyright (C) 2003 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:2414: $? = 0
configure:2416: gcc -v </dev/null >&5
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/3.3.2/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
--host=i386-redhat-linux
Thread model: posix
gcc version 3.3.2 20031022 (Red Hat Linux 3.3.2-1)
configure:2419: $? = 0
configure:2421: gcc -V </dev/null >&5
gcc: `-V' option must have argument
configure:2424: $? = 1
configure:2450: checking for C compiler default output
configure:2453: gcc conftest.c >&5
configure:2456: $? = 0
configure:2489: result: a.out
configure:2494: checking whether the C compiler works
configure:2500: ./a.out
configure:2503: $? = 0
configure:2518: result: yes
configure:2525: checking whether we are cross compiling
configure:2527: result: no
configure:2530: checking for suffix of executables
configure:2532: gcc -o conftest conftest.c >&5
configure:2535: $? = 0
configure:2557: result:
configure:2563: checking for suffix of object files
configure:2587: gcc -c conftest.c >&5
configure:2590: $? = 0
configure:2609: result: o
configure:2613: checking whether we are using the GNU C compiler
configure:2640: gcc -c conftest.c >&5
configure:2643: $? = 0
configure:2646: test -s conftest.o
configure:2649: $? = 0
configure:2661: result: yes
configure:2667: checking whether gcc accepts -g
configure:2691: gcc -c -g conftest.c >&5
configure:2694: $? = 0
configure:2697: test -s conftest.o
configure:2700: $? = 0
configure:2710: result: yes
configure:2737: gcc -c conftest.c >&5
conftest.c:2: error: syntax error before "me"
configure:2740: $? = 1
configure: failed program was:
#ifndef __cplusplus
choke me
#endif
configure:2852: checking dependency style of gcc
configure:2914: result: gcc3
configure:2925: checking how to run the C preprocessor
configure:2951: gcc -E conftest.c
configure:2957: $? = 0
configure:2984: gcc -E conftest.c
configure:2980:28: ac_nonexistent.h: No such file or directory
configure:2990: $? = 1
configure: failed program was:
#line 2979 "configure"
#include "confdefs.h"
#include <ac_nonexistent.h>
configure:3027: result: gcc -E
configure:3042: gcc -E conftest.c
configure:3048: $? = 0
configure:3075: gcc -E conftest.c
configure:3071:28: ac_nonexistent.h: No such file or directory
configure:3081: $? = 1
configure: failed program was:
#line 3070 "configure"
#include "confdefs.h"
#include <ac_nonexistent.h>
configure:3201: checking for g++
configure:3230: result: no
configure:3201: checking for c++
configure:3230: result: no
configure:3201: checking for gpp
configure:3230: result: no
configure:3201: checking for aCC
configure:3230: result: no
configure:3201: checking for CC
configure:3230: result: no
configure:3201: checking for cxx
configure:3230: result: no
configure:3201: checking for cc++
configure:3230: result: no
configure:3201: checking for cl
configure:3230: result: no
configure:3201: checking for FCC
configure:3230: result: no
configure:3201: checking for KCC
configure:3230: result: no
configure:3201: checking for RCC
configure:3230: result: no
configure:3201: checking for xlC_r
configure:3230: result: no
configure:3201: checking for xlC
configure:3230: result: no
configure:3243: checking for C++ compiler version
configure:3246: g++ --version </dev/null >&5
./configure: line 1: g++: command not found
configure:3249: $? = 127
configure:3251: g++ -v </dev/null >&5
./configure: line 1: g++: command not found
configure:3254: $? = 127
configure:3256: g++ -V </dev/null >&5
./configure: line 1: g++: command not found
configure:3259: $? = 127
configure:3262: checking whether we are using the GNU C++ compiler
configure:3289: g++ -c conftest.cc >&5
./configure: line 1: g++: command not found
configure:3292: $? = 127
configure: failed program was:
#line 3267 "configure"
#include "confdefs.h"
#ifdef F77_DUMMY_MAIN
# ifdef __cplusplus
extern "C"
# endif
int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
#ifndef __GNUC__
choke me
#endif
;
return 0;
}
configure:3310: result: no
configure:3316: checking whether g++ accepts -g
configure:3340: g++ -c -g conftest.cc >&5
./configure: line 1: g++: command not found
configure:3343: $? = 127
configure: failed program was:
#line 3321 "configure"
#include "confdefs.h"
#ifdef F77_DUMMY_MAIN
# ifdef __cplusplus
extern "C"
# endif
int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
;
return 0;
}
configure:3359: result: no
configure:3405: g++ -c conftest.cc >&5
./configure: line 1: g++: command not found
configure:3408: $? = 127
configure: failed program was:
#line 3385 "configure"
#include "confdefs.h"
#include <stdlib.h>
#ifdef F77_DUMMY_MAIN
# ifdef __cplusplus
extern "C"
# endif
int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
exit (42);
;
return 0;
}
configure:3405: g++ -c conftest.cc >&5
./configure: line 1: g++: command not found
configure:3408: $? = 127
configure: failed program was:
#line 3385 "configure"
#include "confdefs.h"
#include <stdlib.h>
#include <stdlib.h>
#ifdef F77_DUMMY_MAIN
# ifdef __cplusplus
extern "C"
# endif
int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
exit (42);
;
return 0;
}
configure:3405: g++ -c conftest.cc >&5
./configure: line 1: g++: command not found
configure:3408: $? = 127
configure: failed program was:
#line 3385 "configure"
#include "confdefs.h"
#include <stdlib.h>
extern "C" void std::exit (int) throw (); using std::exit;
#ifdef F77_DUMMY_MAIN
# ifdef __cplusplus
extern "C"
# endif
int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
exit (42);
;
return 0;
}
configure:3405: g++ -c conftest.cc >&5
./configure: line 1: g++: command not found
configure:3408: $? = 127
configure: failed program was:
#line 3385 "configure"
#include "confdefs.h"
#include <stdlib.h>
extern "C" void std::exit (int); using std::exit;
#ifdef F77_DUMMY_MAIN
# ifdef __cplusplus
extern "C"
# endif
int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
exit (42);
;
return 0;
}
configure:3405: g++ -c conftest.cc >&5
./configure: line 1: g++: command not found
configure:3408: $? = 127
configure: failed program was:
#line 3385 "configure"
#include "confdefs.h"
#include <stdlib.h>
extern "C" void exit (int) throw ();
#ifdef F77_DUMMY_MAIN
# ifdef __cplusplus
extern "C"
# endif
int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
exit (42);
;
return 0;
}
configure:3405: g++ -c conftest.cc >&5
./configure: line 1: g++: command not found
configure:3408: $? = 127
configure: failed program was:
#line 3385 "configure"
#include "confdefs.h"
#include <stdlib.h>
extern "C" void exit (int);
#ifdef F77_DUMMY_MAIN
# ifdef __cplusplus
extern "C"
# endif
int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
exit (42);
;
return 0;
}
configure:3405: g++ -c conftest.cc >&5
./configure: line 1: g++: command not found
configure:3408: $? = 127
configure: failed program was:
#line 3385 "configure"
#include "confdefs.h"
#include <stdlib.h>
void exit (int);
#ifdef F77_DUMMY_MAIN
# ifdef __cplusplus
extern "C"
# endif
int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
exit (42);
;
return 0;
}
configure:3475: checking dependency style of g++
configure:3537: result: none
configure:4980: checking how to run the C++ preprocessor
configure:5002: g++ -E conftest.cc
./configure: line 1: g++: command not found
configure:5008: $? = 127
configure: failed program was:
#line 4996 "configure"
#include "confdefs.h"
#include <assert.h>
Syntax error
configure:5002: g++ -E conftest.cc
./configure: line 1: g++: command not found
configure:5008: $? = 127
configure: failed program was:
#line 4996 "configure"
#include "confdefs.h"
#include <assert.h>
Syntax error
configure:5002: /lib/cpp conftest.cc
cpp: installation problem, cannot exec `cc1plus': No such file or directory
configure:5008: $? = 1
configure: failed program was:
#line 4996 "configure"
#include "confdefs.h"
#include <assert.h>
Syntax error
configure:5002: /lib/cpp conftest.cc
cpp: installation problem, cannot exec `cc1plus': No such file or directory
configure:5008: $? = 1
configure: failed program was:
#line 4996 "configure"
#include "confdefs.h"
#include <assert.h>
Syntax error
configure:5078: result: /lib/cpp
configure:5093: /lib/cpp conftest.cc
cpp: installation problem, cannot exec `cc1plus': No such file or directory
configure:5099: $? = 1
configure: failed program was:
#line 5087 "configure"
#include "confdefs.h"
#include <assert.h>
Syntax error
configure:5093: /lib/cpp conftest.cc
cpp: installation problem, cannot exec `cc1plus': No such file or directory
configure:5099: $? = 1
configure: failed program was:
#line 5087 "configure"
#include "confdefs.h"
#include <assert.h>
Syntax error
configure:5160: error: C++ preprocessor "/lib/cpp" fails sanity check
## ---------------- ##
## Cache variables. ##
## ---------------- ##
ac_cv_build=i686-pc-linux-gnu
ac_cv_build_alias=i686-pc-linux-gnu
ac_cv_c_compiler_gnu=yes
ac_cv_cxx_compiler_gnu=no
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_CXXCPP_set=
ac_cv_env_CXXCPP_value=
ac_cv_env_CXXFLAGS_set=
ac_cv_env_CXXFLAGS_value=
ac_cv_env_CXX_set=
ac_cv_env_CXX_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_exeext=
ac_cv_host=i686-pc-linux-gnu
ac_cv_host_alias=i686-pc-linux-gnu
ac_cv_objext=o
ac_cv_path_install='/usr/bin/install -c'
ac_cv_prog_AWK=gawk
ac_cv_prog_CPP='gcc -E'
ac_cv_prog_CXXCPP=/lib/cpp
ac_cv_prog_ac_ct_CC=gcc
ac_cv_prog_cc_g=yes
ac_cv_prog_cxx_g=no
ac_cv_prog_make_make_set=yes
ac_cv_target=i686-pc-linux-gnu
ac_cv_target_alias=i686-pc-linux-gnu
am_cv_CC_dependencies_compiler_type=gcc3
am_cv_CXX_dependencies_compiler_type=none
## ----------- ##
## confdefs.h. ##
## ----------- ##
#define PACKAGE_NAME ""
#define PACKAGE_TARNAME ""
#define PACKAGE_VERSION ""
#define PACKAGE_STRING ""
#define PACKAGE_BUGREPORT ""
#define PACKAGE "kwifimanager"
#define VERSION "1.0.2"
#ifdef __cplusplus
void exit (int);
#endif
configure: exit 1
More information about the Discuss
mailing list