ID: 49267 Comment by: h dot lapp at clipdealer dot de Reported By: s dot rost at ewerk dot com Status: Assigned Bug Type: Compile Failure Operating System: Mac OSX 10.6 Snow Leopard PHP Version: 5.3, 6 (2009-08-18) Assigned To: scottmac New Comment:
worked for me, too -- osx 10.6.2 / php 5.3.1 can we expect an official fix anytime soon? Previous Comments: ------------------------------------------------------------------------ [2009-12-08 00:03:06] ydeedido at yahoo dot com Running OSX 10.6.2 and had the same issue on 5.3.1. The original post works (#define change on line #186). As the original author mentioned, it seems as there should be another fix than to define A to A but hey, it works! (I didn't have to add - lreslov on 5.3.1) ------------------------------------------------------------------------ [2009-12-02 14:19:02] ralph dot schindler at zend dot com Please note: This affects the PHP_5_2 branch as well. ------------------------------------------------------------------------ [2009-10-09 16:00:28] Lawrence dot Sewell at vt dot edu Moving this thread to a positive note, making these two changes does work for my system with PHP-5.3.0: sw_vers - ProductName: Mac OS X Server ProductVersion: 10.6.1 BuildVersion: 10B504 gcc -v - Thread model: posix gcc version 4.2.1 (Apple Inc. build 5646) machine - i486 1) Add "-lresolv" to MH_BUNDLE_FLAGS, EXTRA_LDFLAGS and EXTRA_LDFLAGS_PROGRAM in "Makefile" 2) Change "ext/iconv/iconv.c" 186c186 < #define iconv libiconv --- > #define iconv iconv ------------------------------------------------------------------------ [2009-10-05 13:45:31] cest_robert at hotmail dot com I tried the same fixes using a MacBook 2.0 Ghz, 10.6.1 fresh install. Installed libiconv from Macports 1.8.1 (along with libjpeg, libpng, etc.) and ensured it was a 64-bit library using "file /opt/local/lib/libiconv.dylib". Tried each combination (edited ext/iconv/iconv.c file line 185, edited Makefile to include -lresolv) but nothing allows the system to compile correctly. The error is always: Undefined symbols: "_libiconv_open", referenced from: _do_convert in gdkanji.o _convert in encodings.o "_libiconv", referenced from: _do_convert in gdkanji.o __php_iconv_appendl in iconv.o __php_iconv_appendl in iconv.o _php_iconv_string in iconv.o _php_iconv_string in iconv.o __php_iconv_strlen in iconv.o __php_iconv_substr in iconv.o __php_iconv_strpos in iconv.o __php_iconv_mime_encode in iconv.o __php_iconv_mime_encode in iconv.o __php_iconv_mime_encode in iconv.o __php_iconv_mime_encode in iconv.o __php_iconv_mime_encode in iconv.o __php_iconv_mime_encode in iconv.o _php_iconv_stream_filter_append_bucket in iconv.o _php_iconv_stream_filter_append_bucket in iconv.o _php_iconv_stream_filter_append_bucket in iconv.o _convert in encodings.o "_libiconv_close", referenced from: _do_convert in gdkanji.o _convert in encodings.o ld: symbol(s) not found collect2: ld returned 1 exit status make: *** [libs/libphp5.bundle] Error 1 I've even tried NOT using libiconv with "--without-iconv" in the PHP config script, but it *still* gives this error no matter what happens. Spent 3 days now searching for fixes, trying different combinations of patches and suggestions, but nothing works. I'm completely stumped. ------------------------------------------------------------------------ [2009-09-28 19:05:37] bj...@php.net This issue looks like the same issue as I fixed on FreeBSD some years ago. If I can access to that OSX platform I'm sure I can fix it while Scott is away.. ------------------------------------------------------------------------ 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/49267 -- Edit this bug report at http://bugs.php.net/?id=49267&edit=1