From: Robert E. <res...@go...> - 2007-12-12 21:33:20
|
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? |