Bug #66685 [Asn->Fbk]: dyld: lazy symbol binding failed: Symbol not found: _XpmLibraryVersion
| From: | ondrej@php.net | Date: | Mon, 01 Aug 2016 06:55:17 +0000 |
| Subject: | Bug #66685 [Asn->Fbk]: dyld: lazy symbol binding failed: Symbol not found: _XpmLibraryVersion | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-202789@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=66685&edit=1
ID: 66685
Updated by: ondrej@php.net
Reported by: jigar dot tidus at gmail dot com
Summary: dyld: lazy symbol binding failed: Symbol not found:
_XpmLibraryVersion
-Status: Assigned
+Status: Feedback
Type: Bug
Package: GD related
Operating System: Mac OS X 10.6.2
PHP Version: 5.5.9
Assigned To: ondrej
Block user comment: N
Private report: N
New Comment:
It's definitely not due this commit, since the changes are in the:
> if test "$PHP_XPM_DIR" != "no"; then
> [...]
> fi
block.
The culprit is actually here (config.m4):
PHP_CHECK_LIBRARY(gd, gdImageCreateFromXpm, [AC_DEFINE(HAVE_GD_XPM, 1, [ ])], [], [
$GD_SHARED_LIBADD ])
I could definitely help with debugging, but PHP 5.5.x is EOL and the reported obfuscated his email,
so it's unlikely to get any feedback from him.
Previous Comments:
------------------------------------------------------------------------
[2016-08-01 02:50:27] kalle@php.net
Suppose this commit could maybe be the cause of it:
https://github.com/php/php-src/commit/5e9c6c3b644b290255fb10c8eb34778665c2f8a3
Assigning to ondrej as he was the author of this
------------------------------------------------------------------------
[2014-02-10 12:43:10] jigar dot tidus at gmail dot com
Description:
------------
Compiling PHP 5.5.9 in /usr/local/php55
I have compiled all the dependent libraries(zlib, libpng, libjpeg, libfreetype2, libgd) in
/usr/local/extra
Issue:
-------
When gd.so is enabled in php.ini, I get error when executing "/usr/local/php55/bin/php
-i". Below is the error I get in the gd section:
dyld: lazy symbol binding failed: Symbol not found: _XpmLibraryVersion
Referenced from: /usr/local/php55/lib/php/extensions/ext/gd.so
Expected in: flat namespace
dyld: Symbol not found: _XpmLibraryVersion
Referenced from: /usr/local/php55/lib/php/extensions/ext/gd.so
Expected in: flat namespace
Output is blank after this error. Environment variables and other extension details are skipped in
the output.
This same issue was in 5.5.8 version of PHP.
FYI: gd.so is loaded fine in PHP 5.4.24 and PHP 5.3.28.
I think its a bug because its looking for xpm version even when I have disabled it.
Please let me know a workaround to disable xpm support from gd.
Thanks,
Jigar
Test script:
---------------
libgd configure command:
LDFLAGS="-arch i386 -L/usr/local/extra/lib" CPPFLAGS="-arch i386
-I/usr/local/extra/include" ./configure --prefix=/usr/local/extra --with-zlib=/usr/local/extra/
--with-png=/usr/local/extra/ --with-jpeg=/usr/local/extra/ --without-xpm
--with-jpeg=/usr/local/extra/ --with-freetype=/usr/local/extra/ --enable-shared
and php configure command:
LDFLAGS="-arch i386 -L/usr/local/extra/lib" CPPFLAGS="-arch i386
-I/usr/local/extra/include" ./configure --prefix=/usr/local/php55
--with-gd=shared,/usr/local/extra --with-png-dir=/usr/local/extra/
--with-freetype-dir=/usr/local/extra/ --with-zlib-dir=/usr/local/extra/
--with-iconv=/usr/local/extra/ --with-xpm-dir=no
Expected result:
----------------
Execute "php -i" successfully.
Actual result:
--------------
proper phpinfo
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=66685&edit=1