undefined symbol: ber_pvt_opt_on
michael at stroeder.com
Thu Dec 13 00:45:00 CET 2007
Robert Escorcio wrote:
> 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,
Maybe something's wrong with run-time linking?
> but that cannot be so because I see the following
> when I run
> python setup.py install
> -Wl,-R/usr/local/openldap-2.3/lib -lldap -llber -lresolv -o
Seems to be ok at first glance. But how about asking the Ubuntu
Or could you please try to build yourself from a 2.3.1 source
distribution and provide setup.cfg if it fails? Generally I don't trust
package maintainers of Linux distribution anymore. Some of them (e.g.
Debian) has a very large patch set.
Also I note that you're on a 64-bit platform. Maybe there's something
wrong with the tool chain on that platform?
More information about the python-ldap