From: <ein...@gm...> - 2007-05-09 13:18:16
|
trying to build on debian etch, with ssl, I get this error: ldap-python version is 2.3 python-version is 2.4.4 openssl and sasl are installed Modules/constants.c: In function =E2LDAPinit_constants=E2: Modules/constants.c:178: error: =E2LDAP_OPT_X_TLS_CRLCHECK=E2 undeclared (f= irst use in this function) Modules/constants.c:178: error: (Each undeclared identifier is reported onl= y once Modules/constants.c:178: error: for each function it appears in.) Modules/constants.c:179: error: =E2LDAP_OPT_X_TLS_CRL_NONE=E2 undeclared (f= irst use in this function) Modules/constants.c:180: error: =E2LDAP_OPT_X_TLS_CRL_PEER=E2 undeclared (f= irst use in this function) Modules/constants.c:181: error: =E2LDAP_OPT_X_TLS_CRL_ALL=E2 undeclared (fi= rst use in this function) Modules/constants.c:207: error: =E2LDAP_AVA_NULL=E2 undeclared (first use i= n this function) error: command 'gcc' failed with exit status 1 I have an earlier version of python-ldap, 2.0-pre19 (I I remember correctly= ) which is no trouble at all installing. any help apreciated Best regards --=20 --=20 Einar N=E6ss Jensen http://einarblog.homemade.no/einarblog http://www.homemade.no tlf: +47 90990249 (\__/) (=3D'.'=3D)This is Bunny. Copy and paste bunny into your (")_(")signature to help him gain world domination. |
From: Matej V. <ve...@de...> - 2007-05-09 15:13:58
|
"Einar N=E6ss Jensen" <ein...@gm...> writes: > trying to build on debian etch, with ssl, I get this error: > ldap-python version is 2.3 > python-version is 2.4.4 > openssl and sasl are installed > > Modules/constants.c: In function *LDAPinit_constants*: > Modules/constants.c:178: error: *LDAP_OPT_X_TLS_CRLCHECK* undeclared > (first use in this function) [...] > > I have an earlier version of python-ldap, 2.0-pre19 (I I remember > correctly) which is no trouble at all installing. The current version of python-ldap requires version 2.3.0 of OpenLDAP libraries, while Etch provides 2.1.30. (AFAIK, this is mostly due to compatibility problems that would arise if an application simultaneously used differing versions of libldap and libnss-ldap. Etch does ship with slapd 2.3.30.) If you don't mind using a slightly older version (2.2.1), simply install the Debian package: # apt-get install python-ldap If you'd like to compile your own, apply the Debian patch from <http://ftp.debian.org/debian/pool/main/p/python-ldap/python-ldap_2.3-2.dif= f.gz>. Cheers, Matej |
From: <mi...@st...> - 2007-05-10 09:42:06
|
Matej Vela wrote: > > If you'd like to compile your own, apply the Debian patch from > <http://ftp.debian.org/debian/pool/main/p/python-ldap/python-ldap_2.3-2.diff.gz>. This is quite a large patch set. I worry that somebody here claims to use python-ldap 2.3 but it's heavily patched like this. => I won't give support to Debian users anymore. I simply can't overlook all the changes made therein. Note that even OpenLDAP 2.2 is set to historic status by its developers. 2.1 is unmaintained since years. So there are currently no more fixes to OpenLDAP 2.2 and prior versions anymore. This also affects the client libs. Instead of putting so much effort into preserving backwards compability of python-ldap to OpenLDAP 2.1 you should rather do the work to consequenty update all Debian packages to use OpenLDAP 2.3. There have been so many important fixes in the client libs. Ciao, Michael. |
From: Matej V. <ve...@de...> - 2007-05-10 11:44:06
|
Michael Str=F6der <mi...@st...> writes: > Matej Vela wrote: > >> If you'd like to compile your own, apply the Debian patch from >> <http://ftp.debian.org/debian/pool/main/p/python-ldap/python-ldap_2.3-2.= diff.gz>. > > This is quite a large patch set. I worry that somebody here claims to > use python-ldap 2.3 but it's heavily patched like this. I'm not sure how closely you looked, but most of it is packaging-related -- the equivalent of an RPM .spec file. debian/patches/openldap_2.1.diff is the one exception, and it's less that 3 KB. Apart from disabling unsupported option flags (LDAP_OPT_X_TLS_*), I don't think it significantly alters functionality. > =3D> I won't give support to Debian users anymore. I simply can't overlook > all the changes made therein. I understand. Feel free to direct queries from Debian and Ubuntu users to <pyt...@pa...>. As you can see, I already keep an eye on python-ldap-dev. > Note that even OpenLDAP 2.2 is set to historic status by its developers. > 2.1 is unmaintained since years. So there are currently no more fixes to > OpenLDAP 2.2 and prior versions anymore. This also affects the client lib= s. > > Instead of putting so much effort into preserving backwards compability > of python-ldap to OpenLDAP 2.1 you should rather do the work to > consequenty update all Debian packages to use OpenLDAP 2.3. There have > been so many important fixes in the client libs. I know. Hopefully this will be fixed in the next release. Cheers, Matej |