Edit report at https://bugs.php.net/bug.php?id=39197&edit=1
ID: 39197 Comment by: lzsiga at freemail dot c3 dot hu Reported by: lzsiga at freemail dot c3 dot hu Summary: How do I get shared library 'libphp5.so'? Status: Bogus Type: Bug Package: Apache2 related Operating System: AIX PHP Version: 5.1.6 Block user comment: N Private report: N New Comment: using LDFLAGS='-Wl,-brtl' makes the situation much easier... putting shared objects into *.a archives (what AIX does by default) is simply bad... Previous Comments: ------------------------------------------------------------------------ [2006-11-11 23:02:17] ras...@php.net Ok, so not really a bug here. The configure check does warn you about gnu-ld. It could probably be cleaned up a bit, but as you said, you are on a rather exotic platform. ------------------------------------------------------------------------ [2006-10-30 02:59:18] lzsiga at freemail dot c3 dot hu Let me summarize the problem in three steps: When compiling PHP5 on AIX: 1. If you want to get dynamically loadable shared object (generally this is your first goal) do not use GNU-ld. The default AIX linker will give you the AIX-compliant 'libphp5.so' within 'libphp5.a'. 2. If you want to get standalone executable (generally this is your second goal) you have to edit one of the files 'Makefile', 'configure' or 'sapi/cli/config.m4' as described in bug #39187. 3. If you are using such an exotic platform then Prepare for trouble (And make it double). Now will someone please close this bug. ------------------------------------------------------------------------ [2006-10-20 10:09:22] lzsiga at freemail dot c3 dot hu Very well, I was blind enough to miss this part of the output of ./configure: checking whether the gcc linker (/usr/local/bin/gld) supports shared libraries.. *** Warning: the GNU linker, at least up to release 2.9.1, is reported *** to be unable to reliably create shared libraries on AIX. *** Therefore, libtool is disabling shared libraries support. If you *** really care for shared libraries, you may want to modify your PATH *** so that a non-GNU linker is found, and then restart. no checking dynamic linker characteristics... aix5.2.0.0 ld.so checking how to hardcode library paths into programs... unsupported checking whether stripping libraries is possible... no checking if libtool supports shared libraries... no checking whether to build shared libraries... no checking whether to build static libraries... yes ------------------------------------------------------------------------ [2006-10-19 13:09:02] lzsiga at freemail dot c3 dot hu Description: ------------ Some of us are really quick-handed closing bug-reports as 'bogus', but I still have a problem with PHP-5.1.6 compilation on AIX-5.2: Even specifing both --enable-shared and --disable-static is not enough to create a shared object (libphp5.so). For some strange reason the problem occures only when I set environment variable LD to the GNU-ld. ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=39197&edit=1