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

DB_PRIVATE Error OpenLDAP 2.3.20 (src) and DB4-4.2.52 (rpm)



Hi All

Just a quick query about openldap 2.3.20 (src) and db 4.2.52 (rpm), I'm getting the "Berkeley DB library configured to support only DB_PRIVATE environments" error.

I know how to fix the error by using db 4.2.52 from source because this doesn't get compiled with support for POSIX threading which seems to be the cause of the problem.

Now I also have openldap 2.2.17 (src) running on the same server and it works fine with both db 4.2.52 (rpm) and db 4.2.52 (src), how come 2.3.20 breaks with the db rpm?

One thing I've noticed is that libdb is dynamically linked to slapd in 2.2.17 and not 2.3.20.

[root@devel openldap]# ldd /usr/openldap-2.2.17/libexec/slapd
        linux-gate.so.1 =>  (0xffffe000)
        libdb-4.2.so => /lib/tls/i686/libdb-4.2.so (0xb7e85000)
        libcrypt.so.1 => /lib/libcrypt.so.1 (0x00d89000)
        libresolv.so.2 => /lib/libresolv.so.2 (0x00dd1000)
        libpthread.so.0 => /lib/tls/libpthread.so.0 (0x00de6000)
        libc.so.6 => /lib/tls/libc.so.6 (0x00c10000)
        /lib/ld-linux.so.2 (0x00bf7000)
[root@devel openldap]# ldd /usr/openldap-2.3.20/libexec/slapd
        linux-gate.so.1 =>  (0xffffe000)
        libpthread.so.0 => /lib/tls/libpthread.so.0 (0x00de6000)
        libcrypt.so.1 => /lib/libcrypt.so.1 (0x00d89000)
        libresolv.so.2 => /lib/libresolv.so.2 (0x00dd1000)
        libc.so.6 => /lib/tls/libc.so.6 (0x00c10000)
        /lib/ld-linux.so.2 (0x00bf7000)

[root@devel openldap]# ldd /lib/tls/i686/libdb-4.2.so
        linux-gate.so.1 =>  (0xffffe000)
        libpthread.so.0 => /lib/tls/libpthread.so.0 (0xb7edf000)
        libc.so.6 => /lib/tls/libc.so.6 (0xb7db4000)
        /lib/ld-linux.so.2 (0x80000000)

FYI, this is on CentOS 4.2 with a 2.6.14.2 custom built kernel (not the rpm kernel) and I've compiled openldap using
"./configure --prefix=/usr/openldap-2.3.20 --enable-crypt"


--
Patrick Clohessy
Curtin University of Technology
Department of Computing
Tel: +61 8 9266 7817
email: pat@cs.curtin.edu.au