|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #22035 EXTRA_LDFLAGS for AIX not quite right
Submitted: 2003-02-03 11:21 UTC Modified: 2003-02-03 11:36 UTC
From: trawick at apache dot org Assigned:
Status: Closed Package: Apache2 related
PHP Version: 4.3.0 OS: AIX
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: trawick at apache dot org
New email:
PHP Version: OS:


 [2003-02-03 11:21 UTC] trawick at apache dot org
In the build for apache2filter, there is some AIX-specific
logic to set EXTRA_LDFLAGS:



1) With Apache 2.0, httpd.exp is in the libexec dir, not 
   the sbin dir, so the link step fails.

2) Once the path for httpd.exp is tweaked, the DSO is built
   but run-time linking is not enabled so PHP segfaults
   the first time it tries to call an APR function
   (httpd.exp doesn't have apr_ stuff in it; run-time
   linking is used to resolve APR references)

   The fix for that is to add -Wl,-brtl to the link step.

For my own gcc build I had to include -L/path/to/libgcc.a -lgcc in EXTRA_LDFLAGS to resolve references to some arithmetic operations, but I doubt that is something for PHP to worry about.

So here is a patch to sapi/apache2filter/config.m4
(tested with 4.3.0, but CVS HEAD looks like patch should apply fine there too).


A funny thing about existing code in the area of the patch
is the use of $(INSTALL_ROOT) in front of directories printed by "apxs -q"...  I don't see how that makes any
sense, but for my builds INSTALL_ROOT was unset so it

Here is a line from config.m4 that has an example of
this use of $(INSTALL_ROOT):


My patch depends on the setting of APXS_LIBEXECDIR.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2003-02-03 11:36 UTC]
Patch committed. Thanks!

PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Jul 14 07:01:29 2024 UTC