ldap compile problem?

Alex Andru alex.andru at gmx.net
Mon Sep 9 15:08:32 EDT 2002


hallo,

i have downloaded the python ldap driver but have problems to make build on
my mandrake 8.1 linux?
does anybody have an idea what is wrong?
i get the  same err message also on cygwin?

thanks for help,
alex


[alex at io python-ldap-2.0.0pre05]$ python setup.py build
running build
running build_py
warning: build_py: file Lib/ldap.py (for module ldap) not found
not copying Lib/ldap/__init__.py (output up-to-date)
not copying Lib/ldap/async.py (output up-to-date)
not copying Lib/ldap/functions.py (output up-to-date)
not copying Lib/ldap/sasl.py (output up-to-date)
not copying Lib/ldap/schema.py (output up-to-date)
not copying Lib/ldap/ldapobject.py (output up-to-date)
not copying Lib/ldap/modlist.py (output up-to-date)
not copying Lib/ldapurl.py (output up-to-date)
not copying Lib/ldif.py (output up-to-date)
warning: build_py: file Lib/ldap.py (for module ldap) not found
running build_ext
building '_ldap' extension
skipping Modules/LDAPObject.c (build/temp.linux-i686-2.1/LDAPObject.o
up-to-date)
skipping Modules/common.c (build/temp.linux-i686-2.1/common.o up-to-date)
gcc -O3 -fomit-frame-pointer -pipe -mcpu=pentiumpro -march=i586 -ffast-math 
-fno-strength-reduce -fPIC -DHAVE_LDAP_START_TLS_S -DLDAPMODULE_VERSION=2.0.
0pre05 -IModules -I/usr/local/openldap2/include -I/usr/include/python2.1 -c
Modules/constants.c -o build/temp.linux-i686-2.1/constants.o
Modules/constants.c: In function `LDAPinit_constants':
Modules/constants.c:159: `LDAP_SCOPE_DEFAULT' undeclared (first use in this
function)
Modules/constants.c:159: (Each undeclared identifier is reported only once
Modules/constants.c:159: for each function it appears in.)
error: command 'gcc' failed with exit status 1






More information about the Python-list mailing list