|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2007-11-04 23:33 UTC] meh at mailinator dot com
Description:
------------
ld: warning, duplicate dylib /sw/lib/libssl.0.9.7.dylib
ld: warning, duplicate dylib /sw/lib/libcrypto.0.9.7.dylib
Undefined symbols:
"_iconv_close", referenced from:
_php_iconv_string in iconv.o
_php_iconv_string in iconv.o
__php_iconv_strlen in iconv.o
__php_iconv_strpos in iconv.o
__php_iconv_mime_decode in iconv.o
__php_iconv_mime_decode in iconv.o
__php_iconv_mime_decode in iconv.o
_zif_iconv_substr in iconv.o
_zif_iconv_substr in iconv.o
_php_iconv_stream_filter_dtor in iconv.o
_zif_iconv_mime_encode in iconv.o
_zif_iconv_mime_encode in iconv.o
"_iconv_open", referenced from:
_php_iconv_string in iconv.o
__php_iconv_strlen in iconv.o
__php_iconv_strpos in iconv.o
__php_iconv_mime_decode in iconv.o
__php_iconv_mime_decode in iconv.o
_zif_iconv_substr in iconv.o
_zif_iconv_substr in iconv.o
_zif_iconv_mime_encode in iconv.o
_zif_iconv_mime_encode in iconv.o
_php_iconv_stream_filter_factory_create in iconv.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make: *** [sapi/cli/php] Error 1
Reproduce code:
---------------
./configure --with-apxs2 --with-xsl --with-mysql=/sw --with-pdo --with-pdo-mysql=/sw --with-zlib --without-pear --with-iconv=/sw
I've tried --with-iconv and --with-iconv=/usr as well. Configure succeedes with any of these, but linker fails every time.
I have Fink installed:
/sw/lib/libiconv.2.4.0.dylib
/sw/lib/libiconv.2.dylib
/sw/lib/libiconv.dylib
/sw/lib/libiconv.la
Expected result:
----------------
Either configure should fail or linker should succeed.
Actual result:
--------------
Missing symbols...
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 03:00:01 2025 UTC |
Same problem on 10.5.6 I had to compile twice: First time: ./configure --with-apxs2 make ----> just to get libphp5.so Second time: ./configure --with-iconv=/opt/local etc.etc. make make install ----> compiles normally as long as we do not require the apache2 module ("--with-apxs2") to be built. Seems that the "--with-apxs2" directive confuses the linker and it doesn't know which libiconv to use (i.e. the MacPorts one, or the native MacOSX one).