ID:               48195
 User updated by:  rickdunn at chez dot com
 Reported By:      rickdunn at chez dot com
-Status:           Feedback
+Status:           Open
 Bug Type:         Compile Failure
 Operating System: MacOSX 10.5.7
 PHP Version:      5.3.0RC2
 Assigned To:      scottmac
 New Comment:

Sorry about that -- files sent by e-mail.


Previous Comments:
------------------------------------------------------------------------

[2009-06-12 07:06:15] j...@php.net

Thanks, but I should propably said "send them via email". Both me and 
Scott. From the generated Makefiles it's easier to diff what the
problem 
is. I deleted those from this report, quite unreadable here.

------------------------------------------------------------------------

[2009-06-10 20:52:22] rickdunn at chez dot com

I tried the makefile modification and the build was not successful.

------------------------------------------------------------------------

[2009-06-10 16:41:39] phi...@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-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] j...@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. :)

------------------------------------------------------------------------

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

Reply via email to