Edit report at https://bugs.php.net/bug.php?id=43189&edit=1
ID: 43189 Comment by: fuckrightoff at mailinator dot com Reported by: meh at mailinator dot com Summary: Fails to link iconv Status: Not a bug Type: Bug Package: ICONV related Operating System: Mac OS X 10.5 PHP Version: 5.*, 6CVS (2009-06-01) Block user comment: N Private report: N New Comment: For anyone looking to troubleshoot this problem on Mac OS X on 5.3.* or 5.4.*, a step-by-step solution: You need to test to make sure you are linking against a version of libiconv that contains symbols that begin with _libiconv_, e.g. "_libiconv_open". To test this, find all files named libiconv.a, libiconv.so or libiconv.dylib and for each one type: nm <filename> | grep _libiconv If you see functions matching that signature link against that version of the library. You may need to compile a new version of libiconv. If the version you find ends in .a (i.e. libiconv.a) then it's a static library and you need to manually link it into PHP. In order to do that, run ./configure as normal, then before typing "make", edit the Makefile and add the line: EXTRA_CFLAGS = path/to/libiconv.a Make sure you include that line early in the file. I chose to place it right below "CONFIGURE_OPTIONS" Also, be sure to check that your Makefile does not already include an EXTRA_CFLAGS variable, or you may clobber something essential. If that's the case, just append the path/to/libiconv.a to the end of the EXTRA_CFLAGS option. Previous Comments: ------------------------------------------------------------------------ [2009-06-01 09:20:47] j...@php.net See bug #48195 ------------------------------------------------------------------------ [2009-06-01 09:14:38] j...@php.net And please don't reopen old bugs like this, now there were 2 reports for same issue.. ------------------------------------------------------------------------ [2009-06-01 09:13:47] j...@php.net Just an idea: How about you remove the extra installations of the libraries and only use ONE at the time? Or tune your library paths to be correct.. ------------------------------------------------------------------------ [2009-06-01 09:09:44] j...@php.net Scott, apparently your fix didn't help? ------------------------------------------------------------------------ [2009-05-28 16:42:35] phi...@php.net For me, the following solution worked: http://blog.yimingliu.com/2009/02/24/missing-library-symbols-while- compiling-php-528/ Which involves moving around $(MH_BUNDLE_FLAGS). Looks like a different yet related bug however, but .... ------------------------------------------------------------------------ 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=43189 -- Edit this bug report at https://bugs.php.net/bug.php?id=43189&edit=1