ports/163808: net/py-ldap2 requires OpenLDAP 2.4.x

Mike Fisher mfisher at csh.rit.edu
Wed Jan 4 03:10:12 UTC 2012

>Number:         163808
>Category:       ports
>Synopsis:       net/py-ldap2 requires OpenLDAP 2.4.x
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jan 04 03:10:11 UTC 2012
>Originator:     Mike Fisher
>Release:        FreeBSD 8.1-STABLE amd64
University of Rochester School of Nursing
	The python-ldap project seems to have changed to require OpenLDAP-2.4.x around their 2.4 release. There was some discussion on their distribution list here: <http://mail.python.org/pipermail/python-ldap/2011q1/002821.html>.

Example failure:
running build_ext
building '_ldap' extension
creating temp.freebsd-8.1-STABLE-amd64-2.6
creating temp.freebsd-8.1-STABLE-amd64-2.6/Modules
cc -DNDEBUG -O2 -pipe -fno-strict-aliasing -O2 -pipe -DLDAP_DEPRECATED -fno-strict-aliasing -fPIC -DHAVE_LIBLDAP_R -DHAVE_TLS -DLDAPMODULE_VERSION=2.4.4 -IModules -I/usr/local/include -I/usr/include/sasl -I/usr/local/include/python2.6 -c Modules/LDAPObject.c -o temp.freebsd-8.1-STABLE-amd64-2.6/Modules/LDAPObject.o -g
cc -DNDEBUG -O2 -pipe -fno-strict-aliasing -O2 -pipe -DLDAP_DEPRECATED -fno-strict-aliasing -fPIC -DHAVE_LIBLDAP_R -DHAVE_TLS -DLDAPMODULE_VERSION=2.4.4 -IModules -I/usr/local/include -I/usr/include/sasl -I/usr/local/include/python2.6 -c Modules/ldapcontrol.c -o temp.freebsd-8.1-STABLE-amd64-2.6/Modules/ldapcontrol.o -g
cc -DNDEBUG -O2 -pipe -fno-strict-aliasing -O2 -pipe -DLDAP_DEPRECATED -fno-strict-aliasing -fPIC -DHAVE_LIBLDAP_R -DHAVE_TLS -DLDAPMODULE_VERSION=2.4.4 -IModules -I/usr/local/include -I/usr/include/sasl -I/usr/local/include/python2.6 -c Modules/common.c -o temp.freebsd-8.1-STABLE-amd64-2.6/Modules/common.o -g
cc -DNDEBUG -O2 -pipe -fno-strict-aliasing -O2 -pipe -DLDAP_DEPRECATED -fno-strict-aliasing -fPIC -DHAVE_LIBLDAP_R -DHAVE_TLS -DLDAPMODULE_VERSION=2.4.4 -IModules -I/usr/local/include -I/usr/include/sasl -I/usr/local/include/python2.6 -c Modules/constants.c -o temp.freebsd-8.1-STABLE-amd64-2.6/Modules/constants.o -g
Modules/constants.c: In function 'LDAPinit_constants':
Modules/constants.c:155: error: 'LDAP_OPT_DIAGNOSTIC_MESSAGE' undeclared (first use in this function)
Modules/constants.c:155: error: (Each undeclared identifier is reported only once
Modules/constants.c:155: error: for each function it appears in.)
Modules/constants.c:365: error: 'LDAP_CONTROL_RELAX' undeclared (first use in this function)
error: command 'cc' failed with exit status 1
*** Error code 1

	pkg_delete openldap24-client-\*
	pkg_add net/openldap23-client
	cd /usr/ports/net/py-ldap2 && make install


Require OpenLDAP-2.4 in the portfile:

--- Makefile.orig	2012-01-03 18:49:38.895975448 -0500
+++ Makefile	2012-01-03 18:20:44.595112961 -0500
@@ -10,6 +10,7 @@
 MAINTAINER=	rm at FreeBSD.org
 COMMENT=	An LDAP module for python, for OpenLDAP2


More information about the freebsd-ports-bugs mailing list