After getting PHP 5.0.5 to compile on my Solaris 9 server, I got the following error when doing the make install:
ld.so.1: php: fatal: relocation error: file /u01/packages/src/php-5.0.5/sapi/cli/php: symbol xmlRelaxNGCleanupTypes: referenced symbol not found
Killed
make[1]: *** [install-pear-installer] Error 137
make: *** [install-pear] Error 2
Turns out that the Sun XML packages are stomping all over the xml2 package from http://xmlsoft.org/. Simply removing the following two packages allowed the make install to complete.
# pkgrm SUNWlxml
# pkgrm SUNWlxmlx
Why does this error happend?
Instead of removing the other xml packages, you can add “–with-libxml-dir=/usr/local” to the ./configure. Be sure to make clean before a you attempt to make again.
I also had luck with adding /usr/local/lib to the front of my LD_LIBRARY_PATH:
“LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH”
Hope this helps