Hi,

I've successfully compiled a version of qmail-ldap-control and I have my LDAP server 
up and running and all that.
But when I try to invoke qmail-smtpd (or qmail-remote for example) I get this problem:

/var/qmail/bin/qmail-smtpd: error in loading shared libraries: 
/usr/local/openldap/lib/liblber.so.2: undefined symbol: __dso_handle

I've read the shared libraries section in LWQ-LDAP, but the problems discussed there 
is not the same that I experience.

When I run ldd to see which libraries qmail-smtpd depends on I get:
ldd /var/qmail/bin/qmail-smtpd
        libresolv.so.2 => /lib/libresolv.so.2 (0x40016000)
        libldap.so.2 => /usr/local/openldap/lib/libldap.so.2 (0x40026000)
        liblber.so.2 => /usr/local/openldap/lib/liblber.so.2 (0x4004c000)
        libc.so.6 => /lib/libc.so.6 (0x40057000)
        libsasl.so.7 => /usr/local/lib//libsasl.so.7 (0x40134000)
        libgcc_s.so.1 => /usr/local/lib//libgcc_s.so.1 (0x4013e000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
        libdb.so.3 => /lib/libdb.so.3 (0x40146000)
        libdl.so.2 => /lib/libdl.so.2 (0x40182000)
        libcrypt.so.1 => /lib/libcrypt.so.1 (0x40186000)

And.. as you can see here, the function is declared in libgcc_s as supposed, so what 
is wrong??
nm -s /usr/local/lib/libgcc_s.so | grep __dso_handle
00006cac d __dso_handle

I've recently upgraded to gcc 3.0.3 and I heard some people had some problems with 
just this
__dso_handle function.. May the problem be gcc?

My question is.. Have someone of you a running copy of qmail-ldap-control compiled 
with gcc 3.0.3 ?
(or 3.x)


Regards,
Johan Andersson

Reply via email to