#50695 [NEW]: PHP uses system XML2 when custom xml2 is given
From: quanah at zimbra dot com
Operating system: Linux
PHP version: 5.2.12
PHP Bug Type: Compile Failure
Bug description: PHP uses system XML2 when custom xml2 is given
Description:
------------
I build PHP against my own build of libxml2. However, starting with PHP
5.2.12, it now links against the system xml2 in addition to my xml2,
causing symbol failures:
# Libraries that this one depends upon.
dependency_libs=' -lcrypt -lcrypt -lrt -lrt -lm -lz -lm -lz -lm -lz -lm
-lcrypt -lz -lm -lz -lm -lz -lm -lcrypt -L/usr/lib
-L/opt/zimbra/libxml2-2.6.32.1/lib -L/opt/zimbra/aspell-0.60.6/lib -lcrypt
-lcrypt /opt/zimbra/aspell-0.60.6/lib/libpspell.la
/opt/zimbra/aspell-0.60.6/lib/libaspell.la -lrt -lrt -lresolv -lm -ldl
-lnsl -lz -lm -lz -lm -lz -lm -lcrypt -lz -lm -lz -lm /usr/lib/libxml2.la
-lpthread -lz -lm -lz -lm -lcrypt'
[build@build01 .libs]$ ldd libphp5.so
<snip>
libxml2.so.2 => /usr/lib/libxml2.so.2 (0x00157000)
</snip>
Note my libxml2 is a static library.
Reproduce code:
---------------
Configure against a custom libxml2 build:
./configure --with-libxml-dir=/opt/zimbra/libxml2-2.6.32.1
Expected result:
----------------
Only my libxml2 is used
Actual result:
--------------
System xml2 is linked in
--
Edit bug report at http://bugs.php.net/?id=50695&edit=1
--
Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=50695&r=trysnapshot52
Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=50695&r=trysnapshot53
Try a snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=50695&r=trysnapshot60
Fixed in SVN: http://bugs.php.net/fix.php?id=50695&r=fixed
Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=50695&r=needdocs
Fixed in release: http://bugs.php.net/fix.php?id=50695&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=50695&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=50695&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=50695&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=50695&r=support
Expected behavior: http://bugs.php.net/fix.php?id=50695&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=50695&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=50695&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=50695&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=50695&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=50695&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=50695&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=50695&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=50695&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=50695&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=50695&r=mysqlcfg
Thread (4 messages)
- quanah at zimbra dot com