ID: 48195
Updated by: jani@php.net
Reported By: rickdunn at chez dot com
Status: Assigned
Bug Type: Compile Failure
Operating System: OS X 10.5.6
PHP Version: 5.3.0RC2
Assigned To: scottmac
New Comment:
I think the reason is that people have several versions of iconv
installed in their system. Just remove the extra / wrong / whatever and
it will work fine..
Previous Comments:
------------------------------------------------------------------------
[2009-05-29 16:08:16] philip@php.net
See Bug #43189 for a [temporary] workaround, which involves editing
Makefile.
------------------------------------------------------------------------
[2009-05-12 17:38:00] rickdunn at chez dot com
Here's the last few lines and the error:
Zend/zend_object_handlers.o Zend/zend_objects_API.o
Zend/zend_default_classes.o Zend/zend_execute.o
sapi/apache2handler/mod_php5.o sapi/apache2handler/sapi_apache2.o
sapi/apache2handler/apache_config.o
sapi/apache2handler/php_functions.o main/internal_functions.o -liconv
-liconv -lm -o libs/libphp5.bundle && cp libs/libphp5.bundle
libs/libphp5.so
Undefined symbols:
"_libiconv", referenced from:
__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_strpos in iconv.o
_zif_iconv_substr in iconv.o
_zif_iconv_mime_encode in iconv.o
_zif_iconv_mime_encode in iconv.o
_zif_iconv_mime_encode in iconv.o
_zif_iconv_mime_encode in iconv.o
_zif_iconv_mime_encode in iconv.o
_zif_iconv_mime_encode in iconv.o
_php_iconv_stream_filter_append_bucket in iconv.o
_php_iconv_stream_filter_append_bucket in iconv.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make: *** [libs/libphp5.bundle] Error 1
------------------------------------------------------------------------
[2009-05-12 16:10:10] scottmac@php.net
Can you show me the last command it tried to run from linking?
Usually you have -L/usr/lib and -L/opt/local/lib or similar.
------------------------------------------------------------------------
[2009-05-12 15:55:11] rickdunn at chez dot com
Unfortunately, no luck. I applied the patch, ran ./buildconf and then
ran the following:
CFLAGS="-arch x86_64" CXXFLAGS="-arch x86_64" LDFLAGS="-arch x86_64"
CCFLAGS="-arch x86_64" ./configure --disable-all --with-iconv --with-
apxs2
'Make' still fails with the same error.
For what it's worth, I compiled 5.2.9 successfully today, so nothing
seems to have changed on my computer that would cause this.
------------------------------------------------------------------------
[2009-05-12 02:19:30] scottmac@php.net
Can you apply
http://whisky.macvicar.net/patches/apache2handler.patch.txt
Run ./buildconf and then configure again.
This should fix the issue you're having.
------------------------------------------------------------------------
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/48195
--
Edit this bug report at http://bugs.php.net/?id=48195&edit=1