ID: 43189 Comment by: neilmsn at mac dot com Reported By: meh at mailinator dot com Status: No Feedback Bug Type: ICONV related Operating System: Mac OS X 10.5 PHP Version: 5.3CVS-2007-11-04 (snap) New Comment:
Odd I used the suggested --with-iconv=shared,/opt/local in the configure and it's worked now BUT it's 5.2.8 installed. I must have somehow mixed my directories up, so I don't know if PHP 5.3 fixed this error now. Previous Comments: ------------------------------------------------------------------------ [2009-02-22 12:07:15] neilmsn at mac dot com I was getting the same error trying to compile from MacPorts on OS X 10.5.6 Anyway I downloaded the PHP 5.3 snapshot and its still gives the same error. 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 ------------------------------------------------------------------------ [2009-02-19 01:00:00] php-bugs at lists dot php dot net No feedback was provided for this bug for over a week, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open". ------------------------------------------------------------------------ [2009-02-11 21:38:56] fel...@php.net Please try using this CVS snapshot: http://snaps.php.net/php5.3-latest.tar.gz For Windows: http://windows.php.net/snapshots/ ------------------------------------------------------------------------ [2009-01-20 10:36:43] simon at freytag dot org dot uk Same problems for me when building PHP 5.2.8 on Mac OS 10.5.5, which first occurred when building PHP with mcrypt. It worked for me using mcrypt and iconv from macports, then the linking solution described above and finally a reconfigure/make clean/make after doing the linking. CONFIGURE: ./configure --prefix=/usr/local/php --with-libxml-dir=/opt/local/lib --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql=/usr/local/mysql --with-zlib --enable-pdo --with-pdo-sqlite --with-pdo-mysql=/usr/local/mysql --with-mcrypt=/opt/local --with-iconv=/opt/local ------------------------------------------------------------------------ [2008-12-27 15:46:41] wickedguitar6 at yahoo dot com 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). ------------------------------------------------------------------------ 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