ID:               44294
 Comment by:       rdohms at gmail dot com
 Reported By:      danval at gmail dot com
 Status:           Open
 Bug Type:         Compile Failure
 Operating System: Mac 10.5 Leopard Client
 PHP Version:      5.3.0RC2
 New Comment:

Ok.

Phillips solution points to the right direction. The changes in the
Makefile did not work for me, seems there was more then one point to
it.

The solution came down to adding -L/path/to/lib in front of all the
commands that generate the broken message reported above.

I then ran these commands (2 in my case, for libphp5.so and the cli) by
hand and ran make again, so it pickedup from where it had stopped.

This worked for me in 5.3RC2 and HEAD. 

PS: you need to include "lib"in the --with-libxml-dir and in these
paths above


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

[2009-06-19 12:49:59] rdohms at gmail dot com

Tried recompiling PHP again some time after doing it with the fresh
libxml2 install, and it no longer works, breaking with the same error as
above.

Also tried the Makefile editing and it still gives me tehe same
errors.
Tried with PHP 5.3.0RC2 and HEAD

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

[2009-05-26 01:03:05] phi...@php.net

The problem is described here:

http://blog.yimingliu.com/2009/02/24/missing-library-symbols-while-
compiling-php-528/

The provided solution (editing Makefile) worked for me.

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

[2009-05-08 18:43:33] rdohms at gmail dot com

Compiling libxml2 from source solved this for me

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

[2008-08-03 16:21:22] whisller at gmail dot com

I also have this same problem on Leopard.
But solution which you wrote, "remove all instances of libxml from your
system" can only crash Leopard ( http://jamesclarke.info/notes/libxml2/
- see comments ).

My "sudo make" also return this same error like in danval situation.

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

[2008-03-03 13:02:57] j...@php.net

Check that your installed libxml2 is clean, ie. you don't have messed
up the headers vs. libraries when installing it. It happens when if you
install it from sources and don't remove the existing installation
first. Most likely this is just a messed up installation of libxml2 so
the easiest way to solve it is first removing all instances of any
libxml2 related files from your system and reinstalling it from scratch,
then do the same for PHP. (use _fresh_ sources!)

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

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/44294

-- 
Edit this bug report at http://bugs.php.net/?id=44294&edit=1

Reply via email to