ID: 43189 Comment by: chanleo1985 at gmail dot com Reported By: meh at mailinator dot com Status: Feedback Bug Type: ICONV related Operating System: Mac OS X 10.5 PHP Version: 5.3CVS-2007-11-04 (snap) New Comment:
I used a self compiled libiconv downloaded from GNU. setenv DYLD_LIBRARY_PATH to be my self compiled libiconv/lib compiling it as static module does not work. I got the same linker error as above. Configure passed but Make failed But compiling it as dynamic module , using --with-iconv=shared, worked for me. Configure passed and Make passed Bare in mind that even if configure passed and make passed, iconv still won't show up when you do php -m to list all the modules. You need to set php.ini to enable it. Need to add the following lines extension_dir = /location/of/iconv.so extension=iconv.so Previous Comments: ------------------------------------------------------------------------ [2009-03-24 01:51:29] scott...@php.net Could you do ./configure --disable-all --with-iconv --with-apxs2 And see if that causes an error? If not then can you slowly add in each of your additional functions to see which one causes the error. We need the simplest configure string possible. Also can you upload your config.log from the failed build somewhere. ------------------------------------------------------------------------ [2009-03-23 23:27:57] meh at mailinator dot com 5.2.9, --with-iconv still gives this error. ------------------------------------------------------------------------ [2009-03-13 07:56:37] jorge at reteguin dot com This configure option worked better for me: --with-iconv=/opt/local With this option I got the iconv section at phpinfo() and the function iconv() worked now. (Mac OS 10.5.6, PHP 5.2.8, iconv installed in /opt/local using macports) ------------------------------------------------------------------------ [2009-03-11 06:07:36] jorge at reteguin dot com This configure option worked for me: --with-iconv=shared,/opt/local (Mac OS 10.5.6, PHP 5.2.8, iconv installed in /opt/local using macports) ------------------------------------------------------------------------ [2009-02-22 14:03:46] neilmsn at mac dot com Still same error compiling PHP 5.3 as I just tested again. ------------------------------------------------------------------------ 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 http://bugs.php.net/43189 -- Edit this bug report at http://bugs.php.net/?id=43189&edit=1