undefined symbol: ber_pvt_opt_on

Robert Escorcio rescorcio at google.com
Thu Dec 13 02:34:10 CET 2007


2007/12/12 Michael Ströder <michael at stroeder.com>:

> 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
>

Oh.  Sorry.  Right.  I was using 2.3.1 of python ldap.  When I try to import
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 at 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/schema
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=2.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=2.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=2.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=2.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=2.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=2.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=2.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=2.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=2.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=2.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=2.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 at 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.
>



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


More information about the python-ldap mailing list