[Date Prev][Date Next] [Chronological] [Thread] [Top]

(ITS#7137) Wrong -R path for installed programs



Full_Name: Åke Holmlund
Version: 2.4.28
OS: Solaris 10, Ubuntu 10.04
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (2001:6b0:e:4a43::25)


After compiling and installing OpenLDAP, the tools and servers are linked with
the wrong library path. They use the libraries in the source tree instead of the
installed libraries.

Example from Ubuntu:

ldd ldapsearch 
	linux-vdso.so.1 =>  (0x00007fffefd6a000)
	libldap-2.4.so.2 =>
/src/new/OpenLDAP/openldap-2.4.28/build-lnx/libraries/libldap/.libs/libldap-2.4.so.2
(0x00007f264082c000)
	liblber-2.4.so.2 =>
/src/new/OpenLDAP/openldap-2.4.28/build-lnx/libraries/liblber/.libs/liblber-2.4.so.2
(0x00007f264061c000)
	libsasl2.so.2 => /usr/lib/libsasl2.so.2 (0x00007f26403e5000)
	libdl.so.2 => /lib/libdl.so.2 (0x00007f26401e1000)
	libssl.so.0.9.8 => /lib/libssl.so.0.9.8 (0x00007f263ff8e000)
	libcrypto.so.0.9.8 => /lib/libcrypto.so.0.9.8 (0x00007f263fbfe000)
	libresolv.so.2 => /lib/libresolv.so.2 (0x00007f263f9e5000)
	libc.so.6 => /lib/libc.so.6 (0x00007f263f661000)
	/lib64/ld-linux-x86-64.so.2 (0x00007f2640a77000)
	libz.so.1 => /lib/libz.so.1 (0x00007f263f44a000)

Note that libldap and liblber in /src/new... are used instead of the libraries
installed in /opt/OpenLDAP/lib. The same problem occurs in Solaris 10.