Re: undefined symbol: ber_pvt_opt_on
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 <[EMAIL PROTECTED]> wrote: >> [EMAIL PROTECTED]:~/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 root693 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 <[EMAIL PROTECTED]> 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 - 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
Re: undefined symbol: ber_pvt_opt_on
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 <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]> wrote: > >> [EMAIL PROTECTED]:~/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 root693 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 <[EMAIL PROTECTED]> 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 - 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
Local Error in simple_bind_s();
When I run this Python script under either 2.5 or 2.4:
import ldap
ds = ldap.initialize("ldap://foobar.ibm.com:636";)
ds.protocol_version = ldap.VERSION2
ds.simple_bind_s()
I get this error:
Traceback (most recent call last):
File "test.py", line 13, in
ds.simple_bind_s();
File "/usr/lib/python2.5/site-packages/ldap/ldapobject.py", line 199, in
simple_bind_s
return self.result(msgid,all=1,timeout=self.timeout)
File "/usr/lib/python2.5/site-packages/ldap/ldapobject.py", line 428, in
result
res_type,res_data,res_msgid = self.result2(msgid,all,timeout)
File "/usr/lib/python2.5/site-packages/ldap/ldapobject.py", line 432, in
result2
res_type, res_data, res_msgid, srv_ctrls =
self.result3(msgid,all,timeout)
File "/usr/lib/python2.5/site-packages/ldap/ldapobject.py", line 438, in
result3
rtype, rdata, rmsgid, serverctrls =
self._ldap_call(self._l.result3,msgid,all,timeout)
File "/usr/lib/python2.5/site-packages/ldap/ldapobject.py", line 97, in
_ldap_call
result = func(*args,**kwargs)
ldap.LOCAL_ERROR: {'desc': 'Local error'}
But OpenLDAP commands work fine from the command prompt:
ldapsearch -h foobar.ibm.com -P 2 -x -b "ou=bluepages,o=ibm.com" -s sub
"(sn=Test)" cn tieline
Any ideas? I can't figure out what would cause a "Local error" from the
source code.
I am using the python-ldap package on Ubuntu Gutsy.
Regards,
Leons Petrazickis
http://lpetr.org/blog/
-
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
