Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 3 Jan 2012 19:05:47 -0500
From:      Mike Fisher <mfisher@csh.rit.edu>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/163808: net/py-ldap2 requires OpenLDAP 2.4.x
Message-ID:  <201201040005.q0405lm7070057@nitrogen.son.rochester.edu>
Resent-Message-ID: <201201040310.q043AC2w057561@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jan 04 03:10:11 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     Mike Fisher
>Release:        FreeBSD 8.1-STABLE amd64
>Organization:
University of Rochester School of Nursing
>Environment:
>Description:
	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

>How-To-Repeat:
	pkg_delete openldap24-client-\*
	pkg_add net/openldap23-client
	cd /usr/ports/net/py-ldap2 && make install

>Fix:

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 @@
 MASTER_SITES=	CHEESESHOP
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
 DISTNAME=	python-ldap-${PORTVERSION}
+WANT_OPENLDAP_VER= 24
 
 MAINTAINER=	rm@FreeBSD.org
 COMMENT=	An LDAP module for python, for OpenLDAP2



>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201201040005.q0405lm7070057>