php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #13019 compile time option"-R/opt/mysql/lib/mysql" ignored
Submitted: 2001-08-29 04:41 UTC Modified: 2001-10-23 09:57 UTC
From: jewa at force dot de Assigned:
Status: Not a bug Package: Compile Failure
PHP Version: 4.0.6 OS: Solaris 2.7
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.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: jewa at force dot de
New email:
PHP Version: OS:

 

 [2001-08-29 04:41 UTC] jewa at force dot de
Hi,

I compiled 4.0.6 with SUNWspro 4.0 cc compiler and the following options:

export CC=/opt/SUNWspro/bin/cc
export CFLAGS="-R/opt/mysql/lib/mysql"
export LDFLAGS="-R/opt/mysql/lib/mysql"
./configure --prefix=/opt/php --with-mysql=/opt/mysql --with-apxs=/opt/apache/bin/apxs
--with-config-file-path=/opt/php; make

So I want to include the path to mysql library "libmysqlclient.so" in the dynamic section of libphp4.so to avoid setting a LD_LIBRARY_PATH to apache.
But libphp4.so stiil uses the shared library:

find . -name *.so
./.libs/libphp4.so

./.libs/libphp4.so:

  **** DYNAMIC SECTION INFORMATION ****
.dynamic:
[INDEX] Tag         Value
[1]     NEEDED      libpam.so.1
[2]     NEEDED      libdl.so.1
[3]     NEEDED      libmysqlclient.so.10
[4]     NEEDED      libcrypt_i.so.1
[5]     NEEDED      libresolv.so.2
[6]     NEEDED      libm.so.1
[7]     NEEDED      libnsl.so.1
[8]     NEEDED      libsocket.so.1
[9]     NEEDED      libc.so.1
[10]    NEEDED      libucb.so.1
[11]    NEEDED      libelf.so.1
[12]    SONAME      libphp4.so
[13]    RPATH       /usr/ucblib

But RPATH only includes "/usr/ucblib" even if "config.log" gets it:

./config.log :ysql/lib/mysql -R/usr/ucblib -L/usr/ucblib -R/opt/mysql/lib/mysql -L/opt/mysql/lib/mysql conftest.c -ldl -lmysqlclient -lcrypt

But I guess it should be:

-R/usr/ucblib:/opt/mysql/lib/mysql

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-10-23 09:57 UTC] sniper@php.net
Not a PHP bug. libtool drops these for libraries.
Report it to the libtool folks.

--Jani

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed May 01 16:01:31 2024 UTC