ID: 48195
Updated by: philip@php.net
Reported By: rickdunn at chez dot com
-Status: Feedback
+Status: Open
Bug Type: Compile Failure
Operating System: MacOSX 10.5.6
PHP Version: 5.3.0RC2
Assigned To: scottmac
New Comment:
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.
Previous Comments:
------------------------------------------------------------------------
[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..
------------------------------------------------------------------------
[2009-05-29 16:08:16] philip@php.net
See Bug #43189 for a [temporary] workaround, which involves editing
Makefile.
------------------------------------------------------------------------
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