From: David L. <d...@ad...> - 2004-11-18 01:16:56
|
It looks like _ldap.so module was not linked with -lber. ber_pvt_opt_on was introduced early in the openldap-2.2 branch, so OpenLDAP-2.2.17 will certainly that symbol. References: http://www.openldap.org/devel/cvsweb.cgi/libraries/liblber/options.c (1.35) d On Thu, 17 Nov 2004, Gwenaelle Demol typed thusly: > Hello David Leonard, > > I've an error when i import the product Ldap in my python2.3. Do you > recognise this error ?: > >>>> import ldap > Traceback (most recent call last): > File "<stdin>", line 1, in ? > File > "/home/user/Zopes/m8/Python/lib/python2.3/site-packages/ldap/__init__.py", line 21, in ? > from _ldap import * > ImportError: > /home/user/Zopes/m8/Python/lib/python2.3/site-packages/_ldap.so: > undefined symbol: ber_pvt_opt_on > (i use /home/user/Zopes/m8/Python/lib/python2.3 and not the python > system) > > I work on RedHat 9.0, I've installed OpenLDAP-2.2.17 > Before install your products (python-ldap-2.0.5), i've edited the file > setup.cfg with my librairies directories. > > I have no idea about this error. Can you help me ? I searched on the web > but i don't find any solution to fix it. > > Thanks very much > Gwenaelle Demol > > -- David Leonard d...@ad... Ph:+61 404 844 850 |
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? |
From: <mi...@st...> - 2007-12-12 22:45:29
|
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 > build/lib.linux-x86_64-2.4/_ldap.so Seems to be ok at first glance. But how about asking the Ubuntu maintainer first? 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? Ciao, Michael. |
From: Robert E. <res...@go...> - 2007-12-13 00:14:34
|
Where can I get 2.3.1? Looked for it on ftp://ftp.openldap.org/pub/OpenLDAP/openldap-release but the closest I could find was ftp://ftp.openldap.org/pub/OpenLDAP/openldap-release/openldap-2.3.10.tgz Googled for it and only found http://www.google.com/search?source=3Dig&hl=3Den&rlz=3D&q=3Dopenldap-2.3.1&= btnG=3DGoogle+Search I'll check 2.3.4 because its the earliest version I can find and 2.3.10 on the off chance that this is what you meant. 2007/12/12 Michael Str=F6der <mi...@st...>: > 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 > > build/lib.linux-x86_64-2.4/_ldap.so > > Seems to be ok at first glance. But how about asking the Ubuntu > maintainer first? > > 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? > > Ciao, Michael. > > --=20 Robert Escorcio Google Inc |
From: <mi...@st...> - 2007-12-13 01:02:45
|
Robert Escorcio wrote: > Where can I get 2.3.1? I meant the source distribution of python-ldap 2.3.1: http://sourceforge.net/project/showfiles.php?group_id=2072 > I'll check 2.3.4 because its the earliest version I can find and 2.3.10 > on the off chance that this is what you meant. I'm not talking about OpenLDAP libs. You need at least 2.3.something for building python-ldap 2.3.1. Ciao, Michael. |
From: Robert E. <res...@go...> - 2007-12-13 01:34:14
|
2007/12/12 Michael Str=F6der <mi...@st...>: > Robert Escorcio wrote: > > Where can I get 2.3.1? > > I meant the source distribution of python-ldap 2.3.1: > > http://sourceforge.net/project/showfiles.php?group_id=3D2072 > Oh. Sorry. Right. I was using 2.3.1 of python ldap. When I try to impor= t ldap I get File "/usr/lib/python2.4/site-packages/ldap/__init__.py", line 23, in ? from _ldap import * ImportError: /usr/lib/python2.4/site-packages/_ldap.so: undefined symbol: ber_pvt_opt_on The build and install seem to work fine (see below for details) I'll try building on a clean install of fedora. Maybe its just my OS build that is messed up. Thanks for your help! Robert PS Details: root@roberte:~/installs/python-ldap-2.3.1# python setup.py build extra_compile_args: extra_objects: include_dirs: /usr/include/sasl library_dirs: /usr/lib/sasl2 libs: ldap lber running build running build_py file Lib/ldap.py (for module ldap) not found file Lib/ldap/schema.py (for module ldap.schema) not found creating build creating build/lib.linux-i686-2.4 copying Lib/ldapurl.py -> build/lib.linux-i686-2.4 copying Lib/ldif.py -> build/lib.linux-i686-2.4 copying Lib/dsml.py -> build/lib.linux-i686-2.4 creating build/lib.linux-i686-2.4/ldap copying Lib/ldap/__init__.py -> build/lib.linux-i686-2.4/ldap copying Lib/ldap/async.py -> build/lib.linux-i686-2.4/ldap copying Lib/ldap/controls.py -> build/lib.linux-i686-2.4/ldap copying Lib/ldap/cidict.py -> build/lib.linux-i686-2.4/ldap copying Lib/ldap/dn.py -> build/lib.linux-i686-2.4/ldap copying Lib/ldap/filter.py -> build/lib.linux-i686-2.4/ldap copying Lib/ldap/functions.py -> build/lib.linux-i686-2.4/ldap copying Lib/ldap/ldapobject.py -> build/lib.linux-i686-2.4/ldap copying Lib/ldap/modlist.py -> build/lib.linux-i686-2.4/ldap copying Lib/ldap/sasl.py -> build/lib.linux-i686-2.4/ldap creating build/lib.linux-i686-2.4/ldap/schema copying Lib/ldap/schema/__init__.py -> build/lib.linux-i686-2.4/ldap/schema copying Lib/ldap/schema/models.py -> build/lib.linux-i686-2.4/ldap/schema copying Lib/ldap/schema/subentry.py -> build/lib.linux-i686-2.4/ldap/schema copying Lib/ldap/schema/tokenizer.py -> build/lib.linux-i686-2.4/ldap/schem= a file Lib/ldap.py (for module ldap) not found file Lib/ldap/schema.py (for module ldap.schema) not found running build_ext building '_ldap' extension creating build/temp.linux-i686-2.4 creating build/temp.linux-i686-2.4/Modules gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -DLDAPMODULE_VERSION=3D2.3.1 -IModules -I/usr/include/sasl -I/usr/include/python2.4 -c Modules/LDAPObject.c -o build/temp.linux- i686-2.4/Modules/LDAPObject.o gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -DLDAPMODULE_VERSION=3D2.3.1 -IModules -I/usr/include/sasl -I/usr/include/python2.4 -c Modules/ldapcontrol.c -o build/temp.linux- i686-2.4/Modules/ldapcontrol.o gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -DLDAPMODULE_VERSION=3D2.3.1 -IModules -I/usr/include/sasl -I/usr/include/python2.4 -c Modules/common.c -o build/temp.linux-i686-2.4 /Modules/common.o gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -DLDAPMODULE_VERSION=3D2.3.1 -IModules -I/usr/include/sasl -I/usr/include/python2.4 -c Modules/constants.c -o build/temp.linux-i686-2.= 4 /Modules/constants.o gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -DLDAPMODULE_VERSION=3D2.3.1 -IModules -I/usr/include/sasl -I/usr/include/python2.4 -c Modules/errors.c -o build/temp.linux-i686-2.4 /Modules/errors.o gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -DLDAPMODULE_VERSION=3D2.3.1 -IModules -I/usr/include/sasl -I/usr/include/python2.4 -c Modules/functions.c -o build/temp.linux-i686-2.= 4 /Modules/functions.o gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -DLDAPMODULE_VERSION=3D2.3.1 -IModules -I/usr/include/sasl -I/usr/include/python2.4 -c Modules/schema.c -o build/temp.linux-i686-2.4 /Modules/schema.o gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -DLDAPMODULE_VERSION=3D2.3.1 -IModules -I/usr/include/sasl -I/usr/include/python2.4 -c Modules/ldapmodule.c -o build/temp.linux- i686-2.4/Modules/ldapmodule.o gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -DLDAPMODULE_VERSION=3D2.3.1 -IModules -I/usr/include/sasl -I/usr/include/python2.4 -c Modules/message.c -o build/temp.linux-i686-2.4 /Modules/message.o gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -DLDAPMODULE_VERSION=3D2.3.1 -IModules -I/usr/include/sasl -I/usr/include/python2.4 -c Modules/version.c -o build/temp.linux-i686-2.4 /Modules/version.o gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -DLDAPMODULE_VERSION=3D2.3.1 -IModules -I/usr/include/sasl -I/usr/include/python2.4 -c Modules/options.c -o build/temp.linux-i686-2.4 /Modules/options.o Modules/options.c: In function 'LDAP_get_option': Modules/options.c:125: warning: unused variable 'doubleval' gcc -pthread -shared build/temp.linux-i686-2.4/Modules/LDAPObject.o build/temp.linux-i686-2.4/Modules/ldapcontrol.o build/temp.linux-i686-2.4/Modules/common.o build/temp.linux-i686-2.4/Modules/constants.o build/temp.linux-i686-2.4/Modules/errors.o build/temp.linux-i686-2.4/Modules/functions.o build/temp.linux-i686-2.4/Modules/schema.o build/temp.linux-i686-2.4/Modules/ldapmodule.o build/temp.linux-i686-2.4/Modules/message.o build/temp.linux-i686-2.4/Modules/version.o build/temp.linux-i686-2.4/Modules/options.o -L/usr/lib/sasl2 -Wl,-R/usr/lib/sasl2 -lldap -llber -o build/lib.linux- i686-2.4/_ldap.so root@roberte:~/installs/python-ldap-2.3.1# python setup.py install extra_compile_args: extra_objects: include_dirs: /usr/include/sasl library_dirs: /usr/lib/sasl2 libs: ldap lber running install running build running build_py file Lib/ldap.py (for module ldap) not found file Lib/ldap/schema.py (for module ldap.schema) not found file Lib/ldap.py (for module ldap) not found file Lib/ldap/schema.py (for module ldap.schema) not found running build_ext running install_lib copying build/lib.linux-i686-2.4/_ldap.so -> /usr/lib/python2.4/site-packages writing byte-compilation script '/tmp/tmpyS3HrD.py' /usr/bin/python -O /tmp/tmpyS3HrD.py removing /tmp/tmpyS3HrD.py > > > I'll check 2.3.4 because its the earliest version I can find and 2.3.10 > > on the off chance that this is what you meant. > > I'm not talking about OpenLDAP libs. You need at least 2.3.something for > building python-ldap 2.3.1. > > Ciao, Michael. > --=20 Robert Escorcio Google Inc |
From: <mi...@st...> - 2007-12-13 11:29:22
|
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. |
From: Robert E. <res...@go...> - 2007-12-13 17:29:41
|
root@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=F6der <mi...@st...> 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. > --=20 Robert Escorcio Google Inc |
From: Robert E. <res...@go...> - 2007-12-13 17:46:58
|
I move the older ones (/usr/lib/) to a safe place and now I get 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. On 12/13/07, Robert Escorcio <res...@go...> wrote: > root@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=F6der <mi...@st...> 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 > --=20 Robert Escorcio Google Inc |
From: <mi...@st...> - 2007-12-14 10:49:32
|
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 <res...@go...> wrote: >> root@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 <mi...@st...> 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 |
From: Robert E. <res...@go...> - 2007-12-14 16:05:27
|
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 neve= r seem to be able to figure out stuff like that :) Thanks again. Robert On Dec 14, 2007 2:49 AM, Michael Str=F6der <mi...@st...> 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 <res...@go...> wrote: > >> root@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=F6der <mi...@st...> wrote: > >>> Robert Escorcio wrote: > >>>> I'll try building on a clean install of fedora. Maybe its just my O= S > >>>> 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 > > --=20 Robert Escorcio Google Inc |