undefined symbol: ber_pvt_opt_on

Robert Escorcio rescorcio at google.com
Wed Dec 12 22:33:21 CET 2007


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?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ldap/attachments/20071212/fef4b5d7/attachment.html>


More information about the python-ldap mailing list