Bug #8862 Updated: libtool does not code runpath into libphp4.so

From: Date: Tue, 12 Jun 2001 23:26:01 +0000
Subject: Bug #8862 Updated: libtool does not code runpath into libphp4.so
Groups: php.dev 
Request: Send a blank email to php-dev+get-56771@lists.php.net to get a copy of this message
ID: 8862 Updated by: sniper Reported By: strube@physik3.gwdg.de Old-Status: Suspended Status: Closed Bug Type: *Install and Config Operating system: PHP Version: 4.0.4pl1 Assigned To: Comments: This should be fixed now in latest CVS. --Jani Previous Comments: --------------------------------------------------------------------------- [2001-01-25 21:00:29] sniper@php.net It's libtool which drops the runpaths when building shared libraries. So this report is suspended until libtool is changed to support it. --Jani --------------------------------------------------------------------------- [2001-01-25 03:14:29] strube@physik3.gwdg.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-24 20:43:56] sniper@php.net 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. --Jani --------------------------------------------------------------------------- [2001-01-23 11:06:33] strube@physik3.gwdg.de Correction: The configure arguments also contained --with-db2=/export/www/apache --------------------------------------------------------------------------- [2001-01-23 10:59:20] strube@physik3.gwdg.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 libphp4.so references shared libdb2.so (in /export/www/apache/lib) and libmysqlclient.so (in /export/www/mysql/lib/mysql) and thus should have the runpath -R/export/www/apache/lib:/export/www/mysql/lib/mysql 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.) --------------------------------------------------------------------------- The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online. ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=8862&edit=2

« previous php.dev (#56771) next »