[prev in list] [next in list] [prev in thread] [next in thread] 

List:       python-ldap-dev
Subject:    Re: error when build and install
From:       Matej Vela <vela () debian ! org>
Date:       2007-05-09 15:13:40
Message-ID: 87fy66t4gr.fsf () slavuj ! carpriv ! carnet ! hr
[Download RAW message or body]

"Einar Nęss Jensen" <einar.nass.jensen@gmail.com> 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.diff.gz>.

Cheers,

Matej

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Python-LDAP-dev mailing list
Python-LDAP-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/python-ldap-dev

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic