#36780 [NEW]: configure fails libxml check

From: Date: Sat, 18 Mar 2006 11:04:09 +0000
Subject: #36780 [NEW]: configure fails libxml check
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-94495@lists.php.net to get a copy of this message
From: james at groovytrain dot com Operating system: Redhat Linux 7.1 PHP version: 5.1.2 PHP Bug Type: Compile Failure Bug description: configure fails libxml check Description: ------------ Having compiled PHP without XML support on my system several times without problem, I decided to try and include XML support. When I run the following command: ./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql --without-pear --enable-libxml --with-gd --with-png-dir=/usr/lib --with-jpeg-dir=/usr/lib --with-zlib-dir=/usr --enable-mbstring=all It fails with: checking whether libxml build works... no configure: error: build test failed. Please check the config.log for details. The "config.log" shows: configure:19959: checking whether libxml build works configure:19986: gcc -o conftest -g -O2 -Wl,-rpath,/usr/local/lib -L/usr/local/lib conftest.c -lresolv -lm -ldl -lnsl -lxml2 -lz -lm 1>&5 configure: failed program was: #line 19975 "configure" #include "confdefs.h" char xmlInitParser(); int main() { xmlInitParser(); return 0; } My system has libxml2 version 2.6.23, which was compiled and installed from source not using an RPM. I have tried a various "--with-libxml-dir" parameters including "--with-libxml-dir=/usr/local/lib" (libxml2 v2.6.23 is in "/usr/local/lib" and v 2.4.10 in "/usr/lib"). Any help you can give will be gratefully received. Expected result: ---------------- I expect ./configure to complete successfully. Actual result: -------------- ./configure fails with: checking whether libxml build works... no configure: error: build test failed. Please check the config.log for details. -- Edit bug report at http://bugs.php.net/?id=36780&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=36780&r=trysnapshot44 Try a CVS snapshot (PHP 5.1): http://bugs.php.net/fix.php?id=36780&r=trysnapshot51 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=36780&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=36780&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=36780&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=36780&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=36780&r=needscript Try newer version: http://bugs.php.net/fix.php?id=36780&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=36780&r=support Expected behavior: http://bugs.php.net/fix.php?id=36780&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=36780&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=36780&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=36780&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=36780&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=36780&r=dst IIS Stability: http://bugs.php.net/fix.php?id=36780&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=36780&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=36780&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=36780&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=36780&r=mysqlcfg

« previous php.bugs (#94495) next »