Edit report at https://bugs.php.net/bug.php?id=64258&edit=1
ID: 64258
Patch added by: derick@php.net
Reported by: spamik at yum dot pl
Summary: --with-mcrypt causes bad linking (with
--with-libxml-dir). Reason: -lltdl flag
Status: Open
Type: Bug
Package: *Compile Issues
PHP Version: 5.4.16
Block user comment: N
Private report: N
New Comment:
The following patch has been added/updated:
Patch Name: mcrypt-config-20130613
Revision: 1371113762
URL: https://bugs.php.net/patch-display.php?bug=64258&patch=mcrypt-config-20130613&revision=1371113762
Previous Comments:
------------------------------------------------------------------------
[2013-06-13 08:55:32] derick@php.net
It's a linker helper library as used by gnu libtool. I have no idea why it messes the libxml
include though, and as far as I know, that library is no longer needed since libmcrypt 2.5.4. So
unless your version is that old, -lltdl should not be part of your Makefile. If I manually remove
-lltdl from the Makefile, PHP still compiles and links, so I would recommend you try the following:
cat /usr/include/mutils/mcrypt.h | grep VER
And let me know what it says. Secondly, apply the attached patch to ext/mcrypt/config.m4 and then
run:
make clean
./buildconf --force
./config.nice
make
and see which libxml it now links too.
------------------------------------------------------------------------
[2013-06-13 00:57:01] spamik at yum dot pl
root@sv18 [~/php-5.4.16]# ./configure --with-libxml-dir=/usr/libxml2-2.9.0 && make
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 && make
root@sv18 [~/php-5.4.16]# ldd sapi/cli/php|grep xml
libxml2.so.2 => /usr/lib64/libxml2.so.2 (0x00007f1478692000)
When configured with mcrypt Makefile has
EXTRA_LIBS = -lcrypt -lresolv -lcrypt -lrt -lmcrypt -lltdl -lrt -lm -ldl -lnsl -lxml2 -lz -lm -lxml2
-lz -lm -lxml2 -lz -lm -lcrypt -
lxml2 -lz -lm -lxml2 -lz -lm -lxml2 -lz -lm -lcrypt
when configured without mcrypt Makefile has
EXTRA_LIBS = -lcrypt -lresolv -lcrypt -lrt -lrt -lm -ldl -lnsl -lxml2 -lz -lm -lxml2 -lz -lm -lxml2
-lz -lm -lcrypt -lxml2 -lz -lm -
lxml2 -lz -lm -lxml2 -lz -lm -lcrypt
problem seems to be caused by flag -lltdl. When removed manualy, libxml2 is liked ok. What is this
flag?
------------------------------------------------------------------------
[2013-06-12 20:58:07] spamik at yum dot pl
or better I'll put in into to compile issues...
------------------------------------------------------------------------
[2013-06-12 20:56:32] spamik at yum dot pl
changing to mcrypt package. Maybe more devs there will be more active.
------------------------------------------------------------------------
[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)
------------------------------------------------------------------------
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