Build Errors (LDAP_OPT_X... undeclared)

Torsten Kurbad python-ldap at tk-webart.de
Fri Sep 14 00:18:43 CEST 2007


On Thursday, September 13, 2007 at 23:27 Eric Carty-Fickes wrote:

> I am trying to build python-ldap (2.3.1) on a RH Linux box.  I
> installed openldap (2.3.38) from source with the default settings and
                     ^^^^^^^^
                     
> include_dirs = /home/eric/openldap-2.2.13/include /usr/include/sasl
                                    ^^^^^^^^

Why do you try to build with 2.2.13 headers, although you already
installed 2.3.38?

I had similar problems when building python-ldap on Mac OSX, where
openldap 2.2.x is installed by default. Simply "stealing" the 2.3
headers from a Linux system did the trick there.

Thus, point include_dirs to the location of your 2.3 headers (presumably
/usr/local/include, if you installed from source) and everything should
work like a charm.

Torsten
-- 
Never make anything simple and efficient when a way can be found to
make it complex and wonderful.              - Murphy's Law No. 13 -





More information about the python-ldap mailing list