#49858 [NEW]: Compile flag --with-libxml-dir don't work as expected
| From: | me at madjack dot ru | Date: | Tue, 13 Oct 2009 07:18:31 +0000 |
| Subject: | #49858 [NEW]: Compile flag --with-libxml-dir don't work as expected | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-143514@lists.php.net to get a copy of this message | ||
From: me at madjack dot ru
Operating system: Mac Os X 10.5.7
PHP version: 5.3SVN-2009-10-13 (snap)
PHP Bug Type: *Compile Issues
Bug description: Compile flag --with-libxml-dir don't work as expected
Description:
------------
I have 3 or more different libxml2 libraries in the system. Standard
MacOS X libxml2 located in /usr/lib and has version 9.0. When i compile
PHP of any version begin from 5.3.0 include last snap with flag --with-
pdo-pgsql it compiles fine, but PostgreSQL 8.4 has own libxml2 version
10.0.1 and can't compile with libxml2 9.0. So without postgresql php
compiles fine, but with postgresql it compiles fine but don't run. It
says error:
dyld: Library not loaded: libxml2.2.dylib
Referenced from: /Volumes/DevHD/Developer/Sources/php/php5.3-
200910120830/sapi/cli/php
Reason: Incompatible library version: php requires version 10.0.0 or
later, but libxml2.2.dylib provides version 9.0.0
Reproduce code:
---------------
Configure and make script
---- cut here ----
#!/bin/sh
./configure --disable-all \
--with-interbase \
--with-apxs2 \
--enable-libxml \
--with-pcre-regex=yes \
--with-regex=php \
--with-zend-vm=CALL \
--enable-zend-multibyte \
--disable-ipv6 \
--prefix=/usr/local \
--with-zlib \
--enable-soap \
--enable-dom \
--enable-session \
--enable-libxml \
--with-libxml-dir=/Library/PostgreSQL/8.4 \
--enable-simplexml \
--enable-xml \
--enable-tokenizer \
--enable-json \
--enable-pdo \
--with-pdo-firebird=/Library/Frameworks/Firebird.framework \
--with-pdo-pgsql=/Library/PostgreSQL/8.4 \
--with-pear \
--with-xsl
make
"EXTRA_INCLUDES=-I/Library/Frameworks/Firebird.framework/Versions/A/Headers/"
\
"EXTRA_LIBS=-lresolv -lexslt -lpq -lfbclient -lz -lm -lxml2 -licucore
-lxslt"
echo "--------------------------------"
echo "Test for compilance with libxml2"
echo "--------------------------------"
otool -L ./sapi/cli/php
echo "--------------------------------"
./sapi/cli/php -v
---- cut here ----
Expected result:
----------------
Php must use libxml2 not from /usr/lib. It must use libxml2 from
/Library/PostgreSQL/8.4/lib.
Actual result:
--------------
Build complete.
Don't forget to run 'make test'.
--------------------------------
Test for compilance with libxml2
--------------------------------
./sapi/cli/php:
/usr/lib/libresolv.9.dylib (compatibility version 1.0.0,
current version 25.0.2)
/usr/lib/libexslt.0.dylib (compatibility version 9.0.0,
current version 9.10.0)
libpq.5.dylib (compatibility version 5.0.0, current version
5.2.0)
/Library/Frameworks/Firebird.framework/Versions/A/Firebird
(compatibility version 2.0.5, current version 2.0.5)
/usr/lib/libz.1.dylib (compatibility version 1.0.0, current
version 1.2.3)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0,
current version 111.1.4)
libxml2.2.dylib (compatibility version 10.0.0, current version
10.1.0)
/usr/lib/libicucore.A.dylib (compatibility version 1.0.0,
current version 36.0.0)
/usr/lib/libxslt.1.dylib (compatibility version 3.0.0, current
version 3.12.0)
/usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0,
current version 1.0.0)
--------------------------------
dyld: Library not loaded: libxml2.2.dylib
Referenced from: /Volumes/DevHD/Developer/Sources/php/php5.3-
200910120830/./sapi/cli/php
Reason: Incompatible library version: php requires version 10.0.0 or
later, but libxml2.2.dylib provides version 9.0.0
./rebuild.sh: line 37: 1892 Trace/BPT trap ./sapi/cli/php -v
--
Edit bug report at http://bugs.php.net/?id=49858&edit=1
--
Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=49858&r=trysnapshot52
Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=49858&r=trysnapshot53
Try a snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=49858&r=trysnapshot60
Fixed in SVN: http://bugs.php.net/fix.php?id=49858&r=fixed
Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=49858&r=needdocs
Fixed in release: http://bugs.php.net/fix.php?id=49858&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=49858&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=49858&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=49858&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=49858&r=support
Expected behavior: http://bugs.php.net/fix.php?id=49858&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=49858&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=49858&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=49858&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=49858&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=49858&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=49858&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=49858&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=49858&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=49858&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=49858&r=mysqlcfg