php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #42383 Configuring with mysqli enabled consistently fails
Submitted: 2007-08-22 15:22 UTC Modified: 2007-08-23 10:25 UTC
From: intel352 at gmail dot com Assigned:
Status: Not a bug Package: Compile Failure
PHP Version: 5.2.3 OS: Centos 4
Private report: No CVE-ID: None
 [2007-08-22 15:22 UTC] intel352 at gmail dot com
Description:
------------
Using Centos 4 with latest updates, running Cpanel/WHM EDGE release.

Compiling php manually to enable mysqli, consistently fails. Received result with PHP 5.2.2 and 5.2.3. I've tried multiple variations of enabling mysqli, mysqli + mysql, etc. Enabling mysql by itself works great, it's just mysqli that errors.

Apache 2.2, MySQL 5.0.45 installed.

root@cp [/home/cpphpbuild/php-5.2.3]# mysqladmin -V
mysqladmin  Ver 8.41 Distrib 5.0.45, for pc-linux-gnu on i686
r

Error from configure:

checking for MySQL support... no
checking for specified location of the MySQL UNIX socket... no
checking for MySQLi support... yes
checking whether to enable embedded MySQLi support... yes
checking for mysql_set_server_option in -lmysqlclient... no
configure: error: wrong mysql library version or lib not found. Check config.log


Reproduce code:
---------------
./configure --enable-discard-path --enable-fastcgi --enable-force-cgi-redirect --prefix=/usr/local --with-apxs2=/usr/local/apache/bin/apxs --with-mysqli=/usr/bin/mysql_config --enable-embedded-mysqli

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

configure:2175: checking for Cygwin environment
configure:2191: cc -c   conftest.c 1>&5
configure: In function `main':
configure:2187: error: `__CYGWIN32__' undeclared (first use in this function)
configure:2187: error: (Each undeclared identifier is reported only once
configure:2187: error: for each function it appears in.)
configure: failed program was:
#line 2180 "configure"
#include "confdefs.h"

int main() {

#ifndef __CYGWIN__
#define __CYGWIN__ __CYGWIN32__
#endif
return __CYGWIN__;
; return 0; }
configure:2208: checking for mingw32 environment
configure:2220: cc -c   conftest.c 1>&5
configure: In function `main':
configure:2216: error: `__MINGW32__' undeclared (first use in this function)
configure:2216: error: (Each undeclared identifier is reported only once
configure:2216: error: for each function it appears in.)
configure: failed program was:
#line 2213 "configure"
#include "confdefs.h"

int main() {
return __MINGW32__;
; return 0; }
configure:2239: checking for egrep
configure:2254: checking for a sed that does not truncate output
configure:2391: checking host system type
configure:2412: checking target system type
configure:2511: checking for gcc
configure:2624: checking whether the C compiler (gcc  ) works
configure:2640: gcc -o conftest    conftest.c  1>&5
configure:2666: checking whether the C compiler (gcc  ) is a cross-compiler
configure:2671: checking whether we are using GNU C
configure:2680: gcc -E conftest.c
configure:2699: checking whether gcc accepts -g
configure:2731: checking how to run the C preprocessor
configure:2752: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:2813: checking for icc
configure:2835: checking whether gcc and cc understand -c and -o together
configure:2850: gcc -c conftest.c -o conftest.o 1>&5
configure:2851: gcc -c conftest.c -o conftest.o 1>&5
configure:2856: cc -c conftest.c 1>&5
configure:2858: cc -c conftest.c -o conftest.o 1>&5
configure:2859: cc -c conftest.c -o conftest.o 1>&5
configure:2886: checking how to run the C preprocessor
configure:2966: checking for AIX
configure:2990: checking whether ln -s works
configure:3022: checking if compiler supports -R
configure:3037: gcc -o conftest -g -O2   conftest.c -R /usr/lib  1>&5
gcc: unrecognized option `-R'
/usr/lib: file not recognized: Is a directory
collect2: ld returned 1 exit status
configure: failed program was:
#line 3030 "configure"
#include "confdefs.h"

int main() {

; return 0; }
configure:3055: checking if compiler supports -Wl,-rpath,
configure:3070: gcc -o conftest -g -O2   conftest.c -Wl,-rpath,/usr/lib  1>&5
configure:3096: checking for re2c
configure:3156: checking for gawk
configure:3216: checking for bison
configure:3256: checking for bison version
configure:3297: checking for flex
configure:3331: checking for yywrap in -lfl
configure:3350: gcc -o conftest -g -O2   conftest.c -lfl   1>&5
configure:3374: checking lex output file root
configure:3395: checking whether yytext is a pointer
configure:3414: gcc -o conftest -g -O2   conftest.c  -lfl 1>&5
configure:3438: checking for working const
configure:3492: gcc -c -g -O2  conftest.c 1>&5
configure:3518: checking for flex version
configure:3773: checking whether to force non-PIC code in shared modules
configure:3801: checking whether /dev/urandom exists
configure:3880: gcc -o conftest -g -O2   conftest.c  1>&5
/tmp/ccuLwssn.o(.text+0x20): In function `main':
/home/cpphpbuild/php-5.2.3/configure:3875: undefined reference to `pthread_mutexattr_init'
/tmp/ccuLwssn.o(.text+0x34):/home/cpphpbuild/php-5.2.3/configure:3876: undefined reference to `pthread_create'
collect2: ld returned 1 exit status
configure: failed program was:
#line 3862 "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:3900: checking for pthreads_cflags
configure:3940: gcc -o conftest -g -O2 -kthread   conftest.c  1>&5
gcc: unrecognized option `-kthread'
/tmp/cc6QBDsw.o(.text+0x20): In function `main':
/home/cpphpbuild/php-5.2.3/configure:3935: undefined reference to `pthread_mutexattr_init'
/tmp/cc6QBDsw.o(.text+0x34):/home/cpphpbuild/php-5.2.3/configure:3936: undefined reference to `pthread_create'
collect2: ld returned 1 exit status
configure: failed program was:
#line 3922 "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:3940: gcc -o conftest -g -O2 -pthread   conftest.c  1>&5
configure:3970: checking for pthreads_lib
configure:4119: checking for AOLserver support
configure:4362: checking for Apache 1.x module support via DSO through APXS
configure:4667: checking for Apache 1.x module support
configure:5510: checking for mod_charset compatibility option
configure:5647: checking for Apache 2.0 filter-module support via DSO through APXS
configure:6477: checking for Apache 2.0 handler-module support via DSO through APXS
configure:7308: checking for Apache 1.x (hooks) module support via DSO through APXS
configure:7613: checking for Apache 1.x (hooks) module support
configure:8456: checking for mod_charset compatibility option
configure:8594: checking for Caudium support
configure:8926: checking for CLI build
configure:8984: checking for Continuity support
configure:9231: checking for embedded SAPI library support
configure:9454: checking for Zeus ISAPI support
configure:9686: checking for Milter support
configure:9961: checking for NSAPI support
configure:10304: checking for PHTTPD support
configure:10535: checking for Pi3Web support
configure:10866: checking for Roxen/Pike support
configure:11377: checking for thttpd
configure:11605: checking for TUX
configure:11841: checking for webjames
configure:12189: checking for chosen SAPI module
configure:12247: checking for sendmail
configure:12292: checking whether system uses EBCDIC
configure:12311: gcc -o conftest -g -O2   conftest.c  1>&5
configure: failed program was:
#line 12303 "configure"
#include "confdefs.h"

int main(void) { 
  return (unsigned char)'A' != (unsigned char)0xC1; 
} 

configure:12339: checking whether byte ordering is bigendian
configure:12365: gcc -o conftest -g -O2   conftest.c  1>&5
configure: failed program was:
#line 12349 "configure"
#include "confdefs.h"

int main(void)
{
  short one = 1;
  char *cp = (char *)&one;

  if (*cp == 0) {
    return(0);
  } else {
    return(1);
  }
}
  
configure:12391: checking whether writing to stdout works
configure:12420: gcc -o conftest -g -O2   conftest.c  1>&5
configure:12495: checking for socket
configure:12523: gcc -o conftest -g -O2   conftest.c  1>&5
configure:12752: checking for socketpair
configure:12780: gcc -o conftest -g -O2   conftest.c  1>&5
configure:13009: checking for htonl
configure:13037: gcc -o conftest -g -O2   conftest.c  1>&5
configure:13266: checking for gethostname
configure:13294: gcc -o conftest -g -O2   conftest.c  1>&5
configure:13523: checking for gethostbyaddr
configure:13551: gcc -o conftest -g -O2   conftest.c  1>&5
configure:13780: checking for yp_get_default_domain
configure:13808: gcc -o conftest -g -O2   conftest.c  1>&5
/tmp/ccUKpXH8.o(.text+0xd): In function `main':
/home/cpphpbuild/php-5.2.3/configure:13802: undefined reference to `yp_get_default_domain'
collect2: ld returned 1 exit status
configure: failed program was:
#line 13785 "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:13826: checking for __yp_get_default_domain
configure:13854: gcc -o conftest -g -O2   conftest.c  1>&5
/tmp/ccczURzi.o(.text+0xd): In function `main':
/home/cpphpbuild/php-5.2.3/configure:13848: undefined reference to `__yp_get_default_domain'
collect2: ld returned 1 exit status
configure: failed program was:
#line 13831 "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:13892: checking for yp_get_default_domain in -lnsl
configure:13911: gcc -o conftest -g -O2   conftest.c -lnsl   1>&5
configure:13986: gcc -o conftest -g -O2   conftest.c  -lnsl 1>&5
configure:14038: checking for dlopen
configure:14066: gcc -o conftest -g -O2   conftest.c -lnsl  1>&5
/tmp/cc2h4Rmk.o(.text+0xd): In function `main':
/home/cpphpbuild/php-5.2.3/configure:14060: undefined reference to `dlopen'
collect2: ld returned 1 exit status
configure: failed program was:
#line 14043 "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:14084: checking for __dlopen
configure:14112: gcc -o conftest -g -O2   conftest.c -lnsl  1>&5
/tmp/ccgSFy9r.o(.text+0xd): In function `main':
/home/cpphpbuild/php-5.2.3/configure:14106: undefined reference to `__dlopen'
collect2: ld returned 1 exit status
configure: failed program was:
#line 14089 "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:14150: checking for dlopen in -ldl
configure:14169: gcc -o conftest -g -O2   conftest.c -ldl  -lnsl  1>&5
configure:14244: gcc -o conftest -g -O2   conftest.c -lnsl  -ldl 1>&5
configure:14296: checking for sin in -lm
configure:14315: gcc -o conftest -g -O2   conftest.c -lm  -ldl -lnsl  1>&5
configure:14308: warning: conflicting types for built-in function 'sin'
configure:14349: checking for res_search
configure:14377: gcc -o conftest -g -O2   conftest.c -lm -ldl -lnsl  1>&5
/tmp/ccId6kJY.o(.text+0xd): In function `main':
/home/cpphpbuild/php-5.2.3/configure:14371: undefined reference to `res_search'
collect2: ld returned 1 exit status
configure: failed program was:
#line 14354 "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:14395: checking for __res_search
configure:14423: gcc -o conftest -g -O2   conftest.c -lm -ldl -lnsl  1>&5
/tmp/cc8T5rL6.o(.text+0xd): In function `main':
/home/cpphpbuild/php-5.2.3/configure:14417: undefined reference to `__res_search'
collect2: ld returned 1 exit status
configure: failed program was:
#line 14400 "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:14461: checking for res_search in -lresolv
configure:14480: gcc -o conftest -g -O2   conftest.c -lresolv  -lm -ldl -lnsl  1>&5
configure:14555: gcc -o conftest -g -O2   conftest.c -lm -ldl -lnsl  -lresolv 1>&5
configure:14885: checking for inet_aton
configure:14913: gcc -o conftest -g -O2   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure:15281: checking for dn_skipname
configure:15309: gcc -o conftest -g -O2   conftest.c -lresolv -lm -ldl -lnsl  1>&5
/tmp/ccQCgS9D.o(.text+0xd): In function `main':
/home/cpphpbuild/php-5.2.3/configure:15303: undefined reference to `dn_skipname'
collect2: ld returned 1 exit status
configure: failed program was:
#line 15286 "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:15327: checking for __dn_skipname
configure:15355: gcc -o conftest -g -O2   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure:15675: checking for ANSI C header files
configure:15688: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:15755: gcc -o conftest -g -O2   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure:15783: checking for dirent.h that defines DIR
configure:15796: gcc -c -g -O2  conftest.c 1>&5
configure:15821: checking for opendir in -ldir
configure:15840: 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 15829 "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:15962: checking for inttypes.h
configure:15972: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:15962: checking for stdint.h
configure:15972: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:15962: checking for dirent.h
configure:15972: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:15962: checking for ApplicationServices/ApplicationServices.h
configure:15972: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:15968:53: ApplicationServices/ApplicationServices.h: No such file or directory
configure: failed program was:
#line 15967 "configure"
#include "confdefs.h"
#include <ApplicationServices/ApplicationServices.h>
configure:15962: checking for sys/param.h
configure:15972: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:15962: checking for sys/types.h
configure:15972: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:15962: checking for sys/time.h
configure:15972: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:15962: checking for netinet/in.h
configure:15972: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:15962: checking for alloca.h
configure:15972: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:15962: checking for arpa/inet.h
configure:15972: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:15962: checking for arpa/nameser.h
configure:15972: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:15962: checking for assert.h
configure:15972: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:15962: checking for crypt.h
configure:15972: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:15962: checking for fcntl.h
configure:15972: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:15962: checking for grp.h
configure:15972: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:15962: checking for ieeefp.h
configure:15972: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:15968:20: ieeefp.h: No such file or directory
configure: failed program was:
#line 15967 "configure"
#include "confdefs.h"
#include <ieeefp.h>
configure:15962: checking for langinfo.h
configure:15972: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:15962: checking for limits.h
configure:15972: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:15962: checking for locale.h
configure:15972: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:15962: checking for monetary.h
configure:15972: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:15962: checking for mach-o/dyld.h
configure:15972: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:15968:25: mach-o/dyld.h: No such file or directory
configure: failed program was:
#line 15967 "configure"
#include "confdefs.h"
#include <mach-o/dyld.h>
configure:15962: checking for netdb.h
configure:15972: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:15962: checking for pwd.h
configure:15972: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:15962: checking for resolv.h
configure:15972: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:15962: checking for signal.h
configure:15972: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:15962: checking for stdarg.h
configure:15972: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:15962: checking for stdlib.h
configure:15972: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:15962: checking for string.h
configure:15972: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:15962: checking for syslog.h
configure:15972: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:15962: checking for sysexits.h
configure:15972: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:15962: checking for sys/ioctl.h
configure:15972: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:15962: checking for sys/file.h
configure:15972: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:15962: checking for sys/mman.h
configure:15972: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:15962: checking for sys/mount.h
configure:15972: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:15962: checking for sys/poll.h
configure:15972: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:15962: checking for sys/resource.h
configure:15972: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:15962: checking for sys/select.h
configure:15972: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:15962: checking for sys/socket.h
configure:15972: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:15962: checking for sys/statfs.h
configure:15972: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:15962: checking for sys/statvfs.h
configure:15972: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:15962: checking for sys/vfs.h
configure:15972: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:15962: checking for sys/sysexits.h
configure:15972: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:15968:26: sys/sysexits.h: No such file or directory
configure: failed program was:
#line 15967 "configure"
#include "confdefs.h"
#include <sys/sysexits.h>
configure:15962: checking for sys/varargs.h
configure:15972: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:15968:25: sys/varargs.h: No such file or directory
configure: failed program was:
#line 15967 "configure"
#include "confdefs.h"
#include <sys/varargs.h>
configure:15962: checking for sys/wait.h
configure:15972: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:15962: checking for sys/loadavg.h
configure:15972: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:15968:25: sys/loadavg.h: No such file or directory
configure: failed program was:
#line 15967 "configure"
#include "confdefs.h"
#include <sys/loadavg.h>
configure:15962: checking for termios.h
configure:15972: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:15962: checking for unistd.h
configure:15972: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:15962: checking for unix.h
configure:15972: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:15968:18: unix.h: No such file or directory
configure: failed program was:
#line 15967 "configure"
#include "confdefs.h"
#include <unix.h>
configure:15962: checking for utime.h
configure:15972: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:15962: checking for sys/utsname.h
configure:15972: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:15962: checking for sys/ipc.h
configure:15972: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:15962: checking for dlfcn.h
configure:15972: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:15962: checking for assert.h
configure:16001: checking for fopencookie
configure:16029: gcc -o conftest -g -O2   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure:16061: gcc -c -g -O2  conftest.c 1>&5
configure:16112: gcc -o conftest -g -O2   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure:16176: checking for broken getcwd
configure:16191: checking for broken libc stdio
configure:16252: gcc -o conftest -g -O2   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure: failed program was:
#line 16224 "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:16280: checking whether struct tm is in sys/time.h or time.h
configure:16293: gcc -c -g -O2  conftest.c 1>&5
configure:16314: checking for tm_zone in struct tm
configure:16327: gcc -c -g -O2  conftest.c 1>&5
configure:16386: checking for missing declarations of reentrant functions
configure:16395: gcc -c -g -O2  conftest.c 1>&5
configure:16420: gcc -c -g -O2  conftest.c 1>&5
configure:16445: gcc -c -g -O2  conftest.c 1>&5
configure:16470: gcc -c -g -O2  conftest.c 1>&5
configure:16495: gcc -c -g -O2  conftest.c 1>&5
configure:16516: checking for fclose declaration
configure:16525: gcc -c -g -O2  conftest.c 1>&5
configure:16551: checking for tm_gmtoff in struct tm
configure:16564: gcc -c -g -O2  conftest.c 1>&5
configure:16587: checking for struct flock
configure:16602: gcc -c -g -O2  conftest.c 1>&5
configure:16629: checking for socklen_t
configure:16646: gcc -c -g -O2  conftest.c 1>&5
configure:16672: checking size of intmax_t
configure:16691: gcc -o conftest -g -O2   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure: In function `main':
configure:16686: error: `intmax_t' undeclared (first use in this function)
configure:16686: error: (Each undeclared identifier is reported only once
configure:16686: error: for each function it appears in.)
configure: failed program was:
#line 16680 "configure"
#include "confdefs.h"
#include <stdio.h>
int main()
{
  FILE *f=fopen("conftestval", "w");
  if (!f) return(1);
  fprintf(f, "%d\n", sizeof(intmax_t));
  return(0);
}
configure:16711: checking size of size_t
configure:16730: gcc -o conftest -g -O2   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure:16750: checking size of ssize_t
configure:16769: gcc -o conftest -g -O2   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure: In function `main':
configure:16764: error: `ssize_t' undeclared (first use in this function)
configure:16764: error: (Each undeclared identifier is reported only once
configure:16764: error: for each function it appears in.)
configure: failed program was:
#line 16758 "configure"
#include "confdefs.h"
#include <stdio.h>
int main()
{
  FILE *f=fopen("conftestval", "w");
  if (!f) return(1);
  fprintf(f, "%d\n", sizeof(ssize_t));
  return(0);
}
configure:16789: checking size of ptrdiff_t
configure:16808: gcc -o conftest -g -O2   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure: In function `main':
configure:16803: error: `ptrdiff_t' undeclared (first use in this function)
configure:16803: error: (Each undeclared identifier is reported only once
configure:16803: error: for each function it appears in.)
configure: failed program was:
#line 16797 "configure"
#include "confdefs.h"
#include <stdio.h>
int main()
{
  FILE *f=fopen("conftestval", "w");
  if (!f) return(1);
  fprintf(f, "%d\n", sizeof(ptrdiff_t));
  return(0);
}
configure:16828: checking size of long long
configure:16847: gcc -o conftest -g -O2   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure:16867: checking size of long long int
configure:16886: gcc -o conftest -g -O2   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure:16906: checking size of long
configure:16925: gcc -o conftest -g -O2   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure:16945: checking size of int
configure:16964: gcc -o conftest -g -O2   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure:16985: checking for st_blksize in struct stat
configure:16998: gcc -c -g -O2  conftest.c 1>&5
configure:17020: checking for st_blocks in struct stat
configure:17033: gcc -c -g -O2  conftest.c 1>&5
configure:17060: checking for st_rdev in struct stat
configure:17073: gcc -c -g -O2  conftest.c 1>&5
configure:17095: checking for size_t
configure:17128: checking for uid_t in sys/types.h
configure:17164: checking for struct sockaddr_storage
configure:17177: gcc -c -g -O2  conftest.c 1>&5
configure:17198: checking for field sa_len in struct sockaddr
configure:17212: gcc -c -g -O2  conftest.c 1>&5
configure: In function `main':
configure:17208: error: structure has no member named `sa_len'
configure: failed program was:
#line 17204 "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:17235: checking for IPv6 support
configure:17249: gcc -o conftest -g -O2   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure:17265: checking for vprintf
configure:17293: gcc -o conftest -g -O2   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure:17277: warning: conflicting types for built-in function 'vprintf'
configure:17452: checking for alphasort
configure:17480: gcc -o conftest -g -O2   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure:17452: checking for asctime_r
configure:17480: gcc -o conftest -g -O2   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure:17452: checking for chroot
configure:17480: gcc -o conftest -g -O2   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure:17452: checking for ctime_r
configure:17480: gcc -o conftest -g -O2   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure:17452: checking for cuserid
configure:17480: gcc -o conftest -g -O2   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure:17452: checking for crypt
configure:17480: gcc -o conftest -g -O2   conftest.c -lresolv -lm -ldl -lnsl  1>&5
/tmp/cciWUD9G.o(.text+0xd): In function `main':
/home/cpphpbuild/php-5.2.3/configure:17474: undefined reference to `crypt'
collect2: ld returned 1 exit status
configure: failed program was:
#line 17457 "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:17452: checking for flock
configure:17480: gcc -o conftest -g -O2   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure:17452: checking for ftok
configure:17480: gcc -o conftest -g -O2   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure:17452: checking for funopen
configure:17480: gcc -o conftest -g -O2   conftest.c -lresolv -lm -ldl -lnsl  1>&5
/tmp/ccQQxAG4.o(.text+0xd): In function `main':
/home/cpphpbuild/php-5.2.3/configure:17474: undefined reference to `funopen'
collect2: ld returned 1 exit status
configure: failed program was:
#line 17457 "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:17452: checking for gai_strerror
configure:17480: gcc -o conftest -g -O2   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure:17452: checking for gcvt
configure:17480: gcc -o conftest -g -O2   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure:17452: checking for getloadavg
configure:17480: gcc -o conftest -g -O2   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure:17452: checking for getlogin
configure:17480: gcc -o conftest -g -O2   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure:17452: checking for getprotobyname
configure:17480: gcc -o conftest -g -O2   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure:17452: checking for getprotobynumber
configure:17480: gcc -o conftest -g -O2   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure:17452: checking for getservbyname
configure:17480: gcc -o conftest -g -O2   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure:17452: checking for getservbyport
configure:17480: gcc -o conftest -g -O2   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure:17452: checking for getrusage
configure:17480: gcc -o conftest -g -O2   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure:17452: checking for gettimeofday
configure:17480: gcc -o conftest -g -O2   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure:17452: checking for gmtime_r
configure:17480: gcc -o conftest -g -O2   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure:17452: checking for getpwnam_r
configure:17480: gcc -o conftest -g -O2   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure:17452: checking for getgrnam_r
configure:17480: gcc -o conftest -g -O2   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure:17452: checking for getpwuid_r
configure:17480: gcc -o conftest -g -O2   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure:17452: checking for grantpt
configure:17480: gcc -o conftest -g -O2   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure:17452: checking for inet_ntoa
configure:17480: gcc -o conftest -g -O2   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure:17452: checking for inet_ntop
configure:17480: gcc -o conftest -g -O2   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure:17452: checking for inet_pton
configure:17480: gcc -o conftest -g -O2   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure:17452: checking for isascii
configure:17480: gcc -o conftest -g -O2   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure:17452: checking for link
configure:17480: gcc -o conftest -g -O2   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure:17452: checking for localtime_r
configure:17480: gcc -o conftest -g -O2   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure:17452: checking for lockf
configure:17480: gcc -o conftest -g -O2   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure:17452: checking for lchown
configure:17480: gcc -o conftest -g -O2   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure:17452: checking for lrand48
configure:17480: gcc -o conftest -g -O2   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure:17452: checking for memcpy
configure:17480: gcc -o conftest -g -O2   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure:17464: warning: conflicting types for built-in function 'memcpy'
configure:17452: checking for memmove
configure:17480: gcc -o conftest -g -O2   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure:17464: warning: conflicting types for built-in function 'memmove'
configure:17452: checking for mkstemp
configure:17480: gcc -o conftest -g -O2   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure:17452: checking for mmap
configure:17480: gcc -o conftest -g -O2   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure:17452: checking for nl_langinfo
configure:17480: gcc -o conftest -g -O2   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure:17452: checking for perror
configure:17480: gcc -o conftest -g -O2   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure:17452: checking for poll
configure:17480: gcc -o conftest -g -O2   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure:17452: checking for ptsname
configure:17480: gcc -o conftest -g -O2   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure:17452: checking for putenv
configure:17480: gcc -o conftest -g -O2   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure:17452: checking for realpath
configure:17480: gcc -o conftest -g -O2   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure:17452: checking for random
configure:17480: gcc -o conftest -g -O2   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure:17452: checking for rand_r
configure:17480: gcc -o conftest -g -O2   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure:17452: checking for regcomp
configure:17480: gcc -o conftest -g -O2   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure:17452: checking for res_search
configure:17452: checking for scandir
configure:17480: gcc -o conftest -g -O2   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure:17452: checking for setitimer
configure:17480: gcc -o conftest -g -O2   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure:17452: checking for setlocale
configure:17480: gcc -o conftest -g -O2   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure:17452: checking for localeconv
configure:17480: gcc -o conftest -g -O2   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure:17452: checking for setenv
configure:17480: gcc -o conftest -g -O2   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure:17452: checking for setpgid
configure:17480: gcc -o conftest -g -O2   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure:17452: checking for setsockopt
configure:17480: gcc -o conftest -g -O2   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure:17452: checking for setvbuf
configure:17480: gcc -o conftest -g -O2   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure:17452: checking for shutdown
configure:17480: gcc -o conftest -g -O2   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure:17452: checking for sin
configure:17480: gcc -o conftest -g -O2   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure:17464: warning: conflicting types for built-in function 'sin'
configure:17452: checking for snprintf
configure:17480: gcc -o conftest -g -O2   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure:17464: warning: conflicting types for built-in function 'snprintf'
configure:17452: checking for srand48
configure:17480: gcc -o conftest -g -O2   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure:17452: checking for srandom
configure:17480: gcc -o conftest -g -O2   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure:17452: checking for statfs
configure:17480: gcc -o conftest -g -O2   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure:17452: checking for statvfs
configure:17480: gcc -o conftest -g -O2   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure:17452: checking for std_syslog
configure:17480: gcc -o conftest -g -O2   conftest.c -lresolv -lm -ldl -lnsl  1>&5
/tmp/cckPE6Ch.o(.text+0xd): In function `main':
/home/cpphpbuild/php-5.2.3/configure:17474: undefined reference to `std_syslog'
collect2: ld returned 1 exit status
configure: failed program was:
#line 17457 "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:17452: checking for strcasecmp
configure:17480: gcc -o conftest -g -O2   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure:17452: checking for strcoll
configure:17480: gcc -o conftest -g -O2   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure:17452: checking for strdup
configure:17480: gcc -o conftest -g -O2   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure:17464: warning: conflicting types for built-in function 'strdup'
configure:17452: checking for strerror
configure:17480: gcc -o conftest -g -O2   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure:17452: checking for strftime
configure:17480: gcc -o conftest -g -O2   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure:17464: warning: conflicting types for built-in function 'strftime'
configure:17452: checking for strptime
configure:17480: gcc -o conftest -g -O2   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure:17452: checking for strstr
configure:17480: gcc -o conftest -g -O2   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure:17464: warning: conflicting types for built-in function 'strstr'
configure:17452: checking for strtok_r
configure:17480: gcc -o conftest -g -O2   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure:17452: checking for symlink
configure:17480: gcc -o conftest -g -O2   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure:17452: checking for tempnam
configure:17480: gcc -o conftest -g -O2   conftest.c -lresolv -lm -ldl -lnsl  1>&5
/tmp/cc89iBuG.o(.text+0xd): In function `main':
/home/cpphpbuild/php-5.2.3/configure:17474: warning: the use of `tempnam' is dangerous, better use `mkstemp'
configure:17452: checking for tzset
configure:17480: gcc -o conftest -g -O2   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure:17452: checking for unlockpt
configure:17480: gcc -o conftest -g -O2   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure:17452: checking for unsetenv
configure:17480: gcc -o conftest -g -O2   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure:17452: checking for usleep
configure:17480: gcc -o conftest -g -O2   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure:17452: checking for nanosleep
configure:17480: gcc -o conftest -g -O2   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure:17452: checking for utime
configure:17480: gcc -o conftest -g -O2   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure:17452: checking for vsnprintf
configure:17480: gcc -o conftest -g -O2   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure:17464: warning: conflicting types for built-in function 'vsnprintf'
configure:17506: checking for getaddrinfo
configure:17518: gcc -o conftest -g -O2   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure:17564: gcc -o conftest -g -O2   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure:17596: checking for strlcat
configure:17624: gcc -o conftest -g -O2   conftest.c -lresolv -lm -ldl -lnsl  1>&5
/tmp/ccs0IFsP.o(.text+0xd): In function `main':
/home/cpphpbuild/php-5.2.3/configure:17618: undefined reference to `strlcat'
collect2: ld returned 1 exit status
configure: failed program was:
#line 17601 "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:17596: checking for strlcpy
configure:17624: gcc -o conftest -g -O2   conftest.c -lresolv -lm -ldl -lnsl  1>&5
/tmp/cc6vQVAX.o(.text+0xd): In function `main':
/home/cpphpbuild/php-5.2.3/configure:17618: undefined reference to `strlcpy'
collect2: ld returned 1 exit status
configure: failed program was:
#line 17601 "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:17596: checking for getopt
configure:17624: gcc -o conftest -g -O2   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure:17651: checking whether utime accepts a null argument
configure:17672: gcc -o conftest -g -O2   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure:17698: checking for working alloca.h
configure:17731: checking for alloca
configure:17764: gcc -o conftest -g -O2   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure:17931: checking for declared timezone
configure:17952: gcc -c -g -O2  conftest.c 1>&5
configure:17978: checking for type of reentrant time-related functions
configure:18007: gcc -o conftest -g -O2   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure: In function `main':
configure:17999: warning: assignment makes integer from pointer without a cast
configure:18000: error: too many arguments to function `asctime_r'
configure: failed program was:
#line 17989 "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:18039: gcc -o conftest -g -O2   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure: In function `main':
configure:18032: error: too many arguments to function `asctime_r'
configure: failed program was:
#line 18023 "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:18077: checking for readdir_r
configure:18105: gcc -o conftest -g -O2   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure:18127: checking for type of readdir_r
configure:18163: gcc -o conftest -g -O2   conftest.c -lresolv -lm -ldl -lnsl  1>&5
configure:18226: checking for in_addr_t
configure:18265: checking for crypt_r
configure:18293: gcc -o conftest -g -O2   conftest.c -lresolv -lm -ldl -lnsl  1>&5
/tmp/ccioGST7.o(.text+0xd): In function `main':
/home/cpphpbuild/php-5.2.3/configure:18287: undefined reference to `crypt_r'
collect2: ld returned 1 exit status
configure: failed program was:
#line 18270 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char crypt_r(); 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_r();

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_r) || defined (__stub___crypt_r)
choke me
#else
crypt_r();
#endif

; return 0; }
configure:18449: checking whether to include gcov symbols
configure:18611: checking whether to include debugging symbols
configure:18652: checking layout of installed files
configure:18686: checking path to configuration file
configure:18722: checking where to scan for configuration files
configure:18752: checking whether to enable safe mode by default
configure:18787: checking for safe mode exec dir
configure:18828: checking whether to enable PHP's own SIGCHLD handler
configure:18865: checking whether to enable magic quotes by default
configure:18902: checking whether to enable runpaths
configure:18927: checking whether to explicitly link against libgcc
configure:19006: checking whether to enable short tags by default
configure:19043: checking whether to enable dmalloc
configure:19131: checking whether to enable IPv6 support
configure:19161: checking how big to make fd sets
configure:19181: checking whether to enable versioning
configure:19229: checking whether to enable LIBXML support
configure:19276: checking libxml2 install dir
configure:19305: checking for xml2-config path
configure:19462: checking whether libxml build works
configure:19489: gcc -o conftest -g -O2   conftest.c 
          
         -lresolv -lm -ldl -lnsl  -lxml2 -lz -lm 1>&5
configure:19842: checking for OpenSSL support
configure:19888: checking for Kerberos support
configure:21299: checking for PCRE support
configure:22129: checking for ZLIB support
configure:22175: checking if the location of ZLIB install directory is defined
configure:22766: checking whether to enable bc style precision math functions
configure:23122: checking for BZip2 support
configure:23756: checking whether to enable calendar conversion support
configure:24091: checking whether to enable ctype functions
configure:24426: checking for cURL support
configure:24472: checking if we should use cURL for url streams
configure:25917: checking size of long
configure:25956: checking size of int
configure:25996: checking for int32_t
configure:26021: gcc -c -g -O2  conftest.c 1>&5
configure:26044: checking for uint32_t
configure:26069: gcc -c -g -O2  conftest.c 1>&5
configure:26101: checking for sys/types.h
configure:26101: checking for inttypes.h
configure:26101: checking for stdint.h
configure:26101: checking for string.h
configure:26101: checking for stdlib.h
configure:26141: checking for strtoll
configure:26169: gcc -o conftest -g -O2   conftest.c -lresolv -lm -ldl -lnsl  -lxml2 -lz -lm 1>&5
configure:26141: checking for atoll
configure:26169: gcc -o conftest -g -O2   conftest.c -lresolv -lm -ldl -lnsl  -lxml2 -lz -lm 1>&5
configure:26141: checking for strftime
configure:26596: checking whether to enable DBA
configure:26942: checking for QDBM support
configure:27277: checking for GDBM support
configure:27598: checking for NDBM support
configure:27908: checking for Berkeley DB4 support
configure:28239: checking for Berkeley DB3 support
configure:28570: checking for Berkeley DB2 support
configure:28814: checking for DB1 support
configure:29173: checking for DBM support
configure:29530: checking for CDB support
configure:29584: checking for INI File support
configure:29638: checking for FlatFile support
configure:29653: checking whether to enable DBA interface
configure:29967: checking whether to enable dbase support
configure:30302: checking whether to enable DOM support
configure:30380: checking for xml2-config path
configure:30537: checking whether libxml build works
configure:30975: checking whether to enable EXIF (metadata from images) support
configure:31310: checking for FrontBase SQL92 (fbsql) support
configure:31804: checking for FDF support
configure:32620: checking whether to enable input filter support
configure:32666: checking pcre install prefix
configure:33073: checking whether to enable FTP support
configure:33119: checking OpenSSL dir for FTP
configure:34120: checking for GD support
configure:34167: checking for the location of libjpeg
configure:34194: checking for the location of libpng
configure:34247: checking for the location of libXpm
configure:34272: checking for FreeType 1.x support
configure:34297: checking for FreeType 2
configure:34322: checking for T1lib support
configure:34347: checking whether to enable truetype string function in GD
configure:34372: checking whether to enable JIS-mapped Japanese font support in GD
configure:42668: checking for GNU gettext support
configure:43416: checking for GNU MP support
configure:44187: checking whether to enable hash support
configure:44237: checking whether byte ordering is bigendian
configure:44288: checking size of short
configure:44307: gcc -o conftest -g -O2   conftest.c -lresolv -lm -ldl -lnsl  -lxml2 -lz -lm -lxml2 -lz -lm 1>&5
configure:44327: checking size of int
configure:44366: checking size of long
configure:44405: checking size of long long
configure:44760: checking for iconv support
configure:44822: checking for iconv
configure:44850: gcc -o conftest -g -O2   conftest.c -lresolv -lm -ldl -lnsl  -lxml2 -lz -lm -lxml2 -lz -lm 1>&5
configure:45435: checking if iconv is glibc's
configure:45444: gcc -o conftest -I/usr/include -g -O2  -L/usr/lib  conftest.c -lresolv -lm -ldl -lnsl  -lxml2 -lz -lm -lxml2 -lz -lm 1>&5
configure:45680: checking if iconv supports errno
configure:45715: gcc -o conftest -I/usr/include -g -O2  -L/usr/lib  conftest.c -lresolv -lm -ldl -lnsl  -lxml2 -lz -lm -lxml2 -lz -lm 1>&5
configure:45747: checking if your cpp allows macro usage in include lines
configure:45759: gcc -c -I/usr/include -g -O2  conftest.c 1>&5
configure:46103: checking for IMAP support
configure:46149: checking for IMAP Kerberos support
configure:46174: checking for IMAP SSL support
configure:48430: checking for InterBase support
configure:49352: checking whether to enable JavaScript Object Serialization support
configure:49401: checking for ANSI C header files
configure:49801: checking for LDAP support
configure:49847: checking for LDAP Cyrus SASL support
configure:52651: checking whether to enable multibyte string support
configure:52697: checking whether to enable multibyte regex support
configure:52722: checking whether to check multibyte regex backtrack
configure:52747: checking for external libmbfl
configure:54343: checking for mcrypt support
configure:55174: checking for mhash support
configure:55648: checking whether to include mime_magic support
configure:56005: checking for MING support
configure:57231: checking for mSQL support
configure:57742: checking for MSSQL support via FreeTDS
configure:58392: checking for MySQL support
configure:58438: checking for specified location of the MySQL UNIX socket
configure:59597: checking for MySQLi support
configure:59643: checking whether to enable embedded MySQLi support
configure:59793: checking for mysql_set_server_option in -lmysqlclient
configure:59812: gcc -o conftest -I/usr/include -g -O2  -Wl,-rpath,/usr/lib/mysql -L/usr/lib/mysql -L/usr/lib  -lmysqld -lz -lcrypt -lnsl -lm -lrt conftest.c -lmysqlclient  -lresolv -lm -ldl -lnsl  -lxml2 -lz -lm -lxml2 -lz -lm 1>&5
/tmp/ccodjpCF.o(.text+0xd): In function `main':
/home/cpphpbuild/php-5.2.3/configure:59808: undefined reference to `mysql_set_server_option'
collect2: ld returned 1 exit status
configure: failed program was:
#line 59801 "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 mysql_set_server_option();

int main() {
mysql_set_server_option()
; return 0; }


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-08-22 15:56 UTC] scottmac@php.net
If mysql_set_server_option isn't present then your version of mysqlclient is less than 4.1.

You need mysqlclient 4.1 for MySQLi
 [2007-08-22 20:00 UTC] intel352 at gmail dot com
Thanks very much for letting me know, I'll check into that. This has been bothering the heck outta me, it'll be nice to get this resolved :-)

Thanks!
 [2007-08-22 20:21 UTC] intel352 at gmail dot com
Actually, I just checked, I have MySQL Client 5.0.45 installed. The only possible issue that I see, is that MySQL 4.1 Embedded is installed, so I dunno if that's overriding the MySQL 5 Client somehow.

Any thoughts?
 [2007-08-22 22:36 UTC] scottmac@php.net
find / -name libmysqlclient* 2>/dev/null

you have a libmysqlclient thats its linking against.
 [2007-08-23 00:40 UTC] intel352 at gmail dot com
Thanks, that tip helped me find the culprit file. I've got it compiling successfully now, I appreciate it!
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 27 15:01:29 2024 UTC