PHP 5.2.5 Build errors, ?XML linking problem?

From: Date: Fri, 28 Mar 2008 14:51:54 +0000
Subject: PHP 5.2.5 Build errors, ?XML linking problem?
Groups: php.install 
Request: Send a blank email to php-install+get-18765@lists.php.net to get a copy of this message
Hi all, I'm trying to build PHP 5.2.5 with the following config line ./configure --prefix=/usr/local/php --mandir=/usr/local --with-apxs2=/usr/local/apache/bin/apxs --with-openssl --with-zlib --enable-bcmath --with-bz2 --enable-calendar --with-curl --enable-dba --enable-ftp --with-gd --with-jpeg-dir=/usr --with-png-dir=/usr --with-xpm-dir=/usr --with-freetype-dir=/usr --with-ttf --with-gettext --with-gmp --with-imap --with-ldap --with-mcrypt --with-mhash --with-mysql --with-mysqli --enable-soap --enable-zip --with-pear But I end up with a load of errors of this type =================== php_xmlwriter.c:(.text+0x2463): undefined reference to `xmlNewTextWriterFilename' ext/xmlwriter/.libs/php_xmlwriter.o: In function `xmlwriter_dtor': php_xmlwriter.c:(.text+0x27aa): undefined reference to `xmlFreeTextWriter' ext/xmlwriter/.libs/php_xmlwriter.o: In function `xmlwriter_object_free_storage': php_xmlwriter.c:(.text+0x2804): undefined reference to `xmlFreeTextWriter' collect2: ld returned 1 exit status make: *** [sapi/cli/php] Error 1 =================== I'm building on a Slackware linux box running using GCC 4.2.3, linking with GNU ld version 2.17.50.0.17.20070615. My XML libraries are =================== root@rincewind:~/php-5.2.5# ls -l /usr/lib/libxml* -rw-r--r-- 1 root root 513056 Mar 30 2002 /usr/lib/libxml.a -rwxr-xr-x 1 root root 695 Mar 30 2002 /usr/lib/libxml.la* lrwxrwxrwx 1 root root 16 Aug 6 2002 /usr/lib/libxml.so -> libxml.so.1.8.17* lrwxrwxrwx 1 root root 16 Aug 6 2002 /usr/lib/libxml.so.1 -> libxml.so.1.8.17* -rwxr-xr-x 1 root root 458976 Mar 30 2002 /usr/lib/libxml.so.1.8.17* -rw-r--r-- 1 root root 1434484 Feb 29 02:33 /usr/lib/libxml2.a -rwxr-xr-x 1 root root 801 Feb 29 02:33 /usr/lib/libxml2.la* lrwxrwxrwx 1 root root 17 Mar 22 14:26 /usr/lib/libxml2.so -> libxml2.so.2.6.31* lrwxrwxrwx 1 root root 17 Mar 22 14:26 /usr/lib/libxml2.so.2 -> libxml2.so.2.6.31* -rwxr-xr-x 1 root root 1151468 Feb 29 02:33 /usr/lib/libxml2.so.2.6.31* =================== A full output the build is attached to this email so you can see the full set of errors. I'm building to load into Apache 2.2.8 if that makes any difference. Suggestions??? thanks in advance Jamie

« previous php.install (#18765) next »