Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Solaris11: Problems with compiling python-ldap

186 views
Skip to first unread message

Thomas Feuerstack

unread,
Oct 26, 2012, 6:35:59 AM10/26/12
to
Hi,

i'm trying to setup the python-ldap-2.4.10 on Solaris 11. But when i run

python setup.py build

it ends with a

Modules/LDAPObject.c:634: error: `LDAP_SASL_QUIET' undeclared (first
use in this function)

As far as i see, the following environment is available on that machine:

runtime/python-26 2.6.4-0.175.0.0.0.2.537

system/library/security/libsasl 0.5.11-0.175.0.0.0.2.1

developer/gcc-3 3.4.3-0.175.0.0.0.2.537

At the moment, i'm quite uncertain, who's the causer of this error, and
how to come arround it (compile and install python-27 and/or sasl from
scratch?).

I would be glad, if someone could give me a hint, what could i do next.

thanks for your help - Thomas

Thomas Feuerstack

unread,
Oct 26, 2012, 7:30:15 AM10/26/12
to
Am 26.10.2012 12:35, schrieb Thomas Feuerstack:

> Modules/LDAPObject.c:634: error: `LDAP_SASL_QUIET' undeclared (first
> use in this function)

Got it - i had to add /usr/include/openldap to the search path in front
of /usr/include .

Both directories contain a file ldap.h , but the most recent one seems
to be the one in /usr/include/openldap .

Having done this, the error went away...

Chris Ridd

unread,
Oct 26, 2012, 2:15:32 PM10/26/12
to
I don't think it is a recent-ness thing - Solaris comes with Netscape's
LDAP libraries and headers, and python-ldap is obviously expecting
OpenLDAP's versions instead.
--
Chris

0 new messages