[Date Prev][Date Next]
RE: openldap-2.1.1beta and libraries: linking problem
> -----Original Message-----
> From: owner-openldap-devel@OpenLDAP.org
> [mailto:owner-openldap-devel@OpenLDAP.org]On Behalf Of Andreas Hasenack
> Answering to myself: there seems to be a missing definition
> for UNIX_LINK_LIBS. It's used at that stage, but it's never
> defined, so no other libraries get linked in.
> has a LINK_LIBS = $(UNIX_LINK_LIBS), which turns out to be
> blank, at least here. UNIX_LINK_LIBS is not defined, I grepped
> the whole tree.
> Em Fri, May 17, 2002 at 01:46:56PM -0300, Andreas Hasenack escreveu:
> > It compiles, but the resulting libldap library (and probably
> others too) has not
> > been linked correctly, it shows up as linked only against glibc:
> > $ ldd /usr/lib/libldap.so.2.0.101
> > libc.so.6 => /lib/libc.so.6 (0x4004a000)
> > /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000)Looks like
Looks like you found the right answer.
In libldap/Makefile.in there should be a definition
UNIX_LINK_LIBS= $(LDAP_LIBLBER_LA) $(AC_LIBS) $(SECURITY_LIBS)
liblber, libldap, and libldap_r are the only libraries that get built
as dynamic libs, and liblber doesn't depend on anything besides libc.
So, looks like libldap and libldap_r Makefile.in needs a patch.
-- Howard Chu
Chief Architect, Symas Corp. Director, Highland Sun
Symas: Premier OpenSource Development and Support