A Query Regarding Python Ldap Form Suman

skaich skaich at ontrackindia.com
Fri Aug 30 12:55:32 CEST 2002


Hello
Sir

I have recently downloded  python-ldap-2.0.0pre05.tar.gz from source  forge website. I insalled Python 2.1.2 and Openldap 2.1.4 but when I try to compile the following error message is coming :


suse:/usr/local/zope/python-ldap-2.0.0pre05 # /usr/local/bin/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 -g -O2 -Wall -Wstrict-prototypes -fPIC -DHAVE_LDAP_START_TLS_S -DLDAPMODULE_VERSION=2.0.0pre05 -IModules -I/usr/local/openldap2/include -I/usr/local/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:176: `LDAP_FILT_MAXSIZ' undeclared (first use in this function)
Modules/constants.c:176: (Each undeclared identifier is reported only once
Modules/constants.c:176: for each function it appears in.)
error: command 'gcc' failed with exit status 1

I have installed  openldap in
/usr/local/openldap and I have the following changes the setup.cfg file

[_ldap]

class = OpenLDAP2

library_dirs = /usr/local/openldap2/lib
include_dirs = /usr/local/openldap2/include




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ldap/attachments/20020830/439de5c6/attachment.html>


More information about the python-ldap mailing list