undefined symbol: ber_pvt_opt_on

Robert Escorcio rescorcio at google.com
Fri Dec 14 17:05:28 CET 2007


Hi Michael,

Thanks for your help.  I ended up dropping my old Ubuntu install and
rebuilt.  I got it working just fine now.

It was some sort of library problem as you indicated I am sure.  But I never
seem to be able to figure out stuff like that :)

Thanks again.
Robert

On Dec 14, 2007 2:49 AM, Michael Ströder <michael at stroeder.com> wrote:

> Robert Escorcio wrote:
> > I move the older ones (/usr/lib/) to a safe place and now I get
>
> Yupp, this is right since python-ldap 2.3.1 requires OpenLDAP 2.3.x+ to
> build.
>
> >   File "/usr/lib/python2.4/site-packages/ldap/__init__.py", line 23, in
> ?
> >     from _ldap import *
> > ImportError: liblber-2.3.so.0: cannot open shared object file: No such
> > file or directory
> >
> > which I suppose is progress.
>
> Yes, somewhat. ;-)
>
> Did you adjust the parameters 'library_dirs' and 'include_dirs' in
> setup.cfg before running python setup.py build? I guess these should
> point to /usr/local/lib and /usr/local/include.
>
> Another quick approach would be to add /usr/local/lib to your
> LD_LIBRARY_PATH.
>
> Ciao, Michael.
>
> >
> > On 12/13/07, Robert Escorcio <rescorcio at google.com> wrote:
> >> root at roberte:~/installs/python-ldap-2.3.1# find / -mount -name
> >> "liblber*" | xargs ls -l
> >> lrwxrwxrwx 1 root root     27 Feb 10  2007
> >> /usr/lib/Adobe/Acrobat7.0/Reader/intellinux/lib/liblber.so ->
> >> ../../../../../liblber.so.2
> >> lrwxrwxrwx 1 root root     21 Dec 19  2006 /usr/lib/liblber-2.2.so.7
> >> -> liblber-2.2.so.7.0.19
> >> -rw-r--r-- 1 root root  48420 Nov 20  2006 /usr/lib/liblber-
> 2.2.so.7.0.19
> >> -rw-r--r-- 1 root root  65034 Mar  6  2006 /usr/lib/liblber.a
> >> lrwxrwxrwx 1 root root     18 Dec 11 14:03 /usr/lib/liblber.so ->
> >> liblber.so.2.0.130
> >> lrwxrwxrwx 1 root root     18 Dec 19  2006 /usr/lib/liblber.so.2 ->
> >> liblber.so.2.0.130
> >> -rw-r--r-- 1 root root  46180 Mar  6  2006 /usr/lib/liblber.so.2.0.130
> >> lrwxrwxrwx 1 root root     20 Oct 10 05:43 /usr/lib64/liblber-2.2.so.7
> >> -> liblber-2.2.so.7.0.6
> >> -rwxr-xr-x 1 root root  58664 Dec 12  2006 /usr/lib64/liblber-
> 2.2.so.7.0.6
> >> lrwxrwxrwx 1 root root     20 Oct 10 05:43 /usr/lib64/liblber.so ->
> >> liblber-2.2.so.7.0.6
> >> lrwxrwxrwx 1 root root     20 Dec 12 17:14
> >> /usr/local/lib/liblber-2.3.so.0 -> liblber-2.3.so.0.0.4
> >> -rw-r--r-- 1 root root 126344 Dec 12 17:14 /usr/local/lib/liblber-
> 2.3.so.0.0.4
> >> -rw-r--r-- 1 root root 125898 Dec 12 11:26 /usr/local/lib/liblber-
> 2.3.so.0.2.27
> >> -rw-r--r-- 1 root root 169700 Dec 12 17:14 /usr/local/lib/liblber.a
> >> -rw-r--r-- 1 root root    693 Dec 12 17:14 /usr/local/lib/liblber.la
> >> lrwxrwxrwx 1 root root     20 Dec 12 17:14 /usr/local/lib/liblber.so
> >> -> liblber-2.3.so.0.0.4
> >>
> >> On 12/13/07, Michael Ströder <michael at stroeder.com> wrote:
> >>> Robert Escorcio wrote:
> >>>> I'll try building on a clean install of fedora.  Maybe its just my OS
> >>>> build that is messed up.
> >>> Maybe a library mix?
> >>> Do you have several versions of liblber on your system?
> >>> Several OpenLDAP lib versions or even Fedora DS LDAP libs?
> >>>
> >>> Ciao, Michael.
> >>>
> >>
> >> --
> >> Robert Escorcio
> >> Google Inc
>
>


-- 
Robert Escorcio
Google Inc
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ldap/attachments/20071214/15d3025a/attachment.html>


More information about the python-ldap mailing list