Subject: pkg/19430: imap-uw failure with kerberos
To: None <gnats-bugs@gnats.netbsd.org>
From: None <chris@cjones.org>
List: netbsd-bugs
Date: 12/17/2002 11:00:18
>Number:         19430
>Category:       pkg
>Synopsis:       imap-uw failure with kerberos
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Dec 17 10:01:01 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Chris Jones
>Release:        NetBSD 1.5.1
>Organization:
-----------------------------------------------------chris@cjones.org
Chris Jones                                          cjones@honors.montana.edu
           Mad scientist at large
"Is this going to be a stand-up programming session, sir, or another bug hunt?"
>Environment:
	
System: NetBSD rupert.honors.montana.edu 1.5.2 NetBSD 1.5.2 (GENERIC) #3: Sat Aug 18 23:37:05 CEST 2001 he@hamster.urc.uninett.no:/usr/src/sys/arch/i386/compile/GENERIC i386


>Description:
With USE_KERBEROS=YES in /etc/mk.conf, imap-uw fails to build.  It
fails to find a des symbol:

/usr/lib/libgssapi.so: undefined reference to `des_new_random_key'

>How-To-Repeat:
See above.
>Fix:
The following patch lets it build.  But it's not a well-written patch;
I think a better solution would be to add something to LDFLAGS in the
.if USE_KERBEROS block around line 32.  I haven't had any luck doing
so, but I'll be happy to test whatever anybody else comes up with.

Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/mail/imap-uw/Makefile,v
retrieving revision 1.50
diff -u -r1.50 Makefile
--- Makefile	2002/12/14 04:34:48	1.50
+++ Makefile	2002/12/17 17:53:20
@@ -62,7 +62,7 @@
 
 ALL_TARGET+=	CC="${PKGLIBTOOL} ${CC}"
 ALL_TARGET+=	EXTRACFLAGS="${CFLAGS}"
-ALL_TARGET+=	EXTRALDFLAGS="${LDFLAGS}"
+ALL_TARGET+=	EXTRALDFLAGS="${LDFLAGS} -ldes"
 .if defined(IMAP_UW_NO_CLEARTEXT) && ${IMAP_UW_NO_CLEARTEXT} == "YES"
 ALL_TARGET+=	SSLTYPE="nopwd"
 .elif !defined(IMAP_UW_NO_SSL) || ${IMAP_UW_NO_SSL} != "YES"
>Release-Note:
>Audit-Trail:
>Unformatted: