#48195 [Asn]: iconv link failure
| From: | jani@php.net | Date: | Mon, 01 Jun 2009 09:24:23 +0000 |
| Subject: | #48195 [Asn]: iconv link failure | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-137940@lists.php.net to get a copy of this message | ||
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:
Please provide the generated Makefile's for PHP 5.2.9 (that works) and
PHP 5.3 (that does not work) using same configure options for both. And
as few options as possible, thankyouverymuch. :)
Previous Comments:
------------------------------------------------------------------------
[2009-06-01 09:16:02] jani@php.net
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..
------------------------------------------------------------------------
[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.
------------------------------------------------------------------------
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