Benutzer-Werkzeuge

Webseiten-Werkzeuge


rhel:python-ldap
  • Centos 4.4, python-2.4.3 in /usr/local
  • python-ldap-2.3.5 mit folgendem Error beim build:
Modules/constants.c: In function `LDAPinit_constants':
Modules/constants.c:179: error: `LDAP_OPT_X_TLS_CRLCHECK' undeclared (first use in this function)
Modules/constants.c:179: error: (Each undeclared identifier is reported only once
Modules/constants.c:179: error: for each function it appears in.)
Modules/constants.c:180: error: `LDAP_OPT_X_TLS_CRL_NONE' undeclared (first use in this function)
Modules/constants.c:181: error: `LDAP_OPT_X_TLS_CRL_PEER' undeclared (first use in this function)
Modules/constants.c:182: error: `LDAP_OPT_X_TLS_CRL_ALL' undeclared (first use in this function)
error: command 'gcc' failed with exit status 1

Workaround: diese vier Zeilen in constants.c auskommentieren:

179c179
< /*	add_int(d,OPT_X_TLS_CRLCHECK);
---
> 	add_int(d,OPT_X_TLS_CRLCHECK);
182c182
< 	add_int(d,OPT_X_TLS_CRL_ALL); */
---
> 	add_int(d,OPT_X_TLS_CRL_ALL);
rhel/python-ldap.txt · Zuletzt geändert: 2011/09/23 11:13 von 2007