I'm trying to compile PHP5. I've installed mysql5 successfully and apache1.3 is working great, but I get the message
below when I compile PHP5. I double checked if I have libxml2 installed and I do. I installed libxml2 binary from
sunfreeware. Please see below for details:
I'm not sure what I'm looking at when I checked config.log. I just did a grep on errors and this is what I came up with:
# grep error config.log
ld: fatal: Symbol referencing errors. No output written to conftest
/* Override any gcc2 internal prototype to avoid an error. /
ld: fatal: Symbol referencing errors. No output written to conftest
/ Override any gcc2 internal prototype to avoid an error. /
ld: fatal: Symbol referencing errors. No output written to conftest
/ Override any gcc2 internal prototype to avoid an error. /
ld: fatal: Symbol referencing errors. No output written to conftest
/ Override any gcc2 internal prototype to avoid an error. /
ld: fatal: Symbol referencing errors. No output written to conftest
/ Override any gcc2 internal prototype to avoid an error. /
ld: fatal: Symbol referencing errors. No output written to conftest
/ Override any gcc2 internal prototype to avoid an error. /
ld: fatal: Symbol referencing errors. No output written to conftest
/ Override any gcc2 internal prototype to avoid an error. /
ld: fatal: Symbol referencing errors. No output written to conftest
/ Override any gcc2 internal prototype to avoid an error. /
ld: fatal: File processing errors. No output written to conftest
/ Override any gcc2 internal prototype to avoid an error. /
ld: fatal: Symbol referencing errors. No output written to conftest
/ Override any gcc2 internal prototype to avoid an error. /
perror("fopen");
configure:17008: error: structure has no member named `tm_zone'
configure:17077: error: `localtime_r' undeclared (first use in this function)
configure:17077: error: (Each undeclared identifier is reported only once
configure:17077: error: for each function it appears in.)
configure:17102: error: `gmtime_r' undeclared (first use in this function)
configure:17102: error: (Each undeclared identifier is reported only once
configure:17102: error: for each function it appears in.)
configure:17177: error: `strtok_r' undeclared (first use in this function)
configure:17177: error: (Each undeclared identifier is reported only once
configure:17177: error: for each function it appears in.)
configure:17245: error: structure has no member named `tm_gmtoff'
configure:17371: error: `intmax_t' undeclared (first use in this function)
configure:17371: error: (Each undeclared identifier is reported only once
configure:17371: error: for each function it appears in.)
configure:17488: error: `ptrdiff_t' undeclared (first use in this function)
configure:17488: error: (Each undeclared identifier is reported only once
configure:17488: error: for each function it appears in.)
configure:17893: error: structure has no member named `sa_len'
ld: fatal: Symbol referencing errors. No output written to conftest
/ Override any gcc2 internal prototype to avoid an error. /
ld: fatal: Symbol referencing errors. No output written to conftest
/ Override any gcc2 internal prototype to avoid an error. /
ld: fatal: Symbol referencing errors. No output written to conftest
/ Override any gcc2 internal prototype to avoid an error. /
configure:18133: checking for gai_strerror
configure:18133: checking for perror
ld: fatal: Symbol referencing errors. No output written to conftest
/ Override any gcc2 internal prototype to avoid an error. /
ld: fatal: Symbol referencing errors. No output written to conftest
/ Override any gcc2 internal prototype to avoid an error. /
configure:18133: checking for strerror
ld: fatal: Symbol referencing errors. No output written to conftest
/ Override any gcc2 internal prototype to avoid an error. /
ld: fatal: Symbol referencing errors. No output written to conftest
/ Override any gcc2 internal prototype to avoid an error. */
configure:18681: error: too many arguments to function `asctime_r'
configure:18713: error: too many arguments to function `asctime_r'
configure:12523: gcc -o conftest -g -O2 -D_POSIX_PTHREAD_SEMANTICS -R/usr/ucblib -L/usr/ucblib conftest.c 1>&5
Undefined first referenced
symbol in file
socket /var/tmp//ccO8Qzik.o
ld: fatal: Symbol referencing errors. No output written to conftest
collect2: ld returned 1 exit status
configure: failed program was: #line 12500 "configure" #include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char socket(); below. /
ymbol referencing errors. No output written to conftest
/ 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 socket();