On 8/19/11 10:19 AM, Quanah Gibson-Mount wrote:
--On Friday, August 19, 2011 8:07 AM -0700 David Engeset davidke@whidbey.net wrote:
I even have ld.so.conf set with the path to /usr/local/BerkeleyDB.4.8/lib Is there something else that I am missing that will ensure it compiles against the version that I have installed? Thank you,
If you use static modules, ldd slapd. If you use dynamic modules, ldd back_bdb.so or ldd back_hdb.so
--Quanah
--
Quanah Gibson-Mount Sr. Member of Technical Staff Zimbra, Inc A Division of VMware, Inc.
Zimbra :: the leader in open source messaging and collaboration
Here is the results of running ldd slapd, I use static modules: ldd /usr/local/libexec/slapd linux-gate.so.1 => (0x00efe000) libuuid.so.1 => /lib/libuuid.so.1 (0x48526000) libdb-4.8.so => /usr/local/BerkeleyDB.4.8/lib/libdb-4.8.so (0x00110000) libpthread.so.0 => /lib/libpthread.so.0 (0x477a1000) libsasl2.so.2 => /usr/lib/libsasl2.so.2 (0x48f0a000) libssl.so.10 => /usr/lib/libssl.so.10 (0x48ea9000) libcrypto.so.10 => /lib/libcrypto.so.10 (0x48b6a000) libcrypt.so.1 => /lib/libcrypt.so.1 (0x48341000) libresolv.so.2 => /lib/libresolv.so.2 (0x4797a000) libwrap.so.0 => /lib/libwrap.so.0 (0x46d5d000) libc.so.6 => /lib/libc.so.6 (0x475fe000) /lib/ld-linux.so.2 (0x475da000) libdl.so.2 => /lib/libdl.so.2 (0x477be000) libgssapi_krb5.so.2 => /lib/libgssapi_krb5.so.2 (0x48dd5000) libkrb5.so.3 => /lib/libkrb5.so.3 (0x48cf9000) libcom_err.so.2 => /lib/libcom_err.so.2 (0x48520000) libk5crypto.so.3 => /lib/libk5crypto.so.3 (0x48e18000) libz.so.1 => /lib/libz.so.1 (0x477fd000) libfreebl3.so => /lib/libfreebl3.so (0x47f97000) libnsl.so.1 => /lib/libnsl.so.1 (0x4914f000) libkrb5support.so.0 => /lib/libkrb5support.so.0 (0x48e45000) libkeyutils.so.1 => /lib/libkeyutils.so.1 (0x48cf4000) libselinux.so.1 => /lib/libselinux.so.1 (0x47834000)
So based upon this, if I am reading it correctly, I am linking to the BDB version 4.8 that I installed from source which installs to /usr/local/BerkeleyDB.4.8/