php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #39197 How do I get shared library 'libphp5.so'?
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 Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: lzsiga at freemail dot c3 dot hu
New email:
PHP Version: OS:

 

 [2006-10-19 13:09 UTC] 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.



Patches

Pull Requests

History

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.

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-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 '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-11-11 23:02 UTC] rasmus@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.
 [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: Sun Dec 22 03:01:28 2024 UTC