From:
Operating system: Mac OS X 10.7.2 (Lion)
PHP version: 5.3.8
Package: Compile Failure
Bug Type: Bug
Bug description:Compiling PHP fails
Description:
------------
Compiling PHP v.5.3.8 fails on Mac OS X 10.7.2 (Lion) -- linker errors are
generated relating to iconv
Test script:
---------------
./configure --prefix=/usr/local --mandir=/usr/share/man
--infodir=/usr/share/info --with-apxs2=/usr/local/apache2/bin/apxs
--enable-cli --with-zlib-dir=/usr --enable-exif --enable-ftp
--enable-mbstring --enable-mbregex --enable-sockets --with-curl=/usr
--with-config-file-path=/etc --sysconfdir=/etc --with-mysql-sock=/tmp
--with-mysql=/usr/local/mysql --with-xmlrpc --with-xsl=/usr --without-pear
--with-libxml-dir=/usr --with-zlib --with-sqlite --with-gd
--with-pdo-mysql=/usr/local/mysql --with-jpeg-dir=/opt/local
--with-png-dir=/usr/X11R6 --with-iconv-dir=/opt/local --enable-pcntl
--enable-soap --enable-wddx --enable-zip
make clean
make
Expected result:
----------------
make passes
Actual result:
--------------
Undefined symbols for architecture x86_64:
"_libiconv_open", referenced from:
_do_convert in gdkanji.o
_convert in encodings.o
"_libiconv", referenced from:
_do_convert in gdkanji.o
_convert in encodings.o
"_libiconv_close", referenced from:
_do_convert in gdkanji.o
_convert in encodings.o
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status
make: *** [libs/libphp5.bundle] Error 1
--
Edit bug report at https://bugs.php.net/bug.php?id=60268&edit=1
--
Try a snapshot (PHP 5.4):
https://bugs.php.net/fix.php?id=60268&r=trysnapshot54
Try a snapshot (PHP 5.3):
https://bugs.php.net/fix.php?id=60268&r=trysnapshot53
Try a snapshot (trunk):
https://bugs.php.net/fix.php?id=60268&r=trysnapshottrunk
Fixed in SVN:
https://bugs.php.net/fix.php?id=60268&r=fixed
Fixed in SVN and need be documented:
https://bugs.php.net/fix.php?id=60268&r=needdocs
Fixed in release:
https://bugs.php.net/fix.php?id=60268&r=alreadyfixed
Need backtrace:
https://bugs.php.net/fix.php?id=60268&r=needtrace
Need Reproduce Script:
https://bugs.php.net/fix.php?id=60268&r=needscript
Try newer version:
https://bugs.php.net/fix.php?id=60268&r=oldversion
Not developer issue:
https://bugs.php.net/fix.php?id=60268&r=support
Expected behavior:
https://bugs.php.net/fix.php?id=60268&r=notwrong
Not enough info:
https://bugs.php.net/fix.php?id=60268&r=notenoughinfo
Submitted twice:
https://bugs.php.net/fix.php?id=60268&r=submittedtwice
register_globals:
https://bugs.php.net/fix.php?id=60268&r=globals
PHP 4 support discontinued:
https://bugs.php.net/fix.php?id=60268&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=60268&r=dst
IIS Stability:
https://bugs.php.net/fix.php?id=60268&r=isapi
Install GNU Sed:
https://bugs.php.net/fix.php?id=60268&r=gnused
Floating point limitations:
https://bugs.php.net/fix.php?id=60268&r=float
No Zend Extensions:
https://bugs.php.net/fix.php?id=60268&r=nozend
MySQL Configuration Error:
https://bugs.php.net/fix.php?id=60268&r=mysqlcfg