Subject: pkg/24502: databases/openldap link problems
To: None <>
From: None <>
List: netbsd-bugs
Date: 02/20/2004 18:16:43
>Number:         24502
>Category:       pkg
>Synopsis:       databases/openldap link problems
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Feb 20 17:17:00 UTC 2004
>Originator:     Jukka Salmi
>Release:        NetBSD 1.6ZK
System: NetBSD 1.6ZK NetBSD 1.6ZK (HIMO) #0: Wed Feb 18 00:27:09 CET 2004 i386
Architecture: i386
Machine: i386
On both stable (1.6.2) and -current (1.6ZK) systems databases/openldap from
current pkgsrc seems to not link various libraries. E.g. on a up-to-date
system with openldap-2.1.25nb2:
$ ldd /usr/pkg/bin/ldapsearch                                                  
	-lresolv.1 => /usr/lib/
	-lssl.3 => /usr/lib/
	-lcrypto.2 => /usr/lib/
	-lc.12 => /usr/lib/

On a system not touched for a few about three months, with openldap-2.1.22nb2:
$ ldd /usr/pkg/bin/ldapsearch  
	-llber.2 => /usr/pkg/lib/
	-lresolv.1 => /usr/lib/
	-lsasl2.2 => /usr/pkg/lib/
	-lssl.2 => /usr/lib/
	-lcrypto.1 => /usr/lib/
	-lldap.2 => /usr/pkg/lib/
	-lc.12 => /usr/lib/

On both systems security/sasl2 is installed (built with SASL_USE_GSSAPI=YES),
and openldap was built with USE_SASL2=YES.

I noticed this because on the up-to-date machine I got the followin error:
$ ldapsearch -Y gssapi                                                         
ldap_sasl_interactive_bind_s: Unknown authentication method (86)
	additional info: SASL(-4): no mechanism available: No worthy mechs found

2. build security/sasl2 and databases/openldap from current pkgsrc
3. $ ldapsearch -Y gssapi
   ldap_sasl_interactive_bind_s: Unknown authentication method (86)
while it should print:
   SASL/GSSAPI authentication started