After installing python-ldap 2.3 on Ubuntu (with openldap 2-3.39), I am
getting the following error when importing ldap from a python program

  ImportError: /usr/lib/python2.4/site-packages/_ldap.so: undefined symbol:
ber_pvt_opt_on

I have seen reports on the web that this is because I did not link _ldap.so
with -llber, but that cannot be so because I see the following when I run

  python setup.py install

gcc -pthread -shared build/temp.linux-x86_64- 2.4/Modules/LDAPObject.o
build/temp.linux-x86_64-2.4/Modules/ldapcontrol.o build/temp.linux-x86_64-
2.4/Modules/common.o build/temp.linux-x86_64-2.4/Modules/constants.o
build/temp.linux-x86_64-2.4/Modules/errors.o build/temp.linux-x86_64-
2.4/Modules/functions.o
build/temp.linux-x86_64-2.4/Modules/schema.o
build/temp.linux-x86_64-2.4/Modules/ldapmodule.o
build/temp.linux-x86_64-2.4/Modules/message.o
build/temp.linux-x86_64-2.4/Modules/version.o
build/temp.linux-x86_64- 2.4/Modules/options.o -L/usr/local/openldap-2.3/lib
-Wl,-R/usr/local/openldap-2.3/lib -lldap -llber -lresolv -o
build/lib.linux-x86_64-2.4/_ldap.so


Can anyone advise me on what is the problem?
-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Python-LDAP-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/python-ldap-dev

Reply via email to