please help with my first install of PHP :-)
Here is what I have done.
Mysql install and working/tested
Apache2 install and working/tested
Installing PhP
cd ../php-NN <-- (the untar dir)
./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql
Now it goes fine ... Until
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.
cat config.log ( really dont know where the error is so i am putting in the last 100 lines or so..
Thank you very much for your help
Vic
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_unsetenv) || defined (stub_unsetenv)
choke me
#else
unsetenv();
#endif
; return 0; }
configure:18134: checking for usleep
configure:18162: gcc -o conftest -g -O2 -D_POSIX_PTHREAD_SEMANTICS -R/usr/ucblib -L/usr/ucblib conftest.c -lresolv -lm -ldl -lnsl -lsocket 1>&5
configure:18134: checking for nanosleep
configure:18162: gcc -o conftest -g -O2 -D_POSIX_PTHREAD_SEMANTICS -R/usr/ucblib -L/usr/ucblib conftest.c -lresolv -lm -ldl -lnsl -lsocket 1>&5
Undefined first referenced
symbol in file
nanosleep /var/tmp//ccGEKNnM.o
ld: fatal: Symbol referencing errors. No output written to conftest
collect2: ld returned 1 exit status
configure: failed program was:
#line 18139 "configure"
#include "confdefs.h"
/ System header to define __stub macros and hopefully few prototypes,
which can conflict with char nanosleep(); 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 nanosleep();
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_nanosleep) || defined (stub_nanosleep)
choke me
#else
nanosleep();
#endif
; return 0; }
configure:18134: checking for utime
configure:18162: gcc -o conftest -g -O2 -D_POSIX_PTHREAD_SEMANTICS -R/usr/ucblib -L/usr/ucblib conftest.c -lresolv -lm -ldl -lnsl -lsocket 1>&5
configure:18134: checking for vsnprintf
configure:18162: gcc -o conftest -g -O2 -D_POSIX_PTHREAD_SEMANTICS -R/usr/ucblib -L/usr/ucblib conftest.c -lresolv -lm -ldl -lnsl -lsocket 1>&5
configure:18146: warning: conflicting types for built-in function 'vsnprintf'
configure:18188: checking for getaddrinfo
configure:18200: gcc -o conftest -g -O2 -D_POSIX_PTHREAD_SEMANTICS -R/usr/ucblib -L/usr/ucblib conftest.c -lresolv -lm -ldl -lnsl -lsocket 1>&5
configure:18246: gcc -o conftest -g -O2 -D_POSIX_PTHREAD_SEMANTICS -R/usr/ucblib -L/usr/ucblib conftest.c -lresolv -lm -ldl -lnsl -lsocket 1>&5
configure:18278: checking for strlcat
configure:18306: gcc -o conftest -g -O2 -D_POSIX_PTHREAD_SEMANTICS -R/usr/ucblib -L/usr/ucblib conftest.c -lresolv -lm -ldl -lnsl -lsocket 1>&5
configure:18278: checking for strlcpy
configure:18306: gcc -o conftest -g -O2 -D_POSIX_PTHREAD_SEMANTICS -R/usr/ucblib -L/usr/ucblib conftest.c -lresolv -lm -ldl -lnsl -lsocket 1>&5
configure:18278: checking for getopt
configure:18306: gcc -o conftest -g -O2 -D_POSIX_PTHREAD_SEMANTICS -R/usr/ucblib -L/usr/ucblib conftest.c -lresolv -lm -ldl -lnsl -lsocket 1>&5
configure:18333: checking whether utime accepts a null argument
configure:18354: gcc -o conftest -g -O2 -D_POSIX_PTHREAD_SEMANTICS -R/usr/ucblib -L/usr/ucblib conftest.c -lresolv -lm -ldl -lnsl -lsocket 1>&5
configure:18380: checking for working alloca.h
configure:18413: checking for alloca
configure:18446: gcc -o conftest -g -O2 -D_POSIX_PTHREAD_SEMANTICS -R/usr/ucblib -L/usr/ucblib conftest.c -lresolv -lm -ldl -lnsl -lsocket 1>&5
configure:18613: checking for declared timezone
configure:18634: gcc -c -g -O2 -D_POSIX_PTHREAD_SEMANTICS conftest.c 1>&5
configure:18660: checking for type of reentrant time-related functions
configure:18689: gcc -o conftest -g -O2 -D_POSIX_PTHREAD_SEMANTICS -R/usr/ucblib -L/usr/ucblib conftest.c -lresolv -lm -ldl -lnsl -lsocket 1>&5
configure: In function main':
configure:18682: error: too many arguments to functionasctime_r'
configure: failed program was:
#line 18671 "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:18721: gcc -o conftest -g -O2 -D_POSIX_PTHREAD_SEMANTICS -R/usr/ucblib -L/usr/ucblib conftest.c -lresolv -lm -ldl -lnsl -lsocket 1>&5
configure: In function main':
configure:18713: warning: assignment makes pointer from integer without a cast
configure:18714: error: too many arguments to functionasctime_r'
configure: failed program was:
#line 18705 "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:18759: checking for readdir_r
configure:18787: gcc -o conftest -g -O2 -D_POSIX_PTHREAD_SEMANTICS -R/usr/ucblib -L/usr/ucblib conftest.c -lresolv -lm -ldl -lnsl -lsocket 1>&5
configure:18809: checking for type of readdir_r
configure:18845: gcc -o conftest -g -O2 -D_POSIX_PTHREAD_SEMANTICS -R/usr/ucblib -L/usr/ucblib conftest.c -lresolv -lm -ldl -lnsl -lsocket 1>&5
configure:18908: checking for in_addr_t
configure:18964: checking whether to include debugging symbols
configure:18997: checking layout of installed files
configure:19031: checking path to configuration file
configure:19067: checking directory to be scanned for configuration files
configure:19097: checking whether to enable safe mode by default
configure:19132: checking for safe mode exec dir
configure:19173: checking whether to enable PHP's own SIGCHLD handler
configure:19210: checking whether to enable magic quotes by default
configure:19247: checking whether to enable runpaths
configure:19272: checking whether to explicitly link against libgcc
configure:19351: checking whether to enable short tags by default
configure:19388: checking whether to enable dmalloc
configure:19476: checking whether to enable IPv6 support
configure:19506: checking how big to make fd sets
configure:19526: checking whether to enable versioning
configure:19574: checking whether to enable LIBXML support
configure:19621: checking libxml2 install dir
configure:19797: checking whether libxml build works
configure:19824: gcc -o conftest -g -O2 -D_POSIX_PTHREAD_SEMANTICS -R/usr/ucblib -L/usr/ucblib -R/opt/csw/gcc3/lib/gcc/sparc-sun-solaris2.8/3.4.4 -L/opt/csw/gcc3/lib/gcc/sparc-sun-solaris2.8/3.4.4 -R/usr/local/lib -L/usr/local/lib conftest.c
-lresolv -lm -ldl -lnsl -lsocket -lgcc -lxml2 -lz -liconv -lm -lsocket -lnsl 1>&5
configure: failed program was:
#line 19813 "configure"
#include "confdefs.h"
char xmlInitParser();
int main() {
xmlInitParser();
return 0;
}
#