Bug 50867

Summary: Balsa2 depends on OpenLDAP-2.0 cache which fails under OpenLDAP-2.1
Product: Ports & Packages Reporter: J.D. <jimd_NOSPAM>
Component: Individual Port(s)Assignee: freebsd-gnome (Nobody) <gnome>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description J.D. 2003-04-12 15:40:04 UTC
	Balsa-2 libbalsa/address-book-ldap.c attempts to use "ldap_destroy_cache"
	which is defined in OpenLDAP-2.0, but not in OpenLDAP-2.1, which is
	what I use. In the same source file, an "ldap_enable_cache" is already
	commented out:

	/* ldap_enable_cache(ab->directory, LDAP_CACHE_TIMEOUT, 0); */

	For use with OpenLDAP-2.1, the "ldap_destroy_cache" statement should
	be commented out. I suggest that a make/build system flag for the
	major version of OpenLDAP installed (ports or independent) be defined
	to allow for selectivity for OpenLDAP-2.0 and OpenLDAP-2.1 functions,
	seeing as how OpenLDAP has change dramatically between 2.0 and 2.1.

	This OpenLDAP version make flag can then be used to comment out the
	"ldap_destroy_cache" when Balsa2 is being compiled in an OpenLDAP-2.1
	environment.

Fix: Specific to an OpenLDAP-2.1 environment:
Comment 1 Joe Marcus Clarke freebsd_committer freebsd_triage 2003-04-12 20:19:07 UTC
Responsible Changed
From-To: freebsd-ports-bugs->gnome

Over to maintainers.
Comment 2 Joe Marcus Clarke freebsd_committer freebsd_triage 2003-04-12 20:19:23 UTC
State Changed
From-To: open->closed

Balsa2 depends on openldap20, not 21.  Therefore, the port is correct as-is. 
If you'd like openldap21 support, please email the balsa2 author with 
your patch, and see what he can do.