I'm trying to compile php-5.1.4 on a FC1 system. I have libxml2-2.6.26 built and installed. The configure script stops at ...
Configuring extensions
checking whether to enable LIBXML support... yes
checking libxml2 install dir... /sataraid0/home/wiki/tikiwiki/lib/libxml
checking for xml2-config path... /sataraid0/home/wiki/tikiwiki/lib/libxml/bin/xml2-config
checking whether libxml build works... no
configure: error: build test failed. Please check the config.log for details.
The config.log shows ...
configure:19966: checking whether libxml build works
configure:19993: gcc -o conftest -g -O2 -L/sataraid0/home/wiki/tikiwiki/lib/zlib/lib -L/sataraid0/home/wiki/tikiwiki/lib/libiconv/lib -Wl,-rpath,/sataraid0/home/wiki/tikiwiki/lib/libxml2-2.6.26/lib -L/sataraid0/home/wiki/tikiwiki/lib/libxml2-2.6.26/lib conftest.c
-lresolv -lm -ldl -lnsl -lxml2 -lz -liconv -lm 1>&5
configure: failed program was:
#line 19982 "configure"
#include "confdefs.h"
char xmlInitParser();
int main() {
xmlInitParser();
return 0;
}
The configure command with options is ...
./configure \
--prefix=$TIKI_HOME/lib/php-5.1.4 \
--enable-shared \
--with-apxs2=$TIKI_HOME/opt/httpd/bin/apxs \
--enable-magic-quotes \
--with-libxml-dir=$TIKI_HOME/lib/libxml \
--with-zlib=$TIKI_HOME/lib/zlib \
--with-db4=$TIKI_HOME/lib/bdb \
--enable-exif \
--enable-ftp \
--with-openssl-dir=$TIKI_HOME/lib/ssl \
--with-gd=$TIKI_HOME/lib/gd \
--with-jpeg-dir=$TIKI_HOME/lib/libjpeg \
--with-png-dir=$TIKI_HOME/lib/libpng \
--with-zlib-dir=$TIKI_HOME/lib/zlib \
--with-xpm-dir=$TIKI_HOME/lib/libxpm \
--with-freetype-dir=$TIKI_HOME/lib/freetype \
--enable-dba=shared \
--with-ldap=$TIKI_HOME/lib/openldap \
--with-mysql=$TIKI_HOME/opt/mysql \
--enable-soap \
--with-iconv-dir=$TIKI_HOME/lib/libiconv \
--with-xsl=$TIKI_HOME/lib/libxslt
I can create a conftest.c in the php install directory, with the same segment of code, and compile it with the same command and it compiles just fine. I'm wondering if the newline characters after the conftest.c in the config.log may be eluding to a problem in the configure script.