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

Re: Painless change from BDB 4.1.25 to BDB 4.2.52



Tony Earnshaw wrote:

On a related subject: On November 26th last, Quanah posted an ldd of slapd:

slapd ldd:
/usr/local/stow/openldap-2.1.23/lib# ldd slapd
        libldap_r.so.2 =>        /usr/local/lib/libldap_r.so.2
        liblber.so.2 =>  /usr/local/lib/liblber.so.2
        libdb-4.2.so =>  /usr/local/lib/libdb-4.2.so
        libsasl2.so.2 =>         /usr/local/lib/libsasl2.so.2
        libdl.so.1 =>    /usr/lib/libdl.so.1
        libssl.so.0.9.7 =>       /usr/local/lib/libssl.so.0.9.7
        libcrypto.so.0.9.7 =>    /usr/local/lib/libcrypto.so.0.9.7
        libresolv.so.2 =>        /usr/lib/libresolv.so.2
        libgen.so.1 =>   /usr/lib/libgen.so.1
        libnsl.so.1 =>   /usr/lib/libnsl.so.1
        libsocket.so.1 =>        /usr/lib/libsocket.so.1
        libpthread.so.1 =>       /usr/lib/libpthread.so.1
        libc.so.1 =>     /usr/lib/libc.so.1
        libgcc_s.so.1 =>         /usr/local/lib/libgcc_s.so.1
        libmp.so.2 =>    /usr/lib/libmp.so.2
        libthread.so.1 =>        /usr/lib/libthread.so.1
        /usr/platform/SUNW,Ultra-80/lib/libc_psr.so.1

Which is what I'd expect. See the "libdb-4.2.so => /usr/local/lib/libdb-4.2.so"?

If I do the same, either on my new or my old slapd:

1198 [root:billy.demon.nl] /usr/local/libexec # ldd slapd
                libcrypto.so.0.9.7 => /usr/local/lib/libcrypto.so.0.9.7
(0x40017000)
        libssl.so.0.9.7 => /usr/local/lib/libssl.so.0.9.7 (0x40109000)
        libcrypt.so.1 => /lib/libcrypt.so.1 (0x4014a000)
        libsasl2.so.2 => /usr/local/lib/libsasl2.so.2 (0x40177000)
        libdl.so.2 => /lib/libdl.so.2 (0x4018c000)
        libresolv.so.2 => /lib/libresolv.so.2 (0x4018f000)
        libpthread.so.0 => /lib/tls/libpthread.so.0 (0x401a2000)
        libc.so.6 => /lib/tls/libc.so.6 (0x401b2000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)

No reference whatsoever to libdb-4.2.so. Yet my slapd works fine ;) How
on earth does it know to use BDB at all? ldd on all the above libraries
contains not a singel recursive reference to libdb-4.2.so.

--Tonni


It's because bdb libs are staticaly linked into slapd. This is the default, if do not you want
that then --configure with --enable-bdb[-module]=dynamic. See "configure --help" and look at the defaults.


hth,
mitu