Edit report at https://bugs.php.net/bug.php?id=64258&edit=1
ID: 64258 User updated by: spamik at yum dot pl Reported by: spamik at yum dot pl -Summary: XMLReader not compatibile with new libxml2 (undefined symbol: xmlTextReaderSet) +Summary: --with-mcrypt causes bad linking when --with-libxml-dir is present Status: Open Type: Bug -Package: XML Reader +Package: mcrypt related -PHP Version: 5.4.11 +PHP Version: 5.4.16 Block user comment: N Private report: N New Comment: changing to mcrypt package. Maybe more devs there will be more active. Previous Comments: ------------------------------------------------------------------------ [2013-06-12 20:53:47] spamik at yum dot pl Problem is still not addressed. root@sv18 [~/php-5.4.16]# ./configure --with-libxml-dir=/usr/libxml2-2.9.0 root@sv18 [~/php-5.4.16]# ldd sapi/cli/php|grep xml libxml2.so.2 => /usr/libxml2-2.9.0/lib/libxml2.so.2 (0x00007f6b2c098000) root@sv18 [~/php-5.4.16]# ./configure --with-libxml-dir=/usr/libxml2-2.9.0 -- with-mcrypt root@sv18 [~/php-5.4.16]# ldd sapi/cli/php|grep xml sapi/cli/php: /usr/lib64/libxml2.so.2: no version information available (required by sapi/cli/php) sapi/cli/php: /usr/lib64/libxml2.so.2: no version information available (required by sapi/cli/php) sapi/cli/php: /usr/lib64/libxml2.so.2: no version information available (required by sapi/cli/php) sapi/cli/php: /usr/lib64/libxml2.so.2: no version information available (required by sapi/cli/php) sapi/cli/php: /usr/lib64/libxml2.so.2: no version information available (required by sapi/cli/php) sapi/cli/php: /usr/lib64/libxml2.so.2: no version information available (required by sapi/cli/php) sapi/cli/php: /usr/lib64/libxml2.so.2: no version information available (required by sapi/cli/php) sapi/cli/php: /usr/lib64/libxml2.so.2: no version information available (required by sapi/cli/php) sapi/cli/php: /usr/lib64/libxml2.so.2: no version information available (required by sapi/cli/php) sapi/cli/php: /usr/lib64/libxml2.so.2: no version information available (required by sapi/cli/php) sapi/cli/php: /usr/lib64/libxml2.so.2: no version information available (required by sapi/cli/php) sapi/cli/php: /usr/lib64/libxml2.so.2: no version information available (required by sapi/cli/php) sapi/cli/php: /usr/lib64/libxml2.so.2: no version information available (required by sapi/cli/php) sapi/cli/php: /usr/lib64/libxml2.so.2: no version information available (required by sapi/cli/php) sapi/cli/php: /usr/lib64/libxml2.so.2: no version information available (required by sapi/cli/php) sapi/cli/php: /usr/lib64/libxml2.so.2: no version information available (required by sapi/cli/php) sapi/cli/php: /usr/lib64/libxml2.so.2: no version information available (required by sapi/cli/php) libxml2.so.2 => /usr/lib64/libxml2.so.2 (0x00007f1478692000) ------------------------------------------------------------------------ [2013-02-27 03:15:03] veillard at redhat dot com just to point out that xmlTextReaderSetup is not part of libxml2 ABI, nor on current version nor on 2.6.26. thinkpad:~/XML -> grep xmlTextReaderSetup doc/libxml2-api.xml thinkpad:~/XML -> [root@test-rhel55 ~]# gunzip -c /usr/share/doc/libxml2-devel-2.6.26/libxml2-api.xml.gz | grep xmlTextReaderSetup [root@test-rhel55 ~]# it would be good if PHP didn't use name which looks like that they are coming from libxml2 even if they are possibly wrappers around libxml2 functions. ------------------------------------------------------------------------ [2013-02-22 01:56:19] spamik at yum dot pl I would guess that mere presence of --with-mcrypt on configure breaks linking to custom libxml2 directory (--with-libxml-dir=/usr/libxml2-2.9.0/) and it defaults to system /usr/lib64 (and there is distro standard old libxml2 there which break things). ------------------------------------------------------------------------ [2013-02-22 01:38:34] spamik at yum dot pl also during make install (php) i see ./configure '--prefix' '/usr/share/php-5.3.21' --with-libxml-dir=/usr/libxml2- 2.9.0/ '--with-mcrypt make install /root/naox/php-5.3.21/sapi/cli/php: /usr/lib64/libxml2.so.2: no version information available (required by /root/naox/php-5.3.21/sapi/cli/php) /root/naox/php-5.3.21/sapi/cli/php: /usr/lib64/libxml2.so.2: no version information available (required by /root/naox/php-5.3.21/sapi/cli/php) /root/naox/php-5.3.21/sapi/cli/php: /usr/lib64/libxml2.so.2: no version information available (required by /root/naox/php-5.3.21/sapi/cli/php) /root/naox/php-5.3.21/sapi/cli/php: /usr/lib64/libxml2.so.2: no version information available (required by /root/naox/php-5.3.21/sapi/cli/php) /root/naox/php-5.3.21/sapi/cli/php: /usr/lib64/libxml2.so.2: no version information available (required by /root/naox/php-5.3.21/sapi/cli/php) /root/naox/php-5.3.21/sapi/cli/php: /usr/lib64/libxml2.so.2: no version information available (required by /root/naox/php-5.3.21/sapi/cli/php) /root/naox/php-5.3.21/sapi/cli/php: /usr/lib64/libxml2.so.2: no version information available (required by /root/naox/php-5.3.21/sapi/cli/php) /root/naox/php-5.3.21/sapi/cli/php: /usr/lib64/libxml2.so.2: no version information available (required by /root/naox/php-5.3.21/sapi/cli/php) /root/naox/php-5.3.21/sapi/cli/php: /usr/lib64/libxml2.so.2: no version information available (required by /root/naox/php-5.3.21/sapi/cli/php) /root/naox/php-5.3.21/sapi/cli/php: /usr/lib64/libxml2.so.2: no version information available (required by /root/naox/php-5.3.21/sapi/cli/php) /root/naox/php-5.3.21/sapi/cli/php: /usr/lib64/libxml2.so.2: no version information available (required by /root/naox/php-5.3.21/sapi/cli/php) /root/naox/php-5.3.21/sapi/cli/php: /usr/lib64/libxml2.so.2: no version information available (required by /root/naox/php-5.3.21/sapi/cli/php) /root/naox/php-5.3.21/sapi/cli/php: /usr/lib64/libxml2.so.2: no version information available (required by /root/naox/php-5.3.21/sapi/cli/php) /root/naox/php-5.3.21/sapi/cli/php: /usr/lib64/libxml2.so.2: no version information available (required by /root/naox/php-5.3.21/sapi/cli/php) /root/naox/php-5.3.21/sapi/cli/php: /usr/lib64/libxml2.so.2: no version information available (required by /root/naox/php-5.3.21/sapi/cli/php) /root/naox/php-5.3.21/sapi/cli/php: /usr/lib64/libxml2.so.2: no version information available (required by /root/naox/php-5.3.21/sapi/cli/php) /root/naox/php-5.3.21/sapi/cli/php: /usr/lib64/libxml2.so.2: no version information available (required by /root/naox/php-5.3.21/sapi/cli/php) I did not linked to usr/lib64/libxml2.so.2 !! Some error in linking (but only when mcrypt is present) ------------------------------------------------------------------------ [2013-02-22 01:23:02] spamik at yum dot pl >>Problem appears when compiling with mcrypt and extension (and libxml2 2.9)<< Package libmcrypt-devel-2.5.8-4.el5.centos.x86_64 already installed and latest version ./configure '--prefix' '/usr/share/php-5.3.21' --with-libxml-dir=/usr/libxml2- 2.9.0/ '--with-mcrypt make install <?php $xml = new XMLReader(); $xmldata = '<TestOne><tag>data</tag><tag>data</tag></TestOne>'; $xml->XML($xmldata); ?> /usr/bin/php: symbol lookup error: /usr/bin/php: undefined symbol: xmlTextReaderSetup I've also tried compiling libmcrypt from source - no changes. ./configure --prefix=/usr/libmcrypt-2.5.8 --disable-posix-threads make install ./configure '--prefix' '/usr/share/php-5.3.21' --with-libxml-dir=/usr/libxml2- 2.9.0/ '--with-mcrypt=/usr/libmcrypt-2.5.8' sill does not work (it works with libxml2 2.6.x for some reason) ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at https://bugs.php.net/bug.php?id=64258 -- Edit this bug report at https://bugs.php.net/bug.php?id=64258&edit=1