Problems Compiling Asterisk:

i’m having problems compiling asterisk in CentOS 5, i have untared asterisk, and when i do ./configure it does a bunch of stuff and then outputs

configure: error: C++ preprocessor “/lib/cpp” fails sanity check
See ‘config.log’ for more details.

config.log says

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.61. Invocation command line was

$ ./configure

---------

Platform.

---------

hostname = localhost.localdomain
uname -m = i686
uname -r = 2.6.18-8.el5xen
uname -s = Linux
uname -v = #1 SMP Thu Mar 15 21:02:53 EDT 2007

/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: /root/bin

-----------

Core tests.

-----------

configure:2021: checking build system type
configure:2039: result: i686-pc-linux-gnu
configure:2061: checking host system type
configure:2076: result: i686-pc-linux-gnu
configure:2163: checking for gcc
configure:2179: found /usr/bin/gcc
configure:2190: result: gcc
configure:2428: checking for C compiler version
configure:2435: gcc --version >&5
gcc (GCC) 4.1.1 20070105 (Red Hat 4.1.1-52)
Copyright © 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:2438: $? = 0
configure:2445: gcc -v >&5
Using built-in specs.
Target: i386-redhat-linux
Configured with: …/configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-libgcj-multifile --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --disable-dssi --enable-plugin --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre --with-cpu=generic --host=i386-redhat-linux
Thread model: posix
gcc version 4.1.1 20070105 (Red Hat 4.1.1-52)
configure:2448: $? = 0
configure:2455: gcc -V >&5
gcc: ‘-V’ option must have argument
configure:2458: $? = 1
configure:2481: checking for C compiler default output file name
configure:2508: gcc conftest.c >&5
configure:2511: $? = 0
configure:2549: result: a.out
configure:2566: checking whether the C compiler works
configure:2576: ./a.out
configure:2579: $? = 0
configure:2596: result: yes
configure:2603: checking whether we are cross compiling
configure:2605: result: no
configure:2608: checking for suffix of executables
configure:2615: gcc -o conftest conftest.c >&5
configure:2618: $? = 0
configure:2642: result:
configure:2648: checking for suffix of object files
configure:2674: gcc -c conftest.c >&5
configure:2677: $? = 0
configure:2700: result: o
configure:2704: checking whether we are using the GNU C compiler
configure:2733: gcc -c conftest.c >&5
configure:2739: $? = 0
configure:2756: result: yes
configure:2761: checking whether gcc accepts -g
configure:2791: gcc -c -g conftest.c >&5
configure:2797: $? = 0
configure:2896: result: yes
configure:2913: checking for gcc option to accept ISO C89
configure:2987: gcc -c -g -O2 conftest.c >&5
configure:2993: $? = 0
configure:3016: result: none needed
configure:3040: checking how to run the C preprocessor
configure:3080: gcc -E conftest.c
configure:3086: $? = 0
configure:3117: gcc -E conftest.c
conftest.c:9:28: error: ac_nonexistent.h: No such file or directory
configure:3123: $? = 1
configure: failed program was:
| /* confdefs.h. /
| #define PACKAGE_NAME “”
| #define PACKAGE_TARNAME “”
| #define PACKAGE_VERSION “”
| #define PACKAGE_STRING “”
| #define PACKAGE_BUGREPORT “”
| #define _GNU_SOURCE 1
| /
end confdefs.h. /
| #include <ac_nonexistent.h>
configure:3156: result: gcc -E
configure:3185: gcc -E conftest.c
configure:3191: $? = 0
configure:3222: gcc -E conftest.c
conftest.c:9:28: error: ac_nonexistent.h: No such file or directory
configure:3228: $? = 1
configure: failed program was:
| /
confdefs.h. /
| #define PACKAGE_NAME “”
| #define PACKAGE_TARNAME “”
| #define PACKAGE_VERSION “”
| #define PACKAGE_STRING “”
| #define PACKAGE_BUGREPORT “”
| #define _GNU_SOURCE 1
| /
end confdefs.h. /
| #include <ac_nonexistent.h>
configure:3266: checking for grep that handles long lines and -e
configure:3340: result: /bin/grep
configure:3345: checking for egrep
configure:3423: result: /bin/grep -E
configure:3429: checking for AIX
configure:3451: result: no
configure:3457: checking for ANSI C header files
configure:3487: gcc -c -g -O2 conftest.c >&5
configure:3493: $? = 0
configure:3592: gcc -o conftest -g -O2 conftest.c >&5
configure:3595: $? = 0
configure:3601: ./conftest
configure:3604: $? = 0
configure:3621: result: yes
configure:3645: checking for sys/types.h
configure:3666: gcc -c -g -O2 conftest.c >&5
configure:3672: $? = 0
configure:3688: result: yes
configure:3645: checking for sys/stat.h
configure:3666: gcc -c -g -O2 conftest.c >&5
configure:3672: $? = 0
configure:3688: result: yes
configure:3645: checking for stdlib.h
configure:3666: gcc -c -g -O2 conftest.c >&5
configure:3672: $? = 0
configure:3688: result: yes
configure:3645: checking for string.h
configure:3666: gcc -c -g -O2 conftest.c >&5
configure:3672: $? = 0
configure:3688: result: yes
configure:3645: checking for memory.h
configure:3666: gcc -c -g -O2 conftest.c >&5
configure:3672: $? = 0
configure:3688: result: yes
configure:3645: checking for strings.h
configure:3666: gcc -c -g -O2 conftest.c >&5
configure:3672: $? = 0
configure:3688: result: yes
configure:3645: checking for inttypes.h
configure:3666: gcc -c -g -O2 conftest.c >&5
configure:3672: $? = 0
configure:3688: result: yes
configure:3645: checking for stdint.h
configure:3666: gcc -c -g -O2 conftest.c >&5
configure:3672: $? = 0
configure:3688: result: yes
configure:3645: checking for unistd.h
configure:3666: gcc -c -g -O2 conftest.c >&5
configure:3672: $? = 0
configure:3688: result: yes
configure:3710: checking minix/config.h usability
configure:3727: gcc -c -g -O2 conftest.c >&5
conftest.c:52:26: error: minix/config.h: No such file or directory
configure:3733: $? = 1
configure: failed program was:
| /
confdefs.h. /
| #define PACKAGE_NAME “”
| #define PACKAGE_TARNAME “”
| #define PACKAGE_VERSION “”
| #define PACKAGE_STRING “”
| #define PACKAGE_BUGREPORT “”
| #define _GNU_SOURCE 1
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| /
end confdefs.h. /
| #include <stdio.h>
| #ifdef HAVE_SYS_TYPES_H
| # include <sys/types.h>
| #endif
| #ifdef HAVE_SYS_STAT_H
| # include <sys/stat.h>
| #endif
| #ifdef STDC_HEADERS
| # include <stdlib.h>
| # include <stddef.h>
| #else
| # ifdef HAVE_STDLIB_H
| # include <stdlib.h>
| # endif
| #endif
| #ifdef HAVE_STRING_H
| # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
| # include <memory.h>
| # endif
| # include <string.h>
| #endif
| #ifdef HAVE_STRINGS_H
| # include <strings.h>
| #endif
| #ifdef HAVE_INTTYPES_H
| # include <inttypes.h>
| #endif
| #ifdef HAVE_STDINT_H
| # include <stdint.h>
| #endif
| #ifdef HAVE_UNISTD_H
| # include <unistd.h>
| #endif
| #include <minix/config.h>
configure:3747: result: no
configure:3751: checking minix/config.h presence
configure:3766: gcc -E conftest.c
conftest.c:19:26: error: minix/config.h: No such file or directory
configure:3772: $? = 1
configure: failed program was:
| /
confdefs.h. /
| #define PACKAGE_NAME “”
| #define PACKAGE_TARNAME “”
| #define PACKAGE_VERSION “”
| #define PACKAGE_STRING “”
| #define PACKAGE_BUGREPORT “”
| #define _GNU_SOURCE 1
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| /
end confdefs.h. */
| #include <minix/config.h>
configure:3786: result: no
configure:3814: checking for minix/config.h
configure:3821: result: no
configure:3860: checking whether it is safe to define EXTENSIONS
configure:3888: gcc -c -g -O2 conftest.c >&5
configure:3894: $? = 0
configure:3909: result: yes
configure:4034: checking for uname
configure:4052: found /bin/uname
configure:4064: result: /bin/uname
configure:4539: checking for gcc
configure:4566: result: gcc
configure:4804: checking for C compiler version
configure:4811: gcc --version >&5
gcc (GCC) 4.1.1 20070105 (Red Hat 4.1.1-52)
Copyright © 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:4814: $? = 0
configure:4821: gcc -v >&5
Using built-in specs.
Target: i386-redhat-linux
Configured with: …/configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-libgcj-multifile --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --disable-dssi --enable-plugin --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre --with-cpu=generic --host=i386-redhat-linux
Thread model: posix
gcc version 4.1.1 20070105 (Red Hat 4.1.1-52)
configure:4824: $? = 0
configure:4831: gcc -V >&5
gcc: ‘-V’ option must have argument
configure:4834: $? = 1
configure:4837: checking whether we are using the GNU C compiler
configure:4889: result: yes
configure:4894: checking whether gcc accepts -g
configure:5029: result: yes
configure:5046: checking for gcc option to accept ISO C89
configure:5149: result: none needed
configure:5225: checking for g++
configure:5255: result: no
configure:5225: checking for c++
configure:5255: result: no
configure:5225: checking for gpp
configure:5255: result: no
configure:5225: checking for aCC
configure:5255: result: no
configure:5225: checking for CC
configure:5255: result: no
configure:5225: checking for cxx
configure:5255: result: no
configure:5225: checking for cc++
configure:5255: result: no
configure:5225: checking for cl.exe
configure:5255: result: no
configure:5225: checking for FCC
configure:5255: result: no
configure:5225: checking for KCC
configure:5255: result: no
configure:5225: checking for RCC
configure:5255: result: no
configure:5225: checking for xlC_r
configure:5255: result: no
configure:5225: checking for xlC
configure:5255: result: no
configure:5283: checking for C++ compiler version
configure:5290: g++ --version >&5
./configure: line 5291: g++: command not found
configure:5293: $? = 127
configure:5300: g++ -v >&5
./configure: line 5301: g++: command not found
configure:5303: $? = 127
configure:5310: g++ -V >&5
./configure: line 5311: g++: command not found
configure:5313: $? = 127
configure:5316: checking whether we are using the GNU C++ compiler
configure:5345: g++ -c conftest.cpp >&5
./configure: line 5346: g++: command not found
configure:5351: $? = 127
configure: failed program was:
| /* confdefs.h. /
| #define PACKAGE_NAME “”
| #define PACKAGE_TARNAME “”
| #define PACKAGE_VERSION “”
| #define PACKAGE_STRING “”
| #define PACKAGE_BUGREPORT “”
| #define _GNU_SOURCE 1
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define EXTENSIONS 1
| #define _POSIX_PTHREAD_SEMANTICS 1
| #define _TANDEM_SOURCE 1
| /
end confdefs.h. /
|
| int
| main ()
| {
| #ifndef GNUC
| choke me
| #endif
|
| ;
| return 0;
| }
configure:5368: result: no
configure:5373: checking whether g++ accepts -g
configure:5403: g++ -c -g conftest.cpp >&5
./configure: line 5404: g++: command not found
configure:5409: $? = 127
configure: failed program was:
| /
confdefs.h. /
| #define PACKAGE_NAME “”
| #define PACKAGE_TARNAME “”
| #define PACKAGE_VERSION “”
| #define PACKAGE_STRING “”
| #define PACKAGE_BUGREPORT “”
| #define _GNU_SOURCE 1
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define EXTENSIONS 1
| #define _POSIX_PTHREAD_SEMANTICS 1
| #define _TANDEM_SOURCE 1
| /
end confdefs.h. /
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:5441: g++ -c conftest.cpp >&5
./configure: line 5442: g++: command not found
configure:5447: $? = 127
configure: failed program was:
| /
confdefs.h. /
| #define PACKAGE_NAME “”
| #define PACKAGE_TARNAME “”
| #define PACKAGE_VERSION “”
| #define PACKAGE_STRING “”
| #define PACKAGE_BUGREPORT “”
| #define _GNU_SOURCE 1
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define EXTENSIONS 1
| #define _POSIX_PTHREAD_SEMANTICS 1
| #define _TANDEM_SOURCE 1
| /
end confdefs.h. /
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:5480: g++ -c -g conftest.cpp >&5
./configure: line 5481: g++: command not found
configure:5486: $? = 127
configure: failed program was:
| /
confdefs.h. /
| #define PACKAGE_NAME “”
| #define PACKAGE_TARNAME “”
| #define PACKAGE_VERSION “”
| #define PACKAGE_STRING “”
| #define PACKAGE_BUGREPORT “”
| #define _GNU_SOURCE 1
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define EXTENSIONS 1
| #define _POSIX_PTHREAD_SEMANTICS 1
| #define _TANDEM_SOURCE 1
| /
end confdefs.h. /
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:5508: result: no
configure:5536: checking how to run the C preprocessor
configure:5652: result: gcc -E
configure:5681: gcc -E conftest.c
configure:5687: $? = 0
configure:5718: gcc -E conftest.c
conftest.c:22:28: error: ac_nonexistent.h: No such file or directory
configure:5724: $? = 1
configure: failed program was:
| /
confdefs.h. /
| #define PACKAGE_NAME “”
| #define PACKAGE_TARNAME “”
| #define PACKAGE_VERSION “”
| #define PACKAGE_STRING “”
| #define PACKAGE_BUGREPORT “”
| #define _GNU_SOURCE 1
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define EXTENSIONS 1
| #define _POSIX_PTHREAD_SEMANTICS 1
| #define _TANDEM_SOURCE 1
| /
end confdefs.h. /
| #include <ac_nonexistent.h>
configure:5766: checking how to run the C++ preprocessor
configure:5802: g++ -E conftest.cpp
./configure: line 5803: g++: command not found
configure:5808: $? = 127
configure: failed program was:
| /
confdefs.h. /
| #define PACKAGE_NAME “”
| #define PACKAGE_TARNAME “”
| #define PACKAGE_VERSION “”
| #define PACKAGE_STRING “”
| #define PACKAGE_BUGREPORT “”
| #define _GNU_SOURCE 1
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define EXTENSIONS 1
| #define _POSIX_PTHREAD_SEMANTICS 1
| #define _TANDEM_SOURCE 1
| /
end confdefs.h. /
| #ifdef STDC
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
| Syntax error
configure:5802: g++ -E conftest.cpp
./configure: line 5803: g++: command not found
configure:5808: $? = 127
configure: failed program was:
| /
confdefs.h. /
| #define PACKAGE_NAME “”
| #define PACKAGE_TARNAME “”
| #define PACKAGE_VERSION “”
| #define PACKAGE_STRING “”
| #define PACKAGE_BUGREPORT “”
| #define _GNU_SOURCE 1
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define EXTENSIONS 1
| #define _POSIX_PTHREAD_SEMANTICS 1
| #define _TANDEM_SOURCE 1
| /
end confdefs.h. /
| #ifdef STDC
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
| Syntax error
configure:5802: /lib/cpp conftest.cpp
cpp: error trying to exec ‘cc1plus’: execvp: No such file or directory
configure:5808: $? = 1
configure: failed program was:
| /
confdefs.h. /
| #define PACKAGE_NAME “”
| #define PACKAGE_TARNAME “”
| #define PACKAGE_VERSION “”
| #define PACKAGE_STRING “”
| #define PACKAGE_BUGREPORT “”
| #define _GNU_SOURCE 1
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define EXTENSIONS 1
| #define _POSIX_PTHREAD_SEMANTICS 1
| #define _TANDEM_SOURCE 1
| /
end confdefs.h. /
| #ifdef STDC
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
| Syntax error
configure:5802: /lib/cpp conftest.cpp
cpp: error trying to exec ‘cc1plus’: execvp: No such file or directory
configure:5808: $? = 1
configure: failed program was:
| /
confdefs.h. /
| #define PACKAGE_NAME “”
| #define PACKAGE_TARNAME “”
| #define PACKAGE_VERSION “”
| #define PACKAGE_STRING “”
| #define PACKAGE_BUGREPORT “”
| #define _GNU_SOURCE 1
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define EXTENSIONS 1
| #define _POSIX_PTHREAD_SEMANTICS 1
| #define _TANDEM_SOURCE 1
| /
end confdefs.h. /
| #ifdef STDC
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
| Syntax error
configure:5878: result: /lib/cpp
configure:5907: /lib/cpp conftest.cpp
cpp: error trying to exec ‘cc1plus’: execvp: No such file or directory
configure:5913: $? = 1
configure: failed program was:
| /
confdefs.h. /
| #define PACKAGE_NAME “”
| #define PACKAGE_TARNAME “”
| #define PACKAGE_VERSION “”
| #define PACKAGE_STRING “”
| #define PACKAGE_BUGREPORT “”
| #define _GNU_SOURCE 1
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define EXTENSIONS 1
| #define _POSIX_PTHREAD_SEMANTICS 1
| #define _TANDEM_SOURCE 1
| /
end confdefs.h. /
| #ifdef STDC
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
| Syntax error
configure:5907: /lib/cpp conftest.cpp
cpp: error trying to exec ‘cc1plus’: execvp: No such file or directory
configure:5913: $? = 1
configure: failed program was:
| /
confdefs.h. /
| #define PACKAGE_NAME “”
| #define PACKAGE_TARNAME “”
| #define PACKAGE_VERSION “”
| #define PACKAGE_STRING “”
| #define PACKAGE_BUGREPORT “”
| #define _GNU_SOURCE 1
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define EXTENSIONS 1
| #define _POSIX_PTHREAD_SEMANTICS 1
| #define _TANDEM_SOURCE 1
| /
end confdefs.h. */
| #ifdef STDC
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
| Syntax error
configure:5975: error: C++ preprocessor “/lib/cpp” fails sanity check
See `config.log’ for more details.

----------------

Cache variables.

----------------

ac_cv_build=i686-pc-linux-gnu
ac_cv_c_compiler_gnu=yes
ac_cv_cxx_compiler_gnu=no
ac_cv_env_CCC_set=
ac_cv_env_CCC_value=
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_LIBS_set=
ac_cv_env_LIBS_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_header_inttypes_h=yes
ac_cv_header_memory_h=yes
ac_cv_header_minix_config_h=no
ac_cv_header_stdc=yes
ac_cv_header_stdint_h=yes
ac_cv_header_stdlib_h=yes
ac_cv_header_string_h=yes
ac_cv_header_strings_h=yes
ac_cv_header_sys_stat_h=yes
ac_cv_header_sys_types_h=yes
ac_cv_header_unistd_h=yes
ac_cv_host=i686-pc-linux-gnu
ac_cv_objext=o
ac_cv_path_EGREP=’/bin/grep -E’
ac_cv_path_GREP=/bin/grep
ac_cv_path_ac_pt_UNAME=/bin/uname
ac_cv_prog_CPP='gcc -E’
ac_cv_prog_CXXCPP=/lib/cpp
ac_cv_prog_ac_ct_CC=gcc
ac_cv_prog_cc_c89=
ac_cv_prog_cc_g=yes
ac_cv_prog_cxx_g=no
ac_cv_safe_to_define___extensions__=yes

-----------------

Output variables.

-----------------

ALLOCA=’‘
ALSA_DIR=’‘
ALSA_INCLUDE=’‘
ALSA_LIB=’‘
AR=’‘
AST_DECLARATION_AFTER_STATEMENT=’‘
AST_DEVMODE=’‘
AWK=’‘
BASENAME=’'
BUILD_CPU='i686’
BUILD_OS='linux-gnu’
BUILD_PLATFORM=‘i686-pc-linux-gnu’
BUILD_VENDOR=‘pc’
CC=‘gcc’
CFLAGS=’-g -O2’
COMPRESS=’‘
CPP=‘gcc -E’
CPPFLAGS=’‘
CURL_CONFIG=’‘
CURL_DIR=’‘
CURL_INCLUDE=’‘
CURL_LIB=’‘
CURSES_DIR=’‘
CURSES_INCLUDE=’‘
CURSES_LIB=’‘
CXX=‘g++‘
CXXCPP=’/lib/cpp’
CXXFLAGS=’‘
DEFS=’‘
DIRNAME=’‘
DOT=’‘
DOWNLOAD=’‘
ECHO_C=’‘
ECHO_N=’-n’
ECHO_T=’‘
EDITLINE_LIB=’‘
EGREP=’/bin/grep -E’
EXEEXT=’‘
FETCH=’‘
FIND=’‘
FREETDS_DIR=’‘
FREETDS_INCLUDE=’‘
FREETDS_LIB=’‘
GC_CFLAGS=’‘
GC_LDFLAGS=’‘
GNUTLS_DIR=’‘
GNUTLS_INCLUDE=’‘
GNUTLS_LIB=’‘
GNU_LD=’‘
GNU_MAKE=’‘
GREP=’/bin/grep’
GSM_DIR=’‘
GSM_INCLUDE=’‘
GSM_INTERNAL=’‘
GSM_LIB=’‘
GTK2_INCLUDE=’‘
GTK2_LIB=’‘
GTKCONFIG=’‘
GTK_INCLUDE=’‘
GTK_LIB=’'
HOST_CPU='i686’
HOST_OS='linux-gnu’
HOST_PLATFORM='i686-pc-linux-gnu’
HOST_VENDOR=‘pc’
ID=’‘
IKSEMEL_DIR=’‘
IKSEMEL_INCLUDE=’‘
IKSEMEL_LIB=’‘
IMAP_TK_DIR=’‘
IMAP_TK_INCLUDE=’‘
IMAP_TK_LIB=’‘
INSTALL_DATA=’‘
INSTALL_PROGRAM=’‘
INSTALL_SCRIPT=’‘
ISDNNET_DIR=’‘
ISDNNET_INCLUDE=’‘
ISDNNET_LIB=’‘
KDEDIR=’‘
KDEINIT=’‘
KDE_DIR=’‘
KDE_INCLUDE=’‘
KDE_LIB=’‘
LD=’‘
LDFLAGS=’‘
LIBOBJS=’‘
LIBS=’‘
LN=’‘
LN_S=’‘
LTDL_DIR=’‘
LTDL_INCLUDE=’‘
LTDL_LIB=’‘
LTLIBOBJS=’‘
MISDN_DIR=’‘
MISDN_INCLUDE=’‘
MISDN_LIB=’‘
NBS_DIR=’‘
NBS_INCLUDE=’‘
NBS_LIB=’‘
NCURSES_DIR=’‘
NCURSES_INCLUDE=’‘
NCURSES_LIB=’‘
NETSNMP_CONFIG=’‘
NETSNMP_DIR=’‘
NETSNMP_INCLUDE=’‘
NETSNMP_LIB=’‘
NEWT_DIR=’‘
NEWT_INCLUDE=’‘
NEWT_LIB=’‘
OBJEXT=‘o’
OGG_DIR=’‘
OGG_INCLUDE=’‘
OGG_LIB=’‘
OPENH323DIR=’‘
OPENH323_BUILD=’‘
OPENH323_DIR=’‘
OPENH323_INCDIR=’‘
OPENH323_INCLUDE=’‘
OPENH323_LIB=’‘
OPENH323_LIBDIR=’‘
OPENH323_SUFFIX=’‘
OPENSSL_DIR=’‘
OPENSSL_INCLUDE=’‘
OPENSSL_LIB=’‘
OSARCH=‘linux-gnu’
OSPTK_DIR=’‘
OSPTK_INCLUDE=’‘
OSPTK_LIB=’‘
OSS_DIR=’‘
OSS_INCLUDE=’‘
OSS_LIB=’‘
PACKAGE_BUGREPORT=’‘
PACKAGE_NAME=’‘
PACKAGE_STRING=’‘
PACKAGE_TARNAME=’‘
PACKAGE_VERSION=’‘
PATH_SEPARATOR=’:‘
PBX_ALSA=’‘
PBX_CURL=’‘
PBX_CURSES=’‘
PBX_FREETDS=’‘
PBX_GNUTLS=’‘
PBX_GSM=’‘
PBX_GTK2=’‘
PBX_GTK=’‘
PBX_H323=’‘
PBX_IKSEMEL=’‘
PBX_IMAP_TK=’‘
PBX_ISDNNET=’‘
PBX_IXJUSER=’‘
PBX_KDE=’‘
PBX_LTDL=’‘
PBX_MISDN=’‘
PBX_NBS=’‘
PBX_NCURSES=’‘
PBX_NETSNMP=’‘
PBX_NEWT=’‘
PBX_OGG=’‘
PBX_OPENH323=’‘
PBX_OPENSSL=’‘
PBX_OSPTK=’‘
PBX_OSREV=‘2.6.18-8.el5xen’
PBX_OSS=’‘
PBX_PGSQL=’‘
PBX_POPT=’‘
PBX_PRI=’‘
PBX_PWLIB=’‘
PBX_QT=’‘
PBX_RADIUS=’‘
PBX_SPEEX=’‘
PBX_SQLITE=’‘
PBX_SUPPSERV=’‘
PBX_TERMCAP=’‘
PBX_TINFO=’‘
PBX_TONEZONE=’‘
PBX_UNIXODBC=’‘
PBX_VORBIS=’‘
PBX_VPB=’‘
PBX_ZAPTEL=’‘
PBX_ZAPTEL_TRANSCODE=’‘
PBX_ZAPTEL_VLDTMF=’‘
PBX_ZLIB=’‘
PGSQL_DIR=’‘
PGSQL_INCLUDE=’‘
PGSQL_LIB=’‘
PG_CONFIG=’‘
PKGCONFIG=’‘
POPT_DIR=’‘
POPT_INCLUDE=’‘
POPT_LIB=’‘
POW_LIB=’‘
PRI_DIR=’‘
PRI_INCLUDE=’‘
PRI_LIB=’‘
PTHREAD_CC=’‘
PTHREAD_CFLAGS=’‘
PTHREAD_LIBS=’‘
PTLIB_CONFIG=’‘
PWLIBDIR=’‘
PWLIB_DIR=’‘
PWLIB_INCDIR=’‘
PWLIB_INCLUDE=’‘
PWLIB_LIB=’‘
PWLIB_LIBDIR=’‘
PWLIB_PLATFORM=’‘
QTMOC=’‘
QT_DIR=’‘
QT_INCLUDE=’‘
QT_LIB=’‘
RADIUS_DIR=’‘
RADIUS_INCLUDE=’‘
RADIUS_LIB=’‘
RANLIB=’‘
SED=’‘
SHELL=’/bin/sh’
SPEEX_DIR=’‘
SPEEX_INCLUDE=’‘
SPEEX_LIB=’‘
SQLITE_DIR=’‘
SQLITE_INCLUDE=’‘
SQLITE_LIB=’‘
STRIP=’‘
SUPPSERV_DIR=’‘
SUPPSERV_INCLUDE=’‘
SUPPSERV_LIB=’‘
TERMCAP_DIR=’‘
TERMCAP_INCLUDE=’‘
TERMCAP_LIB=’‘
TINFO_DIR=’‘
TINFO_INCLUDE=’‘
TINFO_LIB=’‘
TONEZONE_DIR=’‘
TONEZONE_INCLUDE=’‘
TONEZONE_LIB=’‘
UNAME=’/bin/uname’
UNIXODBC_DIR=’‘
UNIXODBC_INCLUDE=’‘
UNIXODBC_LIB=’‘
VORBIS_DIR=’‘
VORBIS_INCLUDE=’‘
VORBIS_LIB=’‘
VPB_DIR=’‘
VPB_INCLUDE=’‘
VPB_LIB=’‘
WGET=’‘
ZAPTEL_DIR=’‘
ZAPTEL_INCLUDE=’‘
ZAPTEL_LIB=’‘
ZLIB_DIR=’‘
ZLIB_INCLUDE=’‘
ZLIB_LIB=’‘
ac_ct_CC=‘gcc’
ac_ct_CXX=’‘
acx_pthread_config=’‘
bindir=’${exec_prefix}/bin’
build=‘i686-pc-linux-gnu’
build_alias=’‘
build_cpu=‘i686’
build_os=‘linux-gnu’
build_vendor=‘pc’
datadir=’${datarootdir}‘
datarootdir=’${prefix}/share’
docdir=’${datarootdir}/doc/${PACKAGE}‘
dvidir=’${docdir}‘
exec_prefix=‘NONE’
host=‘i686-pc-linux-gnu’
host_alias=’‘
host_cpu=‘i686’
host_os=‘linux-gnu’
host_vendor=‘pc’
htmldir=’${docdir}‘
includedir=’${prefix}/include’
infodir=’${datarootdir}/info’
libdir=’${exec_prefix}/lib’
libexecdir=’${exec_prefix}/libexec’
localedir=’${datarootdir}/locale’
localstatedir=’/var’
mandir=’${datarootdir}/man’
oldincludedir=’/usr/include’
pdfdir=’${docdir}‘
prefix=‘NONE’
program_transform_name=‘s,x,x,‘
psdir=’${docdir}‘
sbindir=’${exec_prefix}/sbin’
sharedstatedir=’${prefix}/com’
sysconfdir=’/etc’
target_alias=’’

-----------

confdefs.h.

-----------

#define PACKAGE_NAME “”
#define PACKAGE_TARNAME “”
#define PACKAGE_VERSION “”
#define PACKAGE_STRING “”
#define PACKAGE_BUGREPORT “”
#define _GNU_SOURCE 1
#define STDC_HEADERS 1
#define HAVE_SYS_TYPES_H 1
#define HAVE_SYS_STAT_H 1
#define HAVE_STDLIB_H 1
#define HAVE_STRING_H 1
#define HAVE_MEMORY_H 1
#define HAVE_STRINGS_H 1
#define HAVE_INTTYPES_H 1
#define HAVE_STDINT_H 1
#define HAVE_UNISTD_H 1
#define EXTENSIONS 1
#define _POSIX_PTHREAD_SEMANTICS 1
#define _TANDEM_SOURCE 1

configure: exit 1

I hope someone can help me solve this, i need to get asterisk running soon.

I’ve figured it out with my google-foo! didn’t have the devel packages i needed.