Isabelle Moullet wrote:
>
> I got the following error message as I tried to install python-ldap 2.0.0pre04
> release on a 2.8 Solaris machine with the command :python setup.py build
Did you install the required OpenLDAP 2 libs before? If yes, did
you make sure that they don't conflict with Netscape/iPlanet LDAP
libs probably shipped with Solaris? Check which libldap is really
used.
> [_ldap]
> class = OpenLDAP2
> library_dirs = /usr/local/lib
> include_dirs = /usr/local/include
I'd suggest that you build OpenLDAP 2.0.x with
--prefix=/usr/local/openldap2 and modify setup.cfg accordingly.
library_dirs = /usr/local/openldap2/lib
include_dirs = /usr/local/openldap2/include
> cc -O -DLDAP_TYPE_IS_OPAQUE -DHAVE_LDAP_DESTROY_CACHE
-DHAVE_LDAP_DISABLE_CACHE-DHAVE_LDAP_ENABLE_CACHE
-DHAVE_LDAP_FLUSH_CACHE -DHAVE_LDAP_MODRDN2 -DHAVE_LDA_MODRDN2_S
-DHAVE_LDAP_SET_CACHE_OPTIONS -DHAVE_LDAP_START_TLS_S
-DHAVE_LDAP_UNACHE_ENTRY -DHAVE_LDAP_UNCACHE_REQUEST
-DLDAPMODULE_VERSION=2.0.0pre04 -IModule -I/usr/local/include
-I/usr/local/include/python2.0 -c Modules/LDAPObject.c
-obuild/temp.solaris-2.8-sun4u-2.0/Modules/LDAPObject.o
> "Modules/LDAPObject.c", line 900: warning: syntax error: empty
declaration
> "Modules/LDAPObject.c", line 918: undefined symbol:
LDAP_CONTROL_MANAGEDSAIT
> "Modules/LDAPObject.c", line 918: warning: improper
pointer/integer combination op "="
> "Modules/LDAPObject.c", line 936: warning: syntax error: empty
declaration
> cc: acomp failed for Modules/LDAPObject.c
> error: command 'cc' failed with exit status 2
I guess you're using Sun's C compiler. Right? Hmm, anyone here
having experience with that?
> Is it normal he could not find th efile Lib/ldap.py ?
Yes, this message is caused by a limitation of DistUtils.
Ciao, Michael.
|