|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #8862 libtool does not code runpath into
Submitted: 2001-01-23 10:59 UTC Modified: 2001-06-12 19:26 UTC
From: strube at physik3 dot gwdg dot de Assigned:
Status: Closed Package: Installation problem
PHP Version: 4.0.4pl1 OS: Solaris 7 (SPARC)
Private report: No CVE-ID: None
 [2001-01-23 10:59 UTC] strube at physik3 dot gwdg dot de
Apache php module configured with:
env CC=/opt/SUNWspro/bin/cc CFLAGS=-xO2 ./configure
--with-apxs=/export/www/apache/sbin/apxs --with-ndbm --with-db --with-mysql=/export/www/mysql --enable-yp --enable-sysvsem --enable-sysvshm --with-exec-dir=/export/www/php/bin --enable-versioning --with-config-file-path=/export/www/php/lib --prefix=/export/www/php --disable-debug

The resulting references shared (in
/export/www/apache/lib) and (in
/export/www/mysql/lib/mysql) and thus should have the runpath
coded into it. This does not happen, although the make log shows
the presence of the -R options when libtool is called.
Dirty workaround:
After configure, change line 1082 in libtool:
<     linkopts=
>     linkopts=-R/export/www/apache/lib:/export/www/mysql/lib/mysql

(Apache itself does not have this runpath. Of course, this would suggest
another workaround, but one should not rely on this for an independently
added module.)


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2001-01-23 11:06 UTC] strube at physik3 dot gwdg dot de
The configure arguments also contained
 [2001-01-24 20:43 UTC]
You must use LD_LIBRARY_PATH environment variable.
ie. Do:
# export LD_LIBRARY_PATH=/export/www/apache/lib:/export/www/mysql/lib/mysql
before starting apache.


 [2001-01-25 03:14 UTC] strube at physik3 dot gwdg dot de
Of course I know about LD_LIBRARY_PATH. This is at best a bad
workaround. A well-build program should not require LD_LIBRARY_PATH
but have the correct runpath coded into it.
 [2001-01-25 21:00 UTC]
It's libtool which drops the runpaths when building shared libraries.
So this report is suspended until libtool is changed to support it.


 [2001-06-12 19:26 UTC]
This should be fixed now in latest CVS.


PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Thu Mar 30 07:03:47 2023 UTC