ports/97431: dns/powerdns doesn't build with LDAP backend

Ralf van den Enden Ralf.vdEnden at wldelft.nl
Thu May 18 13:40:22 UTC 2006


The following reply was made to PR ports/97431; it has been noted by GNATS.

From: "Ralf van den Enden" <Ralf.vdEnden at wldelft.nl>
To: <bug-followup at FreeBSD.org>, <koellmann at gmx.net>
Cc:  
Subject: Re: ports/97431: dns/powerdns doesn't build with LDAP backend
Date: Thu, 18 May 2006 15:37:54 +0200

 Starting with OpenLDAP 2.2.x and up (2.3 and 2.4) some functions have been 
 marked deprecated. However, in 2.2.x  those functions are still included due 
 to a #define statement in ldap.h.
 
 For 2.3+ this define needs to be passed along to the compiler by hand. To 
 fix your issue do the following:
 
 - Open /usr/ports/dns/powerdns/Makefile with your favorite editor.
 - Look for WITH_LDAP and within that block of code for 
 XXFLAGS+=  -L${LOCALBASE}/lib
 - Replace that with CXXFLAGS+=    -L${LOCALBASE}/lib -DLDAP_DEPRECATED=1
 - Rebuild the port and it should work now
 
 I'll include this fix ASAP in the regular port, but I'm still waiting for 
 some other adjustments to be commited, so I'm not sure how long that'll 
 take.
 
 Hope this helped.
 
 Best regards,
 Ralf 
 



More information about the freebsd-ports-bugs mailing list