At first PHP's configure script would fail saying that my version of libxml was too old. I eventually modified my sources.list (I'm using Debian 3.0r2) to use testing code instead of stable and apt-get'ed libxml so I am now upgraded above what PHP requires. However, I still have trouble around the same point as I did before (libxml stuff).
Here is the last part of the configure output (./configure --with-apxs --with-pgsql):
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.
I have also tried --with-libxml-dir but the only thing that did was "checking libxml2 install dir... yes"
And here is the relevant last part of the config.log:
configure:17846: checking whether to enable LIBXML support
configure:17893: checking libxml2 install dir
configure:18053: checking whether libxml build works
configure:18080: gcc -o conftest -g -O2 conftest.c
-lresolv -lm -ldl -lnsl -lxml2 -lz -lm 1>&5
/usr/lib/libxml2.a(threads.o): In function `xmlGetGlobalState__internal_alias':
threads.o(.text+0x2b9): undefined reference to `pthread_once'
threads.o(.text+0x2c6): undefined reference to `pthread_getspecific'
threads.o(.text+0x2e9): undefined reference to `pthread_setspecific'
/usr/lib/libxml2.a(threads.o): In function `xmlIsMainThread__internal_alias':
threads.o(.text+0x326): undefined reference to `pthread_once'
/usr/lib/libxml2.a(threads.o): In function `xmlOnceInit':
threads.o(.text+0x3b6): undefined reference to `pthread_key_create'
collect2: ld returned 1 exit status
configure: failed program was:
#line 18069 "configure"
#include "confdefs.h"
char xmlInitParser();
int main() {
xmlInitParser();
return 0;
}
It appears as though I am missing a library as the linker is throwing errors (possibly I just have an incorrect directory?). Thanks for any help.