PHP compile error: Warning: inter-library dependencies are not known to be supported.

Written by vidarlo on 20081020 in english and Linux and software with one comment.

I got a strange error when compiling PHP today:

*** Warning: inter-library dependencies are not known to be supported.
*** All declared inter-library dependencies are being dropped.
*** Warning: libtool could not satisfy all declared inter-library
*** dependencies of module libphp5. Therefore, libtool will create
*** a static module, that should work as long as the dlopening
*** application is linked with the -dlopen flag.
copying selected object files to avoid basename conflicts...

I recompiled PHP, with same options as last time, same version, but –with-curl added to the end of the options string. I got this error. So, the only change was the –with-curl-option. I tried without it, but no, same error. The result? libphp5.so was not compiled correctly, and PHP was not working…

The culprit turned out to be that libcurl and libxml was not compiled with different GCC versions, so they did not play well along. It was fixed by running an apt-get update && apt-get upgrade. However, I’m a bit baffled by the fact that PHP was not working even when compiling without CURL… I’m not sure why it did not work when compiling without curl, since no other changes were made to that box…

Oh, and to make it even better: PHP claims its not their problem… They could atleast give a bit more informative error message. But my suggestion is to ensure that all your libraries is up to date. The culprit in this case was libxml2 and curl, but it might be other libraries next time…

1 Response to “PHP compile error: Warning: inter-library dependencies are not known to be supported.

  1. Well, if you’re dumb like me you will try to install a newer version of PHP than your system has packages for and it will fail. My system (OpenSUSE 11.2) comes with PHP 5.3.1 and I tried to build my own 5.3.2 but all the packages were built at level 5.3.1 so that is why it failed for me.