[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: LD_LIBRARY_PATH for make test
Michael Ströder wrote:
Howard Chu wrote:
Michael Ströder wrote:
Does setting LD_LIBRARY_PATH in tests/scripts/defines.sh have any effect?
Not any more. It used to, when we were using a much older version of
libtool. The current version of libtool that we use sets LD_LIBRARY_PATH
in the wrapper script that it generates for each dynamically linked
binary that it produces, so that line in defines.sh is obsolete.
Hmm...
Are you using a different version of libtool?
How can I find out? I didn't specify anything special.
However there is a libtool package installed:
If you didn't do anything special then the build will use the libtool scripts
bundled in the source tree.
My mistake, the libtool wrapper script doesn't use LD_LIBRARY_PATH, it
actually relinks the binary.
mandolin:~/OD/o24/servers/slapd> ls -l slapd .libs
-rwxr-xr-x 1 hyc users 6744 2009-03-19 11:33 slapd
.libs:
total 10907
-rwxr-xr-x 1 hyc users 11156135 2009-03-19 11:33 slapd
mandolin:~/OD/o24/servers/slapd> ./slapd -V
@(#) $OpenLDAP: slapd 2.4.X (Mar 19 2009 11:33:40) $
hyc@mandolin:/home/hyc/OD/o24/servers/slapd
mandolin:~/OD/o24/servers/slapd> ls -l slapd .libs
-rwxr-xr-x 1 hyc users 6744 2009-03-19 11:33 slapd
.libs:
total 21813
-rwxr-xr-x 1 hyc users 11156135 2009-03-19 11:35 lt-slapd
-rwxr-xr-x 1 hyc users 11156135 2009-03-19 11:33 slapd
mandolin:~/OD/o24/servers/slapd> ldd .libs/lt-slapd
linux-vdso.so.1 => (0x00007fff4f5ff000)
libldap_r-2.4-releng.so.2 =>
/home/hyc/OD/o24/libraries/libldap_r/.libs/libldap_r-2.4-releng.so.2
(0x00007f8b47122000)
liblber-2.4-releng.so.2 =>
/home/hyc/OD/o24/libraries/liblber/.libs/liblber-2.4-releng.so.2
(0x00007f8b46f13000)
libsasl2.so.2 => /usr/lib64/libsasl2.so.2 (0x00007f8b46cfa000)
libdb-4.7.so => /usr/local/lib/libdb-4.7.so (0x00007f8b469ab000)
libmysqlclient_r.so.16 => /usr/local/lib/mysql/libmysqlclient_r.so.16
(0x00007f8b46715000)
libndbclient.so.4 => /usr/local/lib/mysql/libndbclient.so.4 (0x00007f8b46347000)
librt.so.1 => /lib64/librt.so.1 (0x00007f8b4613e000)
libnsl.so.1 => /lib64/libnsl.so.1 (0x00007f8b45f27000)
libstdc++.so.6 => /usr/local/lib/../lib64/libstdc++.so.6 (0x00007f8b45d26000)
libc.so.6 => /lib64/libc.so.6 (0x00007f8b459e4000)
libgcc_s.so.1 => /usr/local/lib/../lib64/libgcc_s.so.1 (0x00007f8b47438000)
libperl.so => /usr/lib/perl5/5.8.8/x86_64-linux-thread-multi/CORE/libperl.so
(0x00007f8b45691000)
libm.so.6 => /lib64/libm.so.6 (0x00007f8b4543b000)
libcrypt.so.1 => /lib64/libcrypt.so.1 (0x00007f8b45202000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f8b44fe7000)
libgssapi.so.2 => /usr/lib64/libgssapi.so.2 (0x00007f8b44dde000)
libdl.so.2 => /lib64/libdl.so.2 (0x00007f8b44bda000)
libssl.so.0.9.8 => /usr/lib64/libssl.so.0.9.8 (0x00007f8b44993000)
libcrypto.so.0.9.8 => /usr/lib64/libcrypto.so.0.9.8 (0x00007f8b44624000)
libresolv.so.2 => /lib64/libresolv.so.2 (0x00007f8b4440f000)
/lib64/ld-linux-x86-64.so.2 (0x00007f8b4736f000)
libz.so.1 => /lib64/libz.so.1 (0x00007f8b441fa000)
mandolin:~/OD/o24/servers/slapd> ldd .libs/slapd
linux-vdso.so.1 => (0x00007fffc23fe000)
libldap_r-2.4-releng.so.2 => not found
liblber-2.4-releng.so.2 => not found
libsasl2.so.2 => /usr/lib64/libsasl2.so.2 (0x00007f14b9ea6000)
libdb-4.7.so => /usr/local/lib/libdb-4.7.so (0x00007f14b9b57000)
libmysqlclient_r.so.16 => /usr/local/lib/mysql/libmysqlclient_r.so.16
(0x00007f14b98c1000)
libndbclient.so.4 => /usr/local/lib/mysql/libndbclient.so.4 (0x00007f14b94f3000)
librt.so.1 => /lib64/librt.so.1 (0x00007f14b92ea000)
libnsl.so.1 => /lib64/libnsl.so.1 (0x00007f14b90d3000)
libstdc++.so.6 => /usr/local/lib/../lib64/libstdc++.so.6 (0x00007f14b8ed2000)
libc.so.6 => /lib64/libc.so.6 (0x00007f14b8b90000)
libgcc_s.so.1 => /usr/local/lib/../lib64/libgcc_s.so.1 (0x00007f14ba188000)
libperl.so => /usr/lib/perl5/5.8.8/x86_64-linux-thread-multi/CORE/libperl.so
(0x00007f14b883d000)
libm.so.6 => /lib64/libm.so.6 (0x00007f14b85e7000)
libcrypt.so.1 => /lib64/libcrypt.so.1 (0x00007f14b83ae000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f14b8193000)
libgssapi.so.2 => /usr/lib64/libgssapi.so.2 (0x00007f14b7f8a000)
libdl.so.2 => /lib64/libdl.so.2 (0x00007f14b7d86000)
libssl.so.0.9.8 => /usr/lib64/libssl.so.0.9.8 (0x00007f14b7b3f000)
libcrypto.so.0.9.8 => /usr/lib64/libcrypto.so.0.9.8 (0x00007f14b77d0000)
libresolv.so.2 => /lib64/libresolv.so.2 (0x00007f14b75bb000)
/lib64/ld-linux-x86-64.so.2 (0x00007f14ba0bf000)
libz.so.1 => /lib64/libz.so.1 (0x00007f14b73a6000)
mandolin:~/OD/o24/servers/slapd>
The slapd binary is what gets installed by "make install" (and it probably
gets relinked for installation as well). The lt-slapd binary is invoked by the
wrapper script when you're running from the build tree, and that's what "make
test" will be using.
--
-- Howard Chu
CTO, Symas Corp. http://www.symas.com
Director, Highland Sun http://highlandsun.com/hyc/
Chief Architect, OpenLDAP http://www.openldap.org/project/