|
From: <mi...@st...> - 2002-07-01 13:14:57
|
Michael Str=F6der wrote:
>=20
> I tried to build python-ldap against libldap_r from OpenLDAP's REL_ENG_=
2=20
> branch by simply modifying setup.cfg:
>=20
> libs =3D ldap_r lber sasl
>=20
> The build went fine. ldd shows output like expected:
> [..]
>=20
> But import does not work.
> [..]
> ImportError: /usr/lib/python2.2/site-packages/_ldap.so: undefined=20
> symbol: ldap_first_reference
Hmm I saw some postings on using libldap_r with other software=20
packages. They used libldap_r *and* libldap for linking.
I tried this in setup.cfg:
libs =3D ldap_r ldap lber sasl
It seems to work and ldd shows this:
$ ldd /usr/lib/python2.2/site-packages/_ldap.so
libldap_r.so.2 =3D> /usr/local/openldap2/lib/libldap_r.so.2=20
(0x4001f000)
libldap.so.2 =3D> /usr/local/openldap2/lib/libldap.so.2=20
(0x40052000)
liblber.so.2 =3D> /usr/local/openldap2/lib/liblber.so.2=20
(0x40082000)
libsasl.so.7 =3D> /usr/lib/libsasl.so.7 (0x4008e000)
Can anyone confirm that it's supposed to work that way using both=20
libldap_r and libldap for linking? How can I be sure that the=20
reentrant version of a ldaplib function is used? (Again revealing=20
my lack of C compiling knowledge...)
Ciao, Michael.
|