Hello,
 I am new to openldap so any help is wellcome!
 I am trying to build dynamic modules and I have got this error when trying to load them:

lt_dlopenext failed: (back_monitor.la) /usr/local/libexec/openldap/back_monitor-2.3.so.0: undefined symbol: slapd_rq
/etc/openldap/slapd.conf: line 23: failed to load or initialize module back_monitor.la

 Could someone help me with this issue?

 Here are some extra information:
 - Source package: openldap-2.3.39.tgz
 - Configure options:
configure --libdir=/usr/lib --libexecdir=/usr/local/libexec/openldap --enable-dynamic --enable-modules --enable-monitor=mod --enable-shell=mod
 - Ldd output:
ldd /usr/local/libexec/openldap/back_monitor.so
        libldap_r-2.3.so.0 => /home/ricardo/openldap-work/libraries/libldap_r/.libs/libldap_r-2.3.so.0 (0x00aa2000)
        liblber-2.3.so.0 => /home/ricardo/openldap-work/libraries/liblber/.libs/liblber-2.3.so.0 (0x00bc6000)
        libc.so.6 => /lib/tls/libc.so.6 (0x0056b000)
        libresolv.so.2 => /lib/libresolv.so.2 (0x00111000)
        libsasl2.so.2 => /usr/lib/libsasl2.so.2 (0x00124000)
        libssl.so.4 => /lib/libssl.so.4 (0x008cc000)
        libcrypto.so.4 => /lib/libcrypto.so.4 (0x00780000)
        /lib/ld-linux.so.2 (0x002f0000)
        libdl.so.2 => /lib/libdl.so.2 (0x00138000)
        libcrypt.so.1 => /lib/libcrypt.so.1 (0x00362000)
        libgssapi_krb5.so.2 => /usr/lib/libgssapi_krb5.so.2 (0x0013c000)
        libkrb5.so.3 => /usr/lib/libkrb5.so.3 (0x006a6000)
        libcom_err.so.2 => /lib/libcom_err.so.2 (0x00b9c000)
        libk5crypto.so.3 => /usr/lib/libk5crypto.so.3 (0x001c2000)
        libz.so.1 => /usr/lib/libz.so.1 (0x00f85000)
 - Slapd.conf:
modulepath  /usr/local/libexec/openldap
moduleload  back_monitor.la

--
:: Ricardo Moreira