Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 13 Feb 2014 19:54:28 GMT
From:      Jyrki Ahpola <jyrkia@gmail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/186745: mail/dovecot2 PATCH (needs -lgssapi_krb5 for GSSAPI on FreeBSD 10)
Message-ID:  <201402131954.s1DJsSj1067589@cgiserv.freebsd.org>
Resent-Message-ID: <201402132000.s1DK007s042620@freefall.freebsd.org>

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

>Number:         186745
>Category:       ports
>Synopsis:       mail/dovecot2 PATCH (needs -lgssapi_krb5 for GSSAPI on FreeBSD 10)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Feb 13 20:00:00 UTC 2014
>Closed-Date:
>Last-Modified:
>Originator:     Jyrki Ahpola
>Release:        10.0-RELEASE
>Organization:
>Environment:
FreeBSD pc225 10.0-RELEASE FreeBSD 10.0-RELEASE #0 r260789: Thu Jan 16 22:34:59 UTC 2014     root@snap.freebsd.org:/usr/obj/usr/src/sys/GENERIC  amd64
>Description:
--- auth ---
mech-gssapi.o: In function `gssapi_credentials_callback':
mech-gssapi.c:(.text+0xec4): undefined reference to `__gss_krb5_nt_principal_name_oid_desc'
mech-gssapi.c:(.text+0xed1): undefined reference to `__gss_krb5_nt_principal_name_oid_desc'
cc: error: linker command failed with exit code 1 (use -v to see invocation)
*** [auth] Error code 1


>How-To-Repeat:
Compile mail/dovecot2 on 10 with GSSAPI option enabled

>Fix:
Same with mail/dovecot http://www.freebsd.org/cgi/query-pr.cgi?pr=184667&cat=ports

Add:
LDFLAGS+= -lgssapi_krb5

to the Makefile inside the .if ${PORT_OPTIONS:MGSSAPI} section.

Patch attached with submission follows:

Index: Makefile
===================================================================
--- Makefile    (revision 344139)
+++ Makefile    (working copy)
@@ -101,6 +101,7 @@
 #
 .if ${PORT_OPTIONS:MGSSAPI}
 CONFIGURE_ARGS+=--with-gssapi
++LDFLAGS+= -lgssapi_krb5
 .else
 CONFIGURE_ARGS+=--without-gssapi
 .endif


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



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