|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #39197 How do I get shared library ''?
Submitted: 2006-10-19 13:09 UTC Modified: 2007-10-22 08:19 UTC
From: lzsiga at freemail dot c3 dot hu Assigned:
Status: Not a bug Package: Apache2 related
PHP Version: 5.1.6 OS: AIX
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
19 + 44 = ?
Subscribe to this entry?

 [2006-10-19 13:09 UTC] lzsiga at freemail dot c3 dot hu
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 (
For some strange reason the problem occures only when I set environment variable LD to the GNU-ld.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2006-10-20 10:09 UTC] 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.

checking dynamic linker characteristics... aix5.2.0.0
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-30 02:59 UTC] 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 '' 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-11-11 23:02 UTC]
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.
 [2012-01-23 08:09 UTC] lzsiga at freemail dot c3 dot hu
using LDFLAGS='-Wl,-brtl' makes the situation much easier... putting shared objects into *.a archives (what AIX does by default) is simply bad...
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Feb 23 09:01:28 2024 UTC