Bug#76717: 1.10alpha3 compiles against OpenLDAP 1 but not 2

Stephane Bortzmeyer bortzmeyer at netaktiv.com
Sun Apr 22 21:28:21 CEST 2001

I can compile 1.0alpha3 without any problem on my Debian 2.2
("potato") machine (this is OpenLDAP version 1) but, on a future-2.3
("woody") machine, which has OpenLDAP 2:

% gcc -fPIC  -I. -DLDAP_REFERRALS -g -O2 -Wall -Wstrict-prototypes -I/usr/include/python2.0 -I/usr/include/python2.0 -DHAVE_CONFIG_H -c /home/bortzmeyer/tmp/python-ldap-1.10alpha3/Modules/constants.c
/home/bortzmeyer/tmp/python-ldap-1.10alpha3/Modules/constants.c: In function `LDAPinit_constants':
/home/bortzmeyer/tmp/python-ldap-1.10alpha3/Modules/constants.c:69: `LDAP_MAX_ATTR_LEN' undeclared (first use in this function)
/home/bortzmeyer/tmp/python-ldap-1.10alpha3/Modules/constants.c:69: (Each undeclared identifier is reported only once
/home/bortzmeyer/tmp/python-ldap-1.10alpha3/Modules/constants.c:69: for each function it appears in.)
/home/bortzmeyer/tmp/python-ldap-1.10alpha3/Modules/constants.c:82: `LDAP_REQ_UNBIND_30' undeclared (first use in this function)

Rightly, I do not find these symbols anywhere in OpenLDAP header

I've read the archives of the mailing list and noted the thread
"compiling against OpenLDAP 2.0.7" last month but I'm pessimistic: it
seems there is no known solution.

Is is incredible that OpenLDAP 2 is still not supported. Is the
software dead? Is there another Python-LDAP solution? <troll>Should I
program in Perl?</troll>

To UNSUBSCRIBE, email to debian-bugs-dist-request at lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster at lists.debian.org

More information about the python-ldap mailing list