Extacted asterisk-1.4.0-beta2 from asterisk.org and run &quo

extacted asterisk-1.4.0-beta2 from asterisk.org and run “/.configure” and it exited w/ "configure: error: C preprocessor “/lib/cpp” fails sanity check
See `config.log’ for more details.
Anybody can help?

my system: redhat enterprise linux 4, celeron 2.6 GHz, 260MB ram, 40GBHD

-virg

did You
#cat config.log
and read it ?

this is the 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.60a. Invocation command line was

$ ./configure

---------

Platform.

---------

hostname = localhost.localdomain
uname -m = i686
uname -r = 2.6.9-34.EL
uname -s = Linux
uname -v = #1 Fri Feb 24 16:44:51 EST 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: /root/bin

-----------

Core tests.

-----------

configure:1937: checking build system type
configure:1955: result: i686-pc-linux-gnulibc1
configure:1977: checking host system type
configure:1992: result: i686-pc-linux-gnulibc1
configure:2131: checking for uname
configure:2149: found /bin/uname
configure:2161: result: /bin/uname
configure:2740: checking for gcc
configure:2756: found /usr/bin/gcc
configure:2767: result: gcc
configure:3005: checking for C compiler version
configure:3012: gcc --version >&5
gcc (GCC) 3.4.5 20051201 (Red Hat 3.4.5-2)
Copyright © 2004 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:3015: $? = 0
configure:3022: gcc -v >&5
Reading specs from /usr/lib/gcc/i386-redhat-linux/3.4.5/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.5 20051201 (Red Hat 3.4.5-2)
configure:3025: $? = 0
configure:3032: gcc -V >&5
gcc: -V' option must have argument configure:3035: $? = 1 configure:3058: checking for C compiler default output file name configure:3085: gcc conftest.c >&5 configure:3088: $? = 0 configure:3126: result: a.out configure:3143: checking whether the C compiler works configure:3153: ./a.out configure:3156: $? = 0 configure:3173: result: yes configure:3180: checking whether we are cross compiling configure:3182: result: no configure:3185: checking for suffix of executables configure:3192: gcc -o conftest conftest.c >&5 configure:3195: $? = 0 configure:3219: result: configure:3225: checking for suffix of object files configure:3251: gcc -c conftest.c >&5 configure:3254: $? = 0 configure:3277: result: o configure:3281: checking whether we are using the GNU C compiler configure:3310: gcc -c conftest.c >&5 configure:3316: $? = 0 configure:3323: test -z "$ac_c_werror_flag" || test ! -s conftest.err configure:3326: $? = 0 configure:3333: test -s conftest.o configure:3336: $? = 0 configure:3350: result: yes configure:3355: checking whether gcc accepts -g configure:3385: gcc -c -g conftest.c >&5 configure:3391: $? = 0 configure:3398: test -z "$ac_c_werror_flag" || test ! -s conftest.err configure:3401: $? = 0 configure:3408: test -s conftest.o configure:3411: $? = 0 configure:3541: result: yes configure:3558: checking for gcc option to accept ISO C89 configure:3632: gcc -c -g -O2 conftest.c >&5 conftest.c:10:19: stdio.h: No such file or directory conftest.c:11:23: sys/types.h: No such file or directory conftest.c:12:22: sys/stat.h: No such file or directory conftest.c:15: error: syntax error before '*' token conftest.c:15: warning: "struct stat" declared inside parameter list conftest.c:15: warning: its scope is only this definition or declaration, which is probably not what you want conftest.c:15: warning: data definition has no type or storage class conftest.c:49: error: syntax error before "FILE" conftest.c:49: warning: "struct stat" declared inside parameter list conftest.c:49: error:pairnames’ declared as function returning a function
conftest.c:49: error: syntax error before "int"
configure:3638: $? = 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 <stdarg.h>
| #include <stdio.h>
| #include <sys/types.h>
| #include <sys/stat.h>
| /
Most of the following tests are stolen from RCS 5.7’s src/conf.sh. */
| struct buf { int x; };
| FILE * (*rcsopen) (struct buf *, struct stat *, int);
| static char *e (p, i)
| char **p;
| int i;
| {
| return p[i];
| }
| static char *f (char * (*g) (char **, int), char **p, …)
| {
| char s;
| va_list v;
| va_start (v,p);
| s = g (p, va_arg (v,int));
| va_end (v);
| return s;
| }
|
| /
OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
| function prototypes and stuff, but not ‘\xHH’ hex character constants.
| These don’t provoke an error unfortunately, instead are silently treated
| as ‘x’. The following induces an error, until -std is added to get
| proper ANSI mode. Curiously ‘\x00’!=‘x’ always comes out true, for an
| array size at least. It’s necessary to write ‘\x00’==0 to get something
| that’s true only with -std. /
| int osf4_cc_array [’\x00’ == 0 ? 1 : -1];
|
| /
IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
| inside strings and character constants. */
| #define FOO(x) ‘x’
| int xlc6_cc_array[FOO(a) == ‘x’ ? 1 : -1];
|
| int test (int i, double x);
| struct s1 {int (*f) (int a);};
| struct s2 {int (*f) (double a);};
| int pairnames (int, char **, FILE ()(struct buf *, struct stat *, int), int, int);
| int argc;
| char *argv;
| int
| main ()
| {
| return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
| ;
| return 0;
| }
configure:3632: gcc -qlanglvl=extc89 -c -g -O2 conftest.c >&5
gcc: unrecognized option -qlanglvl=extc89' conftest.c:10:19: stdio.h: No such file or directory conftest.c:11:23: sys/types.h: No such file or directory conftest.c:12:22: sys/stat.h: No such file or directory conftest.c:15: error: syntax error before '*' token conftest.c:15: warning: "struct stat" declared inside parameter list conftest.c:15: warning: its scope is only this definition or declaration, which is probably not what you want conftest.c:15: warning: data definition has no type or storage class conftest.c:49: error: syntax error before "FILE" conftest.c:49: warning: "struct stat" declared inside parameter list conftest.c:49: error:pairnames’ declared as function returning a function
conftest.c:49: error: syntax error before "int"
configure:3638: $? = 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 <stdarg.h>
| #include <stdio.h>
| #include <sys/types.h>
| #include <sys/stat.h>
| /
Most of the following tests are stolen from RCS 5.7’s src/conf.sh. */
| struct buf { int x; };
| FILE * (*rcsopen) (struct buf *, struct stat *, int);
| static char *e (p, i)
| char **p;
| int i;
| {
| return p[i];
| }
| static char *f (char * (*g) (char **, int), char **p, …)
| {
| char s;
| va_list v;
| va_start (v,p);
| s = g (p, va_arg (v,int));
| va_end (v);
| return s;
| }
|
| /
OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
| function prototypes and stuff, but not ‘\xHH’ hex character constants.
| These don’t provoke an error unfortunately, instead are silently treated
| as ‘x’. The following induces an error, until -std is added to get
| proper ANSI mode. Curiously ‘\x00’!=‘x’ always comes out true, for an
| array size at least. It’s necessary to write ‘\x00’==0 to get something
| that’s true only with -std. /
| int osf4_cc_array [’\x00’ == 0 ? 1 : -1];
|
| /
IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
| inside strings and character constants. */
| #define FOO(x) ‘x’
| int xlc6_cc_array[FOO(a) == ‘x’ ? 1 : -1];
|
| int test (int i, double x);
| struct s1 {int (*f) (int a);};
| struct s2 {int (*f) (double a);};
| int pairnames (int, char **, FILE ()(struct buf *, struct stat *, int), int, int);
| int argc;
| char *argv;
| int
| main ()
| {
| return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
| ;
| return 0;
| }
configure:3632: gcc -qlanglvl=ansi -c -g -O2 conftest.c >&5
gcc: unrecognized option -qlanglvl=ansi' conftest.c:10:19: stdio.h: No such file or directory conftest.c:11:23: sys/types.h: No such file or directory conftest.c:12:22: sys/stat.h: No such file or directory conftest.c:15: error: syntax error before '*' token conftest.c:15: warning: "struct stat" declared inside parameter list conftest.c:15: warning: its scope is only this definition or declaration, which is probably not what you want conftest.c:15: warning: data definition has no type or storage class conftest.c:49: error: syntax error before "FILE" conftest.c:49: warning: "struct stat" declared inside parameter list conftest.c:49: error:pairnames’ declared as function returning a function
conftest.c:49: error: syntax error before "int"
configure:3638: $? = 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 <stdarg.h>
| #include <stdio.h>
| #include <sys/types.h>
| #include <sys/stat.h>
| /
Most of the following tests are stolen from RCS 5.7’s src/conf.sh. */
| struct buf { int x; };
| FILE * (*rcsopen) (struct buf *, struct stat *, int);
| static char *e (p, i)
| char **p;
| int i;
| {
| return p[i];
| }
| static char *f (char * (*g) (char **, int), char **p, …)
| {
| char s;
| va_list v;
| va_start (v,p);
| s = g (p, va_arg (v,int));
| va_end (v);
| return s;
| }
|
| /
OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
| function prototypes and stuff, but not ‘\xHH’ hex character constants.
| These don’t provoke an error unfortunately, instead are silently treated
| as ‘x’. The following induces an error, until -std is added to get
| proper ANSI mode. Curiously ‘\x00’!=‘x’ always comes out true, for an
| array size at least. It’s necessary to write ‘\x00’==0 to get something
| that’s true only with -std. /
| int osf4_cc_array [’\x00’ == 0 ? 1 : -1];
|
| /
IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
| inside strings and character constants. */
| #define FOO(x) ‘x’
| int xlc6_cc_array[FOO(a) == ‘x’ ? 1 : -1];
|
| int test (int i, double x);
| struct s1 {int (*f) (int a);};
| struct s2 {int (*f) (double a);};
| int pairnames (int, char **, FILE ()(struct buf *, struct stat *, int), int, int);
| int argc;
| char *argv;
| int
| main ()
| {
| return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
| ;
| return 0;
| }
configure:3632: gcc -std -c -g -O2 conftest.c >&5
cc1: error: unrecognized command line option "-std"
configure:3638: $? = 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 <stdarg.h>
| #include <stdio.h>
| #include <sys/types.h>
| #include <sys/stat.h>
| /
Most of the following tests are stolen from RCS 5.7’s src/conf.sh. */
| struct buf { int x; };
| FILE * (*rcsopen) (struct buf *, struct stat *, int);
| static char *e (p, i)
| char **p;
| int i;
| {
| return p[i];
| }
| static char *f (char * (*g) (char **, int), char **p, …)
| {
| char s;
| va_list v;
| va_start (v,p);
| s = g (p, va_arg (v,int));
| va_end (v);
| return s;
| }
|
| /
OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
| function prototypes and stuff, but not ‘\xHH’ hex character constants.
| These don’t provoke an error unfortunately, instead are silently treated
| as ‘x’. The following induces an error, until -std is added to get
| proper ANSI mode. Curiously ‘\x00’!=‘x’ always comes out true, for an
| array size at least. It’s necessary to write ‘\x00’==0 to get something
| that’s true only with -std. /
| int osf4_cc_array [’\x00’ == 0 ? 1 : -1];
|
| /
IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
| inside strings and character constants. */
| #define FOO(x) ‘x’
| int xlc6_cc_array[FOO(a) == ‘x’ ? 1 : -1];
|
| int test (int i, double x);
| struct s1 {int (*f) (int a);};
| struct s2 {int (*f) (double a);};
| int pairnames (int, char **, FILE ()(struct buf , struct stat , int), int, int);
| int argc;
| char **argv;
| int
| main ()
| {
| return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
| ;
| return 0;
| }
configure:3632: gcc -Ae -c -g -O2 conftest.c >&5
:1:2: missing ‘(’ after predicate
conftest.c:10:19: stdio.h: No such file or directory
conftest.c:11:23: sys/types.h: No such file or directory
conftest.c:12:22: sys/stat.h: No such file or directory
conftest.c:15: error: syntax error before '
’ token
conftest.c:15: warning: “struct stat” declared inside parameter list
conftest.c:15: warning: its scope is only this definition or declaration, which is probably not what you want
conftest.c:15: warning: data definition has no type or storage class
conftest.c:49: error: syntax error before "FILE"
conftest.c:49: warning: “struct stat” declared inside parameter list
conftest.c:49: error: pairnames' declared as function returning a function conftest.c:49: error: syntax error before "int" configure:3638: $? = 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 <stdarg.h> | #include <stdio.h> | #include <sys/types.h> | #include <sys/stat.h> | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | struct buf { int x; }; | FILE * (*rcsopen) (struct buf *, struct stat *, int); | static char *e (p, i) | char **p; | int i; | { | return p[i]; | } | static char *f (char * (*g) (char **, int), char **p, ...) | { | char *s; | va_list v; | va_start (v,p); | s = g (p, va_arg (v,int)); | va_end (v); | return s; | } | | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | function prototypes and stuff, but not '\xHH' hex character constants. | These don't provoke an error unfortunately, instead are silently treated | as 'x'. The following induces an error, until -std is added to get | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | array size at least. It's necessary to write '\x00'==0 to get something | that's true only with -std. */ | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | inside strings and character constants. */ | #define FOO(x) 'x' | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | | int test (int i, double x); | struct s1 {int (*f) (int a);}; | struct s2 {int (*f) (double a);}; | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | int argc; | char **argv; | int | main () | { | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | ; | return 0; | } configure:3632: gcc -Aa -D_HPUX_SOURCE -c -g -O2 conftest.c >&5 <command line>:1:2: missing '(' after predicate conftest.c:10:19: stdio.h: No such file or directory conftest.c:11:23: sys/types.h: No such file or directory conftest.c:12:22: sys/stat.h: No such file or directory conftest.c:15: error: syntax error before '*' token conftest.c:15: warning: "struct stat" declared inside parameter list conftest.c:15: warning: its scope is only this definition or declaration, which is probably not what you want conftest.c:15: warning: data definition has no type or storage class conftest.c:49: error: syntax error before "FILE" conftest.c:49: warning: "struct stat" declared inside parameter list conftest.c:49: error:pairnames’ declared as function returning a function
conftest.c:49: error: syntax error before "int"
configure:3638: $? = 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 <stdarg.h>
| #include <stdio.h>
| #include <sys/types.h>
| #include <sys/stat.h>
| /
Most of the following tests are stolen from RCS 5.7’s src/conf.sh. */
| struct buf { int x; };
| FILE * (*rcsopen) (struct buf *, struct stat *, int);
| static char *e (p, i)
| char **p;
| int i;
| {
| return p[i];
| }
| static char *f (char * (*g) (char **, int), char **p, …)
| {
| char s;
| va_list v;
| va_start (v,p);
| s = g (p, va_arg (v,int));
| va_end (v);
| return s;
| }
|
| /
OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
| function prototypes and stuff, but not ‘\xHH’ hex character constants.
| These don’t provoke an error unfortunately, instead are silently treated
| as ‘x’. The following induces an error, until -std is added to get
| proper ANSI mode. Curiously ‘\x00’!=‘x’ always comes out true, for an
| array size at least. It’s necessary to write ‘\x00’==0 to get something
| that’s true only with -std. /
| int osf4_cc_array [’\x00’ == 0 ? 1 : -1];
|
| /
IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
| inside strings and character constants. */
| #define FOO(x) ‘x’
| int xlc6_cc_array[FOO(a) == ‘x’ ? 1 : -1];
|
| int test (int i, double x);
| struct s1 {int (*f) (int a);};
| struct s2 {int (*f) (double a);};
| int pairnames (int, char **, FILE ()(struct buf *, struct stat *, int), int, int);
| int argc;
| char **argv;
| int
| main ()
| {
| return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
| ;
| return 0;
| }
configure:3632: gcc -Xc -D__EXTENSIONS
-c -g -O2 conftest.c >&5
gcc: unrecognized option -Xc' conftest.c:10:19: stdio.h: No such file or directory conftest.c:11:23: sys/types.h: No such file or directory conftest.c:12:22: sys/stat.h: No such file or directory conftest.c:15: error: syntax error before '*' token conftest.c:15: warning: "struct stat" declared inside parameter list conftest.c:15: warning: its scope is only this definition or declaration, which is probably not what you want conftest.c:15: warning: data definition has no type or storage class conftest.c:49: error: syntax error before "FILE" conftest.c:49: warning: "struct stat" declared inside parameter list conftest.c:49: error:pairnames’ declared as function returning a function
conftest.c:49: error: syntax error before "int"
configure:3638: $? = 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 <stdarg.h>
| #include <stdio.h>
| #include <sys/types.h>
| #include <sys/stat.h>
| /
Most of the following tests are stolen from RCS 5.7’s src/conf.sh. */
| struct buf { int x; };
| FILE * (*rcsopen) (struct buf *, struct stat *, int);
| static char *e (p, i)
| char **p;
| int i;
| {
| return p[i];
| }
| static char *f (char * (*g) (char **, int), char **p, …)
| {
| char s;
| va_list v;
| va_start (v,p);
| s = g (p, va_arg (v,int));
| va_end (v);
| return s;
| }
|
| /
OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
| function prototypes and stuff, but not ‘\xHH’ hex character constants.
| These don’t provoke an error unfortunately, instead are silently treated
| as ‘x’. The following induces an error, until -std is added to get
| proper ANSI mode. Curiously ‘\x00’!=‘x’ always comes out true, for an
| array size at least. It’s necessary to write ‘\x00’==0 to get something
| that’s true only with -std. /
| int osf4_cc_array [’\x00’ == 0 ? 1 : -1];
|
| /
IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
| inside strings and character constants. */
| #define FOO(x) ‘x’
| int xlc6_cc_array[FOO(a) == ‘x’ ? 1 : -1];
|
| int test (int i, double x);
| struct s1 {int (*f) (int a);};
| struct s2 {int (*f) (double a);};
| int pairnames (int, char **, FILE ()(struct buf *, struct stat *, int), int, int);
| int argc;
| char **argv;
| int
| main ()
| {
| return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
| ;
| return 0;
| }
configure:3681: result: unsupported
configure:3754: checking for g++
configure:3770: found /usr/bin/g++
configure:3781: result: g++
configure:3812: checking for C++ compiler version
configure:3819: g++ --version >&5
g++ (GCC) 3.4.5 20051201 (Red Hat 3.4.5-2)
Copyright © 2004 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:3822: $? = 0
configure:3829: g++ -v >&5
Reading specs from /usr/lib/gcc/i386-redhat-linux/3.4.5/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.5 20051201 (Red Hat 3.4.5-2)
configure:3832: $? = 0
configure:3839: g++ -V >&5
g++: -V' option must have argument configure:3842: $? = 1 configure:3845: checking whether we are using the GNU C++ compiler configure:3874: g++ -c conftest.cpp >&5 configure:3880: $? = 0 configure:3887: test -z "$ac_cxx_werror_flag" || test ! -s conftest.err configure:3890: $? = 0 configure:3897: test -s conftest.o configure:3900: $? = 0 configure:3914: result: yes configure:3919: checking whether g++ accepts -g configure:3949: g++ -c -g conftest.cpp >&5 configure:3955: $? = 0 configure:3962: test -z "$ac_cxx_werror_flag" || test ! -s conftest.err configure:3965: $? = 0 configure:3972: test -s conftest.o configure:3975: $? = 0 configure:4105: result: yes configure:4133: checking how to run the C preprocessor configure:4173: gcc -E conftest.c In file included from /usr/lib/gcc/i386-redhat-linux/3.4.5/include/syslimits.h:7, from /usr/lib/gcc/i386-redhat-linux/3.4.5/include/limits.h:11, from conftest.c:10: /usr/lib/gcc/i386-redhat-linux/3.4.5/include/limits.h:122:61: limits.h: No such file or directory configure:4179: $? = 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. */ | #ifdef __STDC__ | # include <limits.h> | #else | # include <assert.h> | #endif | Syntax error configure:4173: gcc -E conftest.c In file included from /usr/lib/gcc/i386-redhat-linux/3.4.5/include/syslimits.h:7, from /usr/lib/gcc/i386-redhat-linux/3.4.5/include/limits.h:11, from conftest.c:10: /usr/lib/gcc/i386-redhat-linux/3.4.5/include/limits.h:122:61: limits.h: No such file or directory configure:4179: $? = 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. */ | #ifdef __STDC__ | # include <limits.h> | #else | # include <assert.h> | #endif | Syntax error configure:4173: gcc -E -traditional-cpp conftest.c conftest.c:12: assert.h: No such file or directory configure:4179: $? = 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. */ | #ifdef __STDC__ | # include <limits.h> | #else | # include <assert.h> | #endif | Syntax error configure:4173: gcc -E -traditional-cpp conftest.c conftest.c:12: assert.h: No such file or directory configure:4179: $? = 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. */ | #ifdef __STDC__ | # include <limits.h> | #else | # include <assert.h> | #endif | Syntax error configure:4173: /lib/cpp conftest.c In file included from /usr/lib/gcc/i386-redhat-linux/3.4.5/include/syslimits.h:7, from /usr/lib/gcc/i386-redhat-linux/3.4.5/include/limits.h:11, from conftest.c:10: /usr/lib/gcc/i386-redhat-linux/3.4.5/include/limits.h:122:61: limits.h: No such file or directory configure:4179: $? = 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. */ | #ifdef __STDC__ | # include <limits.h> | #else | # include <assert.h> | #endif | Syntax error configure:4173: /lib/cpp conftest.c In file included from /usr/lib/gcc/i386-redhat-linux/3.4.5/include/syslimits.h:7, from /usr/lib/gcc/i386-redhat-linux/3.4.5/include/limits.h:11, from conftest.c:10: /usr/lib/gcc/i386-redhat-linux/3.4.5/include/limits.h:122:61: limits.h: No such file or directory configure:4179: $? = 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. */ | #ifdef __STDC__ | # include <limits.h> | #else | # include <assert.h> | #endif | Syntax error configure:4263: result: /lib/cpp configure:4292: /lib/cpp conftest.c In file included from /usr/lib/gcc/i386-redhat-linux/3.4.5/include/syslimits.h:7, from /usr/lib/gcc/i386-redhat-linux/3.4.5/include/limits.h:11, from conftest.c:10: /usr/lib/gcc/i386-redhat-linux/3.4.5/include/limits.h:122:61: limits.h: No such file or directory configure:4298: $? = 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. */ | #ifdef __STDC__ | # include <limits.h> | #else | # include <assert.h> | #endif | Syntax error configure:4292: /lib/cpp conftest.c In file included from /usr/lib/gcc/i386-redhat-linux/3.4.5/include/syslimits.h:7, from /usr/lib/gcc/i386-redhat-linux/3.4.5/include/limits.h:11, from conftest.c:10: /usr/lib/gcc/i386-redhat-linux/3.4.5/include/limits.h:122:61: limits.h: No such file or directory configure:4298: $? = 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. */ | #ifdef __STDC__ | # include <limits.h> | #else | # include <assert.h> | #endif | Syntax error configure:4374: error: C preprocessor "/lib/cpp" fails sanity check Seeconfig.log’ for more details.

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

Cache variables.

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

ac_cv_build=i686-pc-linux-gnulibc1
ac_cv_c_compiler_gnu=yes
ac_cv_cxx_compiler_gnu=yes
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_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_host=i686-pc-linux-gnulibc1
ac_cv_objext=o
ac_cv_path_ac_pt_UNAME=/bin/uname
ac_cv_prog_CPP=/lib/cpp
ac_cv_prog_ac_ct_CC=gcc
ac_cv_prog_ac_ct_CXX=g++
ac_cv_prog_cc_c89=no
ac_cv_prog_cc_g=yes
ac_cv_prog_cxx_g=yes

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

Output variables.

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

ALLOCA=’‘
ALSA_INCLUDE=’‘
ALSA_LIB=’‘
AR=’‘
AST_DEVMODE=’‘
AWK=’‘
BASENAME=’'
BUILD_CPU='i686’
BUILD_OS='linux-gnulibc1’
BUILD_PLATFORM=‘i686-pc-linux-gnulibc1’
BUILD_VENDOR=‘pc’
CC=‘gcc’
CFLAGS=’-g -O2’
COMPRESS=’‘
CPP=’/lib/cpp’
CPPFLAGS=’‘
CURL=’‘
CURL_INCLUDE=’‘
CURL_LIB=’‘
CURSES_INCLUDE=’‘
CURSES_LIB=’‘
CXX=‘g++‘
CXXCPP=’‘
CXXFLAGS=’-g -O2’
DEFS=’‘
DIRNAME=’‘
DOT=’‘
ECHO_C=’‘
ECHO_N=’-n’
ECHO_T=’‘
EDITLINE_LIB=’‘
EGREP=’‘
EXEEXT=’‘
FIND=’‘
FREETDS_INCLUDE=’‘
FREETDS_LIB=’‘
GC_CFLAGS=’‘
GC_LDFLAGS=’‘
GNUTLS_INCLUDE=’‘
GNUTLS_LIB=’‘
GNU_MAKE=’‘
GREP=’‘
GSM_INCLUDE=’‘
GSM_INTERNAL=’‘
GSM_LIB=’‘
GTKCONFIG=’‘
GTK_INCLUDE=’‘
GTK_LIB=’'
HOST_CPU='i686’
HOST_OS='linux-gnulibc1’
HOST_PLATFORM=‘i686-pc-linux-gnulibc1’
HOST_VENDOR=‘pc’
ID=’‘
IKSEMEL_INCLUDE=’‘
IKSEMEL_LIB=’‘
IMAP_TK_INCLUDE=’‘
IMAP_TK_LIB=’‘
INSTALL_DATA=’‘
INSTALL_PROGRAM=’‘
INSTALL_SCRIPT=’‘
ISDNNET_INCLUDE=’‘
ISDNNET_LIB=’‘
KDEDIR=’/usr’
KDEINIT=’‘
KDE_INCLUDE=’‘
KDE_LIB=’‘
LD=’‘
LDFLAGS=’‘
LIBOBJS=’‘
LIBS=’‘
LN=’‘
LN_S=’‘
LTLIBOBJS=’‘
MISDN_INCLUDE=’‘
MISDN_LIB=’‘
NBS_INCLUDE=’‘
NBS_LIB=’‘
NCURSES_INCLUDE=’‘
NCURSES_LIB=’‘
NETSNMP_CONFIG=’‘
NETSNMP_INCLUDE=’‘
NETSNMP_LIB=’‘
NEWT_INCLUDE=’‘
NEWT_LIB=’'
OBJEXT=‘o’
OGG_INCLUDE=’‘
OGG_LIB=’‘
OPENH323DIR=’‘
OPENH323_BUILD=’‘
OPENH323_INCDIR=’‘
OPENH323_INCLUDE=’‘
OPENH323_LIB=’‘
OPENH323_LIBDIR=’‘
OPENH323_SUFFIX=’‘
OPENSSL_INCLUDE=’‘
OPENSSL_LIB=’‘
OSARCH=‘linux-gnulibc1’
OSPTK_INCLUDE=’‘
OSPTK_LIB=’‘
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_GTK=’‘
PBX_H323=’‘
PBX_IKSEMEL=’‘
PBX_IMAP_TK=’‘
PBX_ISDNNET=’‘
PBX_IXJUSER=’‘
PBX_KDE=’‘
PBX_MISDN=’‘
PBX_NBS=’‘
PBX_NCURSES=’‘
PBX_NETSNMP=’‘
PBX_NEWT=’‘
PBX_OGG=’‘
PBX_OPENH323=’‘
PBX_OPENSSL=’‘
PBX_OSPTK=’‘
PBX_OSREV=‘2.6.9-34.EL’
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_ZLIB=’‘
PGSQL_INCLUDE=’‘
PGSQL_LIB=’‘
PG_CONFIG=’‘
POPT_INCLUDE=’‘
POPT_LIB=’‘
POW_LIB=’‘
PRI_INCLUDE=’‘
PRI_LIB=’‘
PTLIB_CONFIG=’‘
PWLIBDIR=’‘
PWLIB_INCDIR=’‘
PWLIB_INCLUDE=’‘
PWLIB_LIB=’‘
PWLIB_LIBDIR=’‘
PWLIB_PLATFORM=’‘
QTMOC=’‘
QT_INCLUDE=’‘
QT_LIB=’‘
RADIUS_INCLUDE=’‘
RADIUS_LIB=’‘
RANLIB=’‘
SHELL=’/bin/sh’
SPEEX_INCLUDE=’‘
SPEEX_LIB=’‘
SQLITE_INCLUDE=’‘
SQLITE_LIB=’‘
SUPPSERV_INCLUDE=’‘
SUPPSERV_LIB=’‘
TERMCAP_INCLUDE=’‘
TERMCAP_LIB=’‘
TINFO_INCLUDE=’‘
TINFO_LIB=’‘
TONEZONE_INCLUDE=’‘
TONEZONE_LIB=’‘
UNAME=’/bin/uname’
UNIXODBC_INCLUDE=’‘
UNIXODBC_LIB=’‘
VORBIS_INCLUDE=’‘
VORBIS_LIB=’‘
VPB_INCLUDE=’‘
VPB_LIB=’‘
ZAPTEL_INCLUDE=’‘
ZAPTEL_LIB=’‘
ZLIB_INCLUDE=’‘
ZLIB_LIB=’'
ac_ct_CC=‘gcc’
ac_ct_CXX=‘g++‘
bindir=’${exec_prefix}/bin’
build=‘i686-pc-linux-gnulibc1’
build_alias=’‘
build_cpu=‘i686’
build_os=‘linux-gnulibc1’
build_vendor=‘pc’
datadir=’${datarootdir}‘
datarootdir=’${prefix}/share’
docdir=’${datarootdir}/doc/${PACKAGE}‘
dvidir=’${docdir}‘
exec_prefix=‘NONE’
host=‘i686-pc-linux-gnulibc1’
host_alias=’‘
host_cpu=‘i686’
host_os=‘linux-gnulibc1’
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

configure: exit 1

run…
yum install gcc-c++

I had the same problem. This took care of it.

gcc-c++ is already installed and still getting the same error

it looks more like your gcc installation is missing files. have you tried re-installing it ? or up/down-grading it ? (goes to check what’s the latest build)

idgt - i suspect installing gcc-c++ updated your gcc installation too … it did mine :smiley:

you have to have gcc 3.4 or better i think

u must have both gcc and gcc-cc++

I build vmware of 1.4 with freepbx and used this
yum -y install gcc gcc-c++ libxml2-devel libtiff-devel mysql-server php-gd php-mysql kernel-devel bison ncurses-devel audiofile-devel subversion libogg-devel openssl-devel

and did the install without error, works fine (I guess with limited testing I have done)

apt-get install g++ ?

Cheers,