#48195 [Opn]: iconv link failure
| From: | rickdunn at chez dot com | Date: | Wed, 10 Jun 2009 20:52:22 +0000 |
| Subject: | #48195 [Opn]: iconv link failure | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-138194@lists.php.net to get a copy of this message | ||
ID: 48195
User updated by: rickdunn at chez dot com
Reported By: rickdunn at chez dot com
Status: Open
Bug Type: Compile Failure
Operating System: MacOSX 10.5.6
PHP Version: 5.3.0RC2
Assigned To: scottmac
New Comment:
I tried the makefile modification and the build was not successful.
Previous Comments:
------------------------------------------------------------------------
[2009-06-10 16:41:39] philip@php.net
Sorry to dirty up the bugs database as I'm not sure if #43189 differs
from this, so I blindly copied the fix from yimingliu to there hoping
it would help. My problem exists in 5.2 and 5.3, both of which require
manual changes.
Old snippet from Makefile:
-------------------------------------
libs/libphp$(PHP_MAJOR_VERSION).bundle: $(PHP_GLOBAL_OBJS)
$(PHP_SAPI_OBJS)
$(CC) $(MH_BUNDLE_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)
$(LDFLAGS) $(EXTRA_LDFLAGS) $(PHP_GLOBAL_OBJS:.lo=.o)
$(PHP_SAPI_OBJS:.lo=.o) $(PHP_FRAMEWORKS) $(EXTRA_LIBS)
$(ZEND_EXTRA_LIBS) -o $@ && cp $@ libs/libphp$(PHP_MAJOR_VERSION).so
New snippet from Makefile (after manual fix):
-------------------------------------
libs/libphp$(PHP_MAJOR_VERSION).bundle: $(PHP_GLOBAL_OBJS)
$(PHP_SAPI_OBJS)
$(CC) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS)
$(EXTRA_LDFLAGS) $(PHP_GLOBAL_OBJS:.lo=.o) $(PHP_SAPI_OBJS:.lo=.o)
$(PHP_FRAMEWORKS) $(EXTRA_LIBS) $(ZEND_EXTRA_LIBS) $(MH_BUNDLE_FLAGS)
-o $@ && cp $@ libs/libphp$(PHP_MAJOR_VERSION).so
Note:
-------------------------------------
The change is simply moving around $(MH_BUNDLE_FLAGS). The yimingliu
link provides a decent explanation for why this problem may exist. The
apache2handler.patch.txt patch does not solve this problem.
Configure information:
-------------------------------------
The following build without problem:
./configure --disable-all --with-iconv=/opt/local
./configure --disable-all --with-xmlrpc --enable-libxml=/opt/local --
with-apxs2
While this requires the change to Makefile:
./configure --disable-all --with-iconv=/opt/local --with-apxs2
Jani, Mac is weird and semi-broken in several respects so messing
around with and for example removing old versions of libraries it
relies upon can mess things up. This includes libxml2 and libiconv.
------------------------------------------------------------------------
[2009-06-10 13:06:32] jani@php.net
Can you give the feedback I asked for? See my previous comment.
------------------------------------------------------------------------
[2009-06-06 16:42:10] rickdunn at chez dot com
I get the same error now when I try to compile 5.2.9. The solution in
Bug #43189 did not work for me.
------------------------------------------------------------------------
[2009-06-01 09:24:22] jani@php.net
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. :)
------------------------------------------------------------------------
[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..
------------------------------------------------------------------------
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