From: moulonguetn at free dot fr Operating system: Linux Progeny Debian 2.0 PHP version: 5.0.4 PHP Bug Type: *Configuration Issues Bug description: configuration fails
Description: ------------ Doing : ./configure --with-gd --with-jpeg-dir --with-png-dir --with-zlib-dir --with-freetype-dir --with-java --with-ldap --with-openssl-dir --with-mysql I got an error : ..... Configuring extensions checking whether to enable LIBXML support... yes checking libxml2 install dir... no checking whether libxml build works... no configure: error: build test failed. Please check the config.log for details. Looking in config.log, I have : This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. configure:1653: checking host system type configure:1753: checking for gcc configure:1866: checking whether the C compiler (gcc ) works configure:1882: gcc -o conftest conftest.c 1>&5 configure:1908: checking whether the C compiler (gcc ) is a cross-compiler configure:1913: checking whether we are using GNU C configure:1922: gcc -E conftest.c configure:1941: checking whether gcc accepts -g configure:1974: checking whether gcc and cc understand -c and -o together configure:1989: gcc -c conftest.c -o conftest.o 1>&5 configure:1990: gcc -c conftest.c -o conftest.o 1>&5 configure:1995: cc -c conftest.c 1>&5 configure:1997: cc -c conftest.c -o conftest.o 1>&5 configure:1998: cc -c conftest.c -o conftest.o 1>&5 configure:2025: checking how to run the C preprocessor configure:2046: gcc -E conftest.c >/dev/null 2>conftest.out configure:2106: checking for AIX configure:2133: checking if compiler supports -R configure:2148: gcc -o conftest -g -O2 conftest.c -R /usr/lib 1>&5 gcc: unrecognized option `-R' /usr/bin/ld: /usr/lib: No such file: File format not recognized collect2: ld returned 1 exit status configure: failed program was: #line 2141 "configure" #include "confdefs.h" int main() { ; return 0; } configure:2166: checking if compiler supports -Wl,-rpath, configure:2181: gcc -o conftest -g -O2 conftest.c -Wl,-rpath,/usr/lib 1>&5 configure:2207: checking for re2c configure:2236: checking whether ln -s works configure:2261: checking for mawk configure:2295: checking for bison configure:2329: checking bison version configure:2339: checking for flex configure:2373: checking for yywrap in -lfl configure:2392: gcc -o conftest -g -O2 conftest.c -lfl 1>&5 configure:2416: checking lex output file root configure:2437: checking whether yytext is a pointer configure:2456: gcc -o conftest -g -O2 conftest.c -lfl 1>&5 configure:2480: checking for working const configure:2534: gcc -c -g -O2 conftest.c 1>&5 configure:2559: checking flex version configure:2575: checking whether byte ordering is bigendian configure:2601: gcc -o conftest -g -O2 conftest.c 1>&5 configure: failed program was: #line 2585 "configure" #include "confdefs.h" int main(void) { short one = 1; char *cp = (char *)&one; if (*cp == 0) { return(0); } else { return(1); } } configure:2738: checking whether to force non-PIC code in shared modules configure:2846: gcc -o conftest -g -O2 conftest.c 1>&5 /tmp/cccCOBtU.o(.text+0x27): In function `main': /home/php/php-5.0.4/configure:2841: undefined reference to `pthread_mutexattr_init' /tmp/cccCOBtU.o(.text+0x48):/home/php/php-5.0.4/configure:2842: undefined reference to `pthread_create' collect2: ld returned 1 exit status configure: failed program was: #line 2828 "configure" #include "confdefs.h" #include <pthread.h> #include <stddef.h> void *thread_routine(void *data) { return data; } int main() { pthread_t thd; pthread_mutexattr_t mattr; int data = 1; pthread_mutexattr_init(&mattr); return pthread_create(&thd, NULL, thread_routine, &data); } configure:2866: checking for pthreads_cflags configure:2906: gcc -o conftest -g -O2 -kthread conftest.c 1>&5 gcc: unrecognized option `-kthread' /tmp/ccs2IRiL.o(.text+0x27): In function `main': /home/php/php-5.0.4/configure:2901: undefined reference to `pthread_mutexattr_init' /tmp/ccs2IRiL.o(.text+0x48):/home/php/php-5.0.4/configure:2902: undefined reference to `pthread_create' collect2: ld returned 1 exit status configure: failed program was: #line 2888 "configure" #include "confdefs.h" #include <pthread.h> #include <stddef.h> void *thread_routine(void *data) { return data; } int main() { pthread_t thd; pthread_mutexattr_t mattr; int data = 1; pthread_mutexattr_init(&mattr); return pthread_create(&thd, NULL, thread_routine, &data); } configure:2906: gcc -o conftest -g -O2 -pthread conftest.c 1>&5 configure:2936: checking for pthreads_lib configure:3074: checking for AOLserver support configure:3317: checking for Apache 1.x module support via DSO through APXS configure:3622: checking for Apache 1.x module support configure:4465: checking for mod_charset compatibility option configure:4602: checking for Apache 2.0 filter-module support via DSO through APXS configure:5432: checking for Apache 2.0 handler-module support via DSO through APXS configure:6263: checking for Apache 1.x (hooks) module support via DSO through APXS configure:6568: checking for Apache 1.x (hooks) module support configure:7411: checking for mod_charset compatibility option configure:7549: checking for Caudium support configure:7881: checking for CLI build configure:7937: checking for Continuity support configure:8184: checking for embedded SAPI library support configure:8389: checking for Zeus ISAPI support configure:8621: checking for Milter support configure:8896: checking for NSAPI support configure:9239: checking for PHTTPD support configure:9470: checking for Pi3Web support configure:9801: checking for Roxen/Pike support configure:10312: checking for thttpd configure:10540: checking for TUX configure:10776: checking for webjames configure:10850: checking for CGI build configure:10874: checking whether writing to stdout works configure:10903: gcc -o conftest -g -O2 conftest.c 1>&5 configure:10932: checking whether to force Apache CGI redirect configure:10946: checking whether to discard path_info + path_translated configure:10959: checking whether to enable path info checking configure:10972: checking whether to enable fastcgi support configure:11199: checking for chosen SAPI module configure:12104: checking for missing declarations of reentrant functions configure:12113: gcc -c -g -O2 conftest.c 1>&5 configure:12138: gcc -c -g -O2 conftest.c 1>&5 configure:12163: gcc -c -g -O2 conftest.c 1>&5 configure:12188: gcc -c -g -O2 conftest.c 1>&5 configure:12213: gcc -c -g -O2 conftest.c 1>&5 configure:12237: checking for sendmail configure:12278: checking whether system uses EBCDIC configure:12297: gcc -o conftest -g -O2 conftest.c 1>&5 configure: failed program was: #line 12289 "configure" #include "confdefs.h" int main(void) { return (unsigned char)'A' != (unsigned char)0xC1; } configure:12370: checking for socket configure:12398: gcc -o conftest -g -O2 conftest.c 1>&5 configure:12627: checking for htonl configure:12655: gcc -o conftest -g -O2 conftest.c 1>&5 configure:12884: checking for gethostname configure:12912: gcc -o conftest -g -O2 conftest.c 1>&5 configure:13141: checking for gethostbyaddr configure:13169: gcc -o conftest -g -O2 conftest.c 1>&5 configure:13398: checking for yp_get_default_domain configure:13426: gcc -o conftest -g -O2 conftest.c 1>&5 /tmp/ccUxSilP.o(.text+0xa): In function `main': /home/php/php-5.0.4/configure:13420: undefined reference to `yp_get_default_domain' collect2: ld returned 1 exit status configure: failed program was: #line 13403 "configure" #include "confdefs.h" /* System header to define __stub macros and hopefully few prototypes, which can conflict with char yp_get_default_domain(); below. */ #include <assert.h> /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char yp_get_default_domain(); int main() { /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined (__stub_yp_get_default_domain) || defined (__stub___yp_get_default_domain) choke me #else yp_get_default_domain(); #endif ; return 0; } configure:13444: checking for __yp_get_default_domain configure:13472: gcc -o conftest -g -O2 conftest.c 1>&5 /tmp/ccQICkuX.o(.text+0xa): In function `main': /home/php/php-5.0.4/configure:13466: undefined reference to `__yp_get_default_domain' collect2: ld returned 1 exit status configure: failed program was: #line 13449 "configure" #include "confdefs.h" /* System header to define __stub macros and hopefully few prototypes, which can conflict with char __yp_get_default_domain(); below. */ #include <assert.h> /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char __yp_get_default_domain(); int main() { /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined (__stub___yp_get_default_domain) || defined (__stub_____yp_get_default_domain) choke me #else __yp_get_default_domain(); #endif ; return 0; } configure:13510: checking for yp_get_default_domain in -lnsl configure:13529: gcc -o conftest -g -O2 conftest.c -lnsl 1>&5 configure:13604: gcc -o conftest -g -O2 conftest.c -lnsl 1>&5 configure:13656: checking for dlopen configure:13684: gcc -o conftest -g -O2 conftest.c -lnsl 1>&5 /tmp/ccWo5Euf.o(.text+0xa): In function `main': /home/php/php-5.0.4/configure:13678: undefined reference to `dlopen' collect2: ld returned 1 exit status configure: failed program was: #line 13661 "configure" #include "confdefs.h" /* System header to define __stub macros and hopefully few prototypes, which can conflict with char dlopen(); below. */ #include <assert.h> /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char dlopen(); int main() { /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined (__stub_dlopen) || defined (__stub___dlopen) choke me #else dlopen(); #endif ; return 0; } configure:13702: checking for __dlopen configure:13730: gcc -o conftest -g -O2 conftest.c -lnsl 1>&5 /tmp/ccEaI0um.o(.text+0xa): In function `main': /home/php/php-5.0.4/configure:13724: undefined reference to `__dlopen' collect2: ld returned 1 exit status configure: failed program was: #line 13707 "configure" #include "confdefs.h" /* System header to define __stub macros and hopefully few prototypes, which can conflict with char __dlopen(); below. */ #include <assert.h> /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char __dlopen(); int main() { /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined (__stub___dlopen) || defined (__stub_____dlopen) choke me #else __dlopen(); #endif ; return 0; } configure:13768: checking for dlopen in -ldl configure:13787: gcc -o conftest -g -O2 conftest.c -ldl -lnsl 1>&5 configure:13862: gcc -o conftest -g -O2 conftest.c -lnsl -ldl 1>&5 configure:13914: checking for sin in -lm configure:13933: gcc -o conftest -g -O2 conftest.c -lm -ldl -lnsl 1>&5 configure:13926: warning: conflicting types for built-in function `sin' configure:13967: checking for res_search configure:13995: gcc -o conftest -g -O2 conftest.c -lm -ldl -lnsl 1>&5 /tmp/cc2mYCFW.o(.text+0xa): In function `main': /home/php/php-5.0.4/configure:13989: undefined reference to `res_search' collect2: ld returned 1 exit status configure: failed program was: #line 13972 "configure" #include "confdefs.h" /* System header to define __stub macros and hopefully few prototypes, which can conflict with char res_search(); below. */ #include <assert.h> /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char res_search(); int main() { /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined (__stub_res_search) || defined (__stub___res_search) choke me #else res_search(); #endif ; return 0; } configure:14013: checking for __res_search configure:14041: gcc -o conftest -g -O2 conftest.c -lm -ldl -lnsl 1>&5 /tmp/cckiYEWG.o(.text+0xa): In function `main': /home/php/php-5.0.4/configure:14035: undefined reference to `__res_search' collect2: ld returned 1 exit status configure: failed program was: #line 14018 "configure" #include "confdefs.h" /* System header to define __stub macros and hopefully few prototypes, which can conflict with char __res_search(); below. */ #include <assert.h> /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char __res_search(); int main() { /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined (__stub___res_search) || defined (__stub_____res_search) choke me #else __res_search(); #endif ; return 0; } configure:14079: checking for res_search in -lresolv configure:14098: gcc -o conftest -g -O2 conftest.c -lresolv -lm -ldl -lnsl 1>&5 configure:14173: gcc -o conftest -g -O2 conftest.c -lm -ldl -lnsl -lresolv 1>&5 configure:14503: checking for inet_aton configure:14531: gcc -o conftest -g -O2 conftest.c -lresolv -lm -ldl -lnsl 1>&5 configure:14899: checking for dn_skipname configure:14927: gcc -o conftest -g -O2 conftest.c -lresolv -lm -ldl -lnsl 1>&5 /tmp/ccyhNAbJ.o(.text+0xa): In function `main': /home/php/php-5.0.4/configure:14921: undefined reference to `dn_skipname' collect2: ld returned 1 exit status configure: failed program was: #line 14904 "configure" #include "confdefs.h" /* System header to define __stub macros and hopefully few prototypes, which can conflict with char dn_skipname(); below. */ #include <assert.h> /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char dn_skipname(); int main() { /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined (__stub_dn_skipname) || defined (__stub___dn_skipname) choke me #else dn_skipname(); #endif ; return 0; } configure:14945: checking for __dn_skipname configure:14973: gcc -o conftest -g -O2 conftest.c -lresolv -lm -ldl -lnsl 1>&5 configure:15293: checking for ANSI C header files configure:15306: gcc -E conftest.c >/dev/null 2>conftest.out configure:15373: gcc -o conftest -g -O2 conftest.c -lresolv -lm -ldl -lnsl 1>&5 configure:15401: checking for dirent.h that defines DIR configure:15414: gcc -c -g -O2 conftest.c 1>&5 configure:15439: checking for opendir in -ldir configure:15458: gcc -o conftest -g -O2 conftest.c -ldir -lresolv -lm -ldl -lnsl 1>&5 /usr/bin/ld: cannot find -ldir collect2: ld returned 1 exit status configure: failed program was: #line 15447 "configure" #include "confdefs.h" /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char opendir(); int main() { opendir() ; return 0; } configure:15524: checking for fclose declaration configure:15533: gcc -c -g -O2 conftest.c 1>&5 configure:15613: checking for inttypes.h configure:15623: gcc -E conftest.c >/dev/null 2>conftest.out configure:15613: checking for stdint.h configure:15623: gcc -E conftest.c >/dev/null 2>conftest.out configure:15613: checking for dirent.h configure:15623: gcc -E conftest.c >/dev/null 2>conftest.out configure:15613: checking for ApplicationServices/ApplicationServices.h configure:15623: gcc -E conftest.c >/dev/null 2>conftest.out configure:15619:53: ApplicationServices/ApplicationServices.h: No such file or directory configure: failed program was: #line 15618 "configure" #include "confdefs.h" #include <ApplicationServices/ApplicationServices.h> configure:15613: checking for sys/param.h configure:15623: gcc -E conftest.c >/dev/null 2>conftest.out configure:15613: checking for sys/types.h configure:15623: gcc -E conftest.c >/dev/null 2>conftest.out configure:15613: checking for sys/time.h configure:15623: gcc -E conftest.c >/dev/null 2>conftest.out configure:15613: checking for netinet/in.h configure:15623: gcc -E conftest.c >/dev/null 2>conftest.out configure:15613: checking for alloca.h configure:15623: gcc -E conftest.c >/dev/null 2>conftest.out configure:15613: checking for arpa/inet.h configure:15623: gcc -E conftest.c >/dev/null 2>conftest.out configure:15613: checking for arpa/nameser.h configure:15623: gcc -E conftest.c >/dev/null 2>conftest.out configure:15613: checking for assert.h configure:15623: gcc -E conftest.c >/dev/null 2>conftest.out configure:15613: checking for crypt.h configure:15623: gcc -E conftest.c >/dev/null 2>conftest.out configure:15613: checking for fcntl.h configure:15623: gcc -E conftest.c >/dev/null 2>conftest.out configure:15613: checking for grp.h configure:15623: gcc -E conftest.c >/dev/null 2>conftest.out configure:15613: checking for ieeefp.h configure:15623: gcc -E conftest.c >/dev/null 2>conftest.out configure:15619:20: ieeefp.h: No such file or directory configure: failed program was: #line 15618 "configure" #include "confdefs.h" #include <ieeefp.h> configure:15613: checking for langinfo.h configure:15623: gcc -E conftest.c >/dev/null 2>conftest.out configure:15613: checking for limits.h configure:15623: gcc -E conftest.c >/dev/null 2>conftest.out configure:15613: checking for locale.h configure:15623: gcc -E conftest.c >/dev/null 2>conftest.out configure:15613: checking for monetary.h configure:15623: gcc -E conftest.c >/dev/null 2>conftest.out configure:15613: checking for mach-o/dyld.h configure:15623: gcc -E conftest.c >/dev/null 2>conftest.out configure:15619:25: mach-o/dyld.h: No such file or directory configure: failed program was: #line 15618 "configure" #include "confdefs.h" #include <mach-o/dyld.h> configure:15613: checking for netdb.h configure:15623: gcc -E conftest.c >/dev/null 2>conftest.out configure:15613: checking for pwd.h configure:15623: gcc -E conftest.c >/dev/null 2>conftest.out configure:15613: checking for resolv.h configure:15623: gcc -E conftest.c >/dev/null 2>conftest.out configure:15613: checking for signal.h configure:15623: gcc -E conftest.c >/dev/null 2>conftest.out configure:15613: checking for stdarg.h configure:15623: gcc -E conftest.c >/dev/null 2>conftest.out configure:15613: checking for stdlib.h configure:15623: gcc -E conftest.c >/dev/null 2>conftest.out configure:15613: checking for string.h configure:15623: gcc -E conftest.c >/dev/null 2>conftest.out configure:15613: checking for syslog.h configure:15623: gcc -E conftest.c >/dev/null 2>conftest.out configure:15613: checking for sysexits.h configure:15623: gcc -E conftest.c >/dev/null 2>conftest.out configure:15613: checking for sys/ioctl.h configure:15623: gcc -E conftest.c >/dev/null 2>conftest.out configure:15613: checking for sys/file.h configure:15623: gcc -E conftest.c >/dev/null 2>conftest.out configure:15613: checking for sys/mman.h configure:15623: gcc -E conftest.c >/dev/null 2>conftest.out configure:15613: checking for sys/mount.h configure:15623: gcc -E conftest.c >/dev/null 2>conftest.out configure:15613: checking for sys/poll.h configure:15623: gcc -E conftest.c >/dev/null 2>conftest.out configure:15613: checking for sys/resource.h configure:15623: gcc -E conftest.c >/dev/null 2>conftest.out configure:15613: checking for sys/select.h configure:15623: gcc -E conftest.c >/dev/null 2>conftest.out configure:15613: checking for sys/socket.h configure:15623: gcc -E conftest.c >/dev/null 2>conftest.out configure:15613: checking for sys/statfs.h configure:15623: gcc -E conftest.c >/dev/null 2>conftest.out configure:15613: checking for sys/statvfs.h configure:15623: gcc -E conftest.c >/dev/null 2>conftest.out configure:15613: checking for sys/vfs.h configure:15623: gcc -E conftest.c >/dev/null 2>conftest.out configure:15613: checking for sys/sysexits.h configure:15623: gcc -E conftest.c >/dev/null 2>conftest.out configure:15619:26: sys/sysexits.h: No such file or directory configure: failed program was: #line 15618 "configure" #include "confdefs.h" #include <sys/sysexits.h> configure:15613: checking for sys/varargs.h configure:15623: gcc -E conftest.c >/dev/null 2>conftest.out configure:15619:25: sys/varargs.h: No such file or directory configure: failed program was: #line 15618 "configure" #include "confdefs.h" #include <sys/varargs.h> configure:15613: checking for sys/wait.h configure:15623: gcc -E conftest.c >/dev/null 2>conftest.out configure:15613: checking for termios.h configure:15623: gcc -E conftest.c >/dev/null 2>conftest.out configure:15613: checking for unistd.h configure:15623: gcc -E conftest.c >/dev/null 2>conftest.out configure:15613: checking for unix.h configure:15623: gcc -E conftest.c >/dev/null 2>conftest.out configure:15619:18: unix.h: No such file or directory configure: failed program was: #line 15618 "configure" #include "confdefs.h" #include <unix.h> configure:15613: checking for utime.h configure:15623: gcc -E conftest.c >/dev/null 2>conftest.out configure:15613: checking for sys/utsname.h configure:15623: gcc -E conftest.c >/dev/null 2>conftest.out configure:15613: checking for sys/ipc.h configure:15623: gcc -E conftest.c >/dev/null 2>conftest.out configure:15613: checking for dlfcn.h configure:15623: gcc -E conftest.c >/dev/null 2>conftest.out configure:15613: checking for inttypes.h configure:15652: checking for fopencookie configure:15680: gcc -o conftest -g -O2 conftest.c -lresolv -lm -ldl -lnsl 1>&5 configure:15711: gcc -c -g -O2 conftest.c 1>&5 configure:15763: gcc -o conftest -g -O2 conftest.c -lresolv -lm -ldl -lnsl 1>&5 configure:15824: checking for broken getcwd configure:15839: checking for broken libc stdio configure:15900: gcc -o conftest -g -O2 conftest.c -lresolv -lm -ldl -lnsl 1>&5 configure: failed program was: #line 15872 "configure" #include "confdefs.h" #include <stdio.h> int main(int argc, char *argv[]) { FILE *fp; long position; char *filename = "/tmp/phpglibccheck"; fp = fopen(filename, "w"); if (fp == NULL) { perror("fopen"); exit(2); } fputs("foobar", fp); fclose(fp); fp = fopen(filename, "a+"); position = ftell(fp); fclose(fp); unlink(filename); if (position == 0) return 1; return 0; } configure:15928: checking whether struct tm is in sys/time.h or time.h configure:15941: gcc -c -g -O2 conftest.c 1>&5 configure:15962: checking for tm_zone in struct tm configure:15975: gcc -c -g -O2 conftest.c 1>&5 configure:16034: checking for tm_gmtoff in struct tm configure:16047: gcc -c -g -O2 conftest.c 1>&5 configure:16070: checking for struct flock configure:16085: gcc -c -g -O2 conftest.c 1>&5 configure:16112: checking for socklen_t configure:16129: gcc -c -g -O2 conftest.c 1>&5 configure:16155: checking size of intmax_t configure:16174: gcc -o conftest -g -O2 conftest.c -lresolv -lm -ldl -lnsl 1>&5 configure: In function `main': configure:16169: error: `intmax_t' undeclared (first use in this function) configure:16169: error: (Each undeclared identifier is reported only once configure:16169: error: for each function it appears in.) configure: failed program was: #line 16163 "configure" #include "confdefs.h" #include <stdio.h> main() { FILE *f=fopen("conftestval", "w"); if (!f) exit(1); fprintf(f, "%d\n", sizeof(intmax_t)); exit(0); } configure:16194: checking size of size_t configure:16213: gcc -o conftest -g -O2 conftest.c -lresolv -lm -ldl -lnsl 1>&5 configure:16233: checking size of ssize_t configure:16252: gcc -o conftest -g -O2 conftest.c -lresolv -lm -ldl -lnsl 1>&5 configure: In function `main': configure:16247: error: `ssize_t' undeclared (first use in this function) configure:16247: error: (Each undeclared identifier is reported only once configure:16247: error: for each function it appears in.) configure: failed program was: #line 16241 "configure" #include "confdefs.h" #include <stdio.h> main() { FILE *f=fopen("conftestval", "w"); if (!f) exit(1); fprintf(f, "%d\n", sizeof(ssize_t)); exit(0); } configure:16272: checking size of ptrdiff_t configure:16291: gcc -o conftest -g -O2 conftest.c -lresolv -lm -ldl -lnsl 1>&5 configure: In function `main': configure:16286: error: `ptrdiff_t' undeclared (first use in this function) configure:16286: error: (Each undeclared identifier is reported only once configure:16286: error: for each function it appears in.) configure: failed program was: #line 16280 "configure" #include "confdefs.h" #include <stdio.h> main() { FILE *f=fopen("conftestval", "w"); if (!f) exit(1); fprintf(f, "%d\n", sizeof(ptrdiff_t)); exit(0); } configure:16311: checking size of long long configure:16330: gcc -o conftest -g -O2 conftest.c -lresolv -lm -ldl -lnsl 1>&5 configure:16350: checking size of long long int configure:16369: gcc -o conftest -g -O2 conftest.c -lresolv -lm -ldl -lnsl 1>&5 configure:16389: checking size of long configure:16408: gcc -o conftest -g -O2 conftest.c -lresolv -lm -ldl -lnsl 1>&5 configure:16428: checking size of int configure:16447: gcc -o conftest -g -O2 conftest.c -lresolv -lm -ldl -lnsl 1>&5 configure:16468: checking for st_blksize in struct stat configure:16481: gcc -c -g -O2 conftest.c 1>&5 configure:16503: checking for st_blocks in struct stat configure:16516: gcc -c -g -O2 conftest.c 1>&5 configure:16543: checking for st_rdev in struct stat configure:16556: gcc -c -g -O2 conftest.c 1>&5 configure:16578: checking for size_t configure:16611: checking for uid_t in sys/types.h configure:16646: checking for struct sockaddr_storage configure:16659: gcc -c -g -O2 conftest.c 1>&5 configure:16691: gcc -c -g -O2 conftest.c 1>&5 configure: In function `main': configure:16687: error: structure has no member named `sa_len' configure: failed program was: #line 16681 "configure" #include "confdefs.h" #include <sys/types.h> #include <sys/socket.h> int main() { static struct sockaddr sa; int n = (int) sa.sa_len; return n ; return 0; } configure:16704: checking for IPv6 support configure:16718: gcc -o conftest -g -O2 conftest.c -lresolv -lm -ldl -lnsl 1>&5 configure:16736: checking for vprintf configure:16764: gcc -o conftest -g -O2 conftest.c -lresolv -lm -ldl -lnsl 1>&5 configure:16748: warning: conflicting types for built-in function `vprintf' configure:16916: checking for alphasort configure:16944: gcc -o conftest -g -O2 conftest.c -lresolv -lm -ldl -lnsl 1>&5 configure:16916: checking for asctime_r configure:16944: gcc -o conftest -g -O2 conftest.c -lresolv -lm -ldl -lnsl 1>&5 configure:16916: checking for chroot configure:16944: gcc -o conftest -g -O2 conftest.c -lresolv -lm -ldl -lnsl 1>&5 configure:16916: checking for ctime_r configure:16944: gcc -o conftest -g -O2 conftest.c -lresolv -lm -ldl -lnsl 1>&5 configure:16916: checking for cuserid configure:16944: gcc -o conftest -g -O2 conftest.c -lresolv -lm -ldl -lnsl 1>&5 configure:16916: checking for crypt configure:16944: gcc -o conftest -g -O2 conftest.c -lresolv -lm -ldl -lnsl 1>&5 /tmp/ccW500Df.o(.text+0xa): In function `main': /home/php/php-5.0.4/configure:16938: undefined reference to `crypt' collect2: ld returned 1 exit status configure: failed program was: #line 16921 "configure" #include "confdefs.h" /* System header to define __stub macros and hopefully few prototypes, which can conflict with char crypt(); below. */ #include <assert.h> /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char crypt(); int main() { /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined (__stub_crypt) || defined (__stub___crypt) choke me #else crypt(); #endif ; return 0; } configure:16916: checking for flock configure:16944: gcc -o conftest -g -O2 conftest.c -lresolv -lm -ldl -lnsl 1>&5 configure:16916: checking for ftok configure:16944: gcc -o conftest -g -O2 conftest.c -lresolv -lm -ldl -lnsl 1>&5 configure:16916: checking for funopen configure:16944: gcc -o conftest -g -O2 conftest.c -lresolv -lm -ldl -lnsl 1>&5 /tmp/ccCdabjR.o(.text+0xa): In function `main': /home/php/php-5.0.4/configure:16938: undefined reference to `funopen' collect2: ld returned 1 exit status configure: failed program was: #line 16921 "configure" #include "confdefs.h" /* System header to define __stub macros and hopefully few prototypes, which can conflict with char funopen(); below. */ #include <assert.h> /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char funopen(); int main() { /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined (__stub_funopen) || defined (__stub___funopen) choke me #else funopen(); #endif ; return 0; } configure:16916: checking for gai_strerror configure:16944: gcc -o conftest -g -O2 conftest.c -lresolv -lm -ldl -lnsl 1>&5 configure:16916: checking for gcvt configure:16944: gcc -o conftest -g -O2 conftest.c -lresolv -lm -ldl -lnsl 1>&5 configure:16916: checking for getlogin configure:16944: gcc -o conftest -g -O2 conftest.c -lresolv -lm -ldl -lnsl 1>&5 configure:16916: checking for getprotobyname configure:16944: gcc -o conftest -g -O2 conftest.c -lresolv -lm -ldl -lnsl 1>&5 configure:16916: checking for getprotobynumber configure:16944: gcc -o conftest -g -O2 conftest.c -lresolv -lm -ldl -lnsl 1>&5 configure:16916: checking for getservbyname configure:16944: gcc -o conftest -g -O2 conftest.c -lresolv -lm -ldl -lnsl 1>&5 configure:16916: checking for getservbyport configure:16944: gcc -o conftest -g -O2 conftest.c -lresolv -lm -ldl -lnsl 1>&5 configure:16916: checking for getrusage configure:16944: gcc -o conftest -g -O2 conftest.c -lresolv -lm -ldl -lnsl 1>&5 configure:16916: checking for gettimeofday configure:16944: gcc -o conftest -g -O2 conftest.c -lresolv -lm -ldl -lnsl 1>&5 configure:16916: checking for gmtime_r configure:16944: gcc -o conftest -g -O2 conftest.c -lresolv -lm -ldl -lnsl 1>&5 configure:16916: checking for grantpt configure:16944: gcc -o conftest -g -O2 conftest.c -lresolv -lm -ldl -lnsl 1>&5 configure:16916: checking for inet_ntoa configure:16944: gcc -o conftest -g -O2 conftest.c -lresolv -lm -ldl -lnsl 1>&5 configure:16916: checking for inet_ntop configure:16944: gcc -o conftest -g -O2 conftest.c -lresolv -lm -ldl -lnsl 1>&5 configure:16916: checking for inet_pton configure:16944: gcc -o conftest -g -O2 conftest.c -lresolv -lm -ldl -lnsl 1>&5 configure:16916: checking for isascii configure:16944: gcc -o conftest -g -O2 conftest.c -lresolv -lm -ldl -lnsl 1>&5 configure:16916: checking for link configure:16944: gcc -o conftest -g -O2 conftest.c -lresolv -lm -ldl -lnsl 1>&5 configure:16916: checking for localtime_r configure:16944: gcc -o conftest -g -O2 conftest.c -lresolv -lm -ldl -lnsl 1>&5 configure:16916: checking for lockf configure:16944: gcc -o conftest -g -O2 conftest.c -lresolv -lm -ldl -lnsl 1>&5 configure:16916: checking for lrand48 configure:16944: gcc -o conftest -g -O2 conftest.c -lresolv -lm -ldl -lnsl 1>&5 configure:16916: checking for memcpy configure:16944: gcc -o conftest -g -O2 conftest.c -lresolv -lm -ldl -lnsl 1>&5 configure:16928: warning: conflicting types for built-in function `memcpy' configure:16916: checking for memmove configure:16944: gcc -o conftest -g -O2 conftest.c -lresolv -lm -ldl -lnsl 1>&5 configure:16916: checking for mkstemp configure:16944: gcc -o conftest -g -O2 conftest.c -lresolv -lm -ldl -lnsl 1>&5 configure:16916: checking for mmap configure:16944: gcc -o conftest -g -O2 conftest.c -lresolv -lm -ldl -lnsl 1>&5 configure:16916: checking for nl_langinfo configure:16944: gcc -o conftest -g -O2 conftest.c -lresolv -lm -ldl -lnsl 1>&5 configure:16916: checking for perror configure:16944: gcc -o conftest -g -O2 conftest.c -lresolv -lm -ldl -lnsl 1>&5 configure:16916: checking for poll configure:16944: gcc -o conftest -g -O2 conftest.c -lresolv -lm -ldl -lnsl 1>&5 configure:16916: checking for ptsname configure:16944: gcc -o conftest -g -O2 conftest.c -lresolv -lm -ldl -lnsl 1>&5 configure:16916: checking for putenv configure:16944: gcc -o conftest -g -O2 conftest.c -lresolv -lm -ldl -lnsl 1>&5 configure:16916: checking for realpath configure:16944: gcc -o conftest -g -O2 conftest.c -lresolv -lm -ldl -lnsl 1>&5 configure:16916: checking for random configure:16944: gcc -o conftest -g -O2 conftest.c -lresolv -lm -ldl -lnsl 1>&5 configure:16916: checking for rand_r configure:16944: gcc -o conftest -g -O2 conftest.c -lresolv -lm -ldl -lnsl 1>&5 configure:16916: checking for regcomp configure:16944: gcc -o conftest -g -O2 conftest.c -lresolv -lm -ldl -lnsl 1>&5 configure:16916: checking for res_search configure:16916: checking for scandir configure:16944: gcc -o conftest -g -O2 conftest.c -lresolv -lm -ldl -lnsl 1>&5 configure:16916: checking for setitimer configure:16944: gcc -o conftest -g -O2 conftest.c -lresolv -lm -ldl -lnsl 1>&5 configure:16916: checking for setlocale configure:16944: gcc -o conftest -g -O2 conftest.c -lresolv -lm -ldl -lnsl 1>&5 configure:16916: checking for localeconv configure:16944: gcc -o conftest -g -O2 conftest.c -lresolv -lm -ldl -lnsl 1>&5 configure:16916: checking for setpgid configure:16944: gcc -o conftest -g -O2 conftest.c -lresolv -lm -ldl -lnsl 1>&5 configure:16916: checking for setsockopt configure:16944: gcc -o conftest -g -O2 conftest.c -lresolv -lm -ldl -lnsl 1>&5 configure:16916: checking for setvbuf configure:16944: gcc -o conftest -g -O2 conftest.c -lresolv -lm -ldl -lnsl 1>&5 configure:16916: checking for shutdown configure:16944: gcc -o conftest -g -O2 conftest.c -lresolv -lm -ldl -lnsl 1>&5 configure:16916: checking for sin configure:16944: gcc -o conftest -g -O2 conftest.c -lresolv -lm -ldl -lnsl 1>&5 configure:16928: warning: conflicting types for built-in function `sin' configure:16916: checking for snprintf configure:16944: gcc -o conftest -g -O2 conftest.c -lresolv -lm -ldl -lnsl 1>&5 configure:16928: warning: conflicting types for built-in function `snprintf' configure:16916: checking for srand48 configure:16944: gcc -o conftest -g -O2 conftest.c -lresolv -lm -ldl -lnsl 1>&5 configure:16916: checking for srandom configure:16944: gcc -o conftest -g -O2 conftest.c -lresolv -lm -ldl -lnsl 1>&5 configure:16916: checking for statfs configure:16944: gcc -o conftest -g -O2 conftest.c -lresolv -lm -ldl -lnsl 1>&5 configure:16916: checking for statvfs configure:16944: gcc -o conftest -g -O2 conftest.c -lresolv -lm -ldl -lnsl 1>&5 configure:16916: checking for std_syslog configure:16944: gcc -o conftest -g -O2 conftest.c -lresolv -lm -ldl -lnsl 1>&5 /tmp/ccUpCnoW.o(.text+0xa): In function `main': /home/php/php-5.0.4/configure:16938: undefined reference to `std_syslog' collect2: ld returned 1 exit status configure: failed program was: #line 16921 "configure" #include "confdefs.h" /* System header to define __stub macros and hopefully few prototypes, which can conflict with char std_syslog(); below. */ #include <assert.h> /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char std_syslog(); int main() { /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined (__stub_std_syslog) || defined (__stub___std_syslog) choke me #else std_syslog(); #endif ; return 0; } configure:16916: checking for strcasecmp configure:16944: gcc -o conftest -g -O2 conftest.c -lresolv -lm -ldl -lnsl 1>&5 configure:16916: checking for strcoll configure:16944: gcc -o conftest -g -O2 conftest.c -lresolv -lm -ldl -lnsl 1>&5 configure:16916: checking for strdup configure:16944: gcc -o conftest -g -O2 conftest.c -lresolv -lm -ldl -lnsl 1>&5 configure:16916: checking for strerror configure:16944: gcc -o conftest -g -O2 conftest.c -lresolv -lm -ldl -lnsl 1>&5 configure:16916: checking for strftime configure:16944: gcc -o conftest -g -O2 conftest.c -lresolv -lm -ldl -lnsl 1>&5 configure:16916: checking for strstr configure:16944: gcc -o conftest -g -O2 conftest.c -lresolv -lm -ldl -lnsl 1>&5 configure:16928: warning: conflicting types for built-in function `strstr' configure:16916: checking for strtok_r configure:16944: gcc -o conftest -g -O2 conftest.c -lresolv -lm -ldl -lnsl 1>&5 configure:16916: checking for symlink configure:16944: gcc -o conftest -g -O2 conftest.c -lresolv -lm -ldl -lnsl 1>&5 configure:16916: checking for tempnam configure:16944: gcc -o conftest -g -O2 conftest.c -lresolv -lm -ldl -lnsl 1>&5 /tmp/ccSt3BuS.o(.text+0xa): In function `main': /home/php/php-5.0.4/configure:16938: warning: the use of `tempnam' is dangerous, better use `mkstemp' configure:16916: checking for tzset configure:16944: gcc -o conftest -g -O2 conftest.c -lresolv -lm -ldl -lnsl 1>&5 configure:16916: checking for unlockpt configure:16944: gcc -o conftest -g -O2 conftest.c -lresolv -lm -ldl -lnsl 1>&5 configure:16916: checking for unsetenv configure:16944: gcc -o conftest -g -O2 conftest.c -lresolv -lm -ldl -lnsl 1>&5 configure:16916: checking for usleep configure:16944: gcc -o conftest -g -O2 conftest.c -lresolv -lm -ldl -lnsl 1>&5 configure:16916: checking for nanosleep configure:16944: gcc -o conftest -g -O2 conftest.c -lresolv -lm -ldl -lnsl 1>&5 configure:16916: checking for utime configure:16944: gcc -o conftest -g -O2 conftest.c -lresolv -lm -ldl -lnsl 1>&5 configure:16916: checking for vsnprintf configure:16944: gcc -o conftest -g -O2 conftest.c -lresolv -lm -ldl -lnsl 1>&5 configure:16928: warning: conflicting types for built-in function `vsnprintf' configure:16970: checking for getaddrinfo configure:16982: gcc -o conftest -g -O2 conftest.c -lresolv -lm -ldl -lnsl 1>&5 configure:17028: gcc -o conftest -g -O2 conftest.c -lresolv -lm -ldl -lnsl 1>&5 configure:17060: checking for strlcat configure:17088: gcc -o conftest -g -O2 conftest.c -lresolv -lm -ldl -lnsl 1>&5 /tmp/ccWyLoqi.o(.text+0xa): In function `main': /home/php/php-5.0.4/configure:17082: undefined reference to `strlcat' collect2: ld returned 1 exit status configure: failed program was: #line 17065 "configure" #include "confdefs.h" /* System header to define __stub macros and hopefully few prototypes, which can conflict with char strlcat(); below. */ #include <assert.h> /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char strlcat(); int main() { /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined (__stub_strlcat) || defined (__stub___strlcat) choke me #else strlcat(); #endif ; return 0; } configure:17060: checking for strlcpy configure:17088: gcc -o conftest -g -O2 conftest.c -lresolv -lm -ldl -lnsl 1>&5 /tmp/ccUZxxiD.o(.text+0xa): In function `main': /home/php/php-5.0.4/configure:17082: undefined reference to `strlcpy' collect2: ld returned 1 exit status configure: failed program was: #line 17065 "configure" #include "confdefs.h" /* System header to define __stub macros and hopefully few prototypes, which can conflict with char strlcpy(); below. */ #include <assert.h> /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char strlcpy(); int main() { /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined (__stub_strlcpy) || defined (__stub___strlcpy) choke me #else strlcpy(); #endif ; return 0; } configure:17060: checking for getopt configure:17088: gcc -o conftest -g -O2 conftest.c -lresolv -lm -ldl -lnsl 1>&5 configure:17115: checking whether utime accepts a null argument configure:17136: gcc -o conftest -g -O2 conftest.c -lresolv -lm -ldl -lnsl 1>&5 configure:17162: checking for working alloca.h configure:17195: checking for alloca configure:17228: gcc -o conftest -g -O2 conftest.c -lresolv -lm -ldl -lnsl 1>&5 configure:17395: checking for declared timezone configure:17416: gcc -c -g -O2 conftest.c 1>&5 configure:17442: checking for type of reentrant time-related functions configure:17471: gcc -o conftest -g -O2 conftest.c -lresolv -lm -ldl -lnsl 1>&5 configure: In function `main': configure:17463: warning: assignment makes integer from pointer without a cast configure:17464: error: too many arguments to function `asctime_r' configure: failed program was: #line 17453 "configure" #include "confdefs.h" #include <time.h> main() { char buf[27]; struct tm t; time_t old = 0; int r, s; s = gmtime_r(&old, &t); r = (int) asctime_r(&t, buf, 26); if (r == s && s == 0) return (0); return (1); } configure:17501: gcc -o conftest -g -O2 conftest.c -lresolv -lm -ldl -lnsl 1>&5 configure: In function `main': configure:17494: error: too many arguments to function `asctime_r' configure: failed program was: #line 17485 "configure" #include "confdefs.h" #include <time.h> main() { struct tm t, *s; time_t old = 0; char buf[27], *p; s = gmtime_r(&old, &t); p = asctime_r(&t, buf, 26); if (p == buf && s == &t) return (0); return (1); } configure:17539: checking for readdir_r configure:17567: gcc -o conftest -g -O2 conftest.c -lresolv -lm -ldl -lnsl 1>&5 configure:17589: checking for type of readdir_r configure:17625: gcc -o conftest -g -O2 conftest.c -lresolv -lm -ldl -lnsl 1>&5 configure:17743: checking whether to include debugging symbols configure:17776: checking layout of installed files configure:17810: checking path to configuration file configure:17846: checking directory to be scanned for configuration files configure:17876: checking whether to enable safe mode by default configure:17911: checking for safe mode exec dir configure:17952: checking whether to enable PHP's own SIGCHLD handler configure:17989: checking whether to enable magic quotes by default configure:18026: checking whether to enable runpaths configure:18051: checking whether to explicitly link against libgcc configure:18130: checking whether to enable short tags by default configure:18167: checking whether to enable dmalloc configure:18255: checking whether to enable IPv6 support configure:18285: checking how big to make fd sets configure:18305: checking whether to enable versioning configure:18357: checking whether to enable LIBXML support configure:18404: checking libxml2 install dir configure:18564: checking whether libxml build works configure:18591: gcc -o conftest -g -O2 conftest.c -lresolv -lm -ldl -lnsl -lxml2 -lz -lm 1>&5 /usr/lib/gcc-lib/i486-linux/3.3.4/../../../libxml2.a(threads.o)(.text+0x2ba): In function `xmlGetGlobalState__internal_alias': : undefined reference to `pthread_once' /usr/lib/gcc-lib/i486-linux/3.3.4/../../../libxml2.a(threads.o)(.text+0x2c7): In function `xmlGetGlobalState__internal_alias': : undefined reference to `pthread_getspecific' /usr/lib/gcc-lib/i486-linux/3.3.4/../../../libxml2.a(threads.o)(.text+0x2ea): In function `xmlGetGlobalState__internal_alias': : undefined reference to `pthread_setspecific' /usr/lib/gcc-lib/i486-linux/3.3.4/../../../libxml2.a(threads.o)(.text+0x327): In function `xmlIsMainThread__internal_alias': : undefined reference to `pthread_once' /usr/lib/gcc-lib/i486-linux/3.3.4/../../../libxml2.a(threads.o)(.text+0x3b7): In function `xmlOnceInit': : undefined reference to `pthread_key_create' collect2: ld returned 1 exit status configure: failed program was: #line 18580 "configure" #include "confdefs.h" char xmlInitParser(); int main() { xmlInitParser(); return 0; } Maybe there is a bug. The same command line work with PHP 4.3.11 -- Edit bug report at http://bugs.php.net/?id=32683&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=32683&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=32683&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=32683&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=32683&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=32683&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=32683&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=32683&r=needscript Try newer version: http://bugs.php.net/fix.php?id=32683&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=32683&r=support Expected behavior: http://bugs.php.net/fix.php?id=32683&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=32683&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=32683&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=32683&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=32683&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=32683&r=dst IIS Stability: http://bugs.php.net/fix.php?id=32683&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=32683&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=32683&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=32683&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=32683&r=mysqlcfg