Bug 186745 - mail/dovecot2 PATCH (needs -lgssapi_krb5 for GSSAPI on FreeBSD 10)
Summary: mail/dovecot2 PATCH (needs -lgssapi_krb5 for GSSAPI on FreeBSD 10)
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Pawel Pekala
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-02-13 20:00 UTC by Jyrki Ahpola
Modified: 2014-03-15 14:40 UTC (History)
0 users

See Also:


Attachments
file.diff (306 bytes, patch)
2014-02-13 20:00 UTC, Jyrki Ahpola
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jyrki Ahpola 2014-02-13 20:00:00 UTC
--- 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

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:
How-To-Repeat: Compile mail/dovecot2 on 10 with GSSAPI option enabled
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2014-02-13 20:00:08 UTC
State Changed
From-To: open->feedback

Awaiting maintainers feedback (via the GNATS Auto Assign Tool)
Comment 2 Edwin Groothuis freebsd_committer freebsd_triage 2014-02-13 20:00:08 UTC
Maintainer of mail/dovecot2,

Please note that PR ports/186745 has just been submitted.

If it contains a patch for an upgrade, an enhancement or a bug fix
you agree on, reply to this email stating that you approve the patch
and a committer will take care of it.

The full text of the PR can be found at:
    http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/186745

-- 
Edwin Groothuis via the GNATS Auto Assign Tool
edwin@FreeBSD.org
Comment 3 Pawel Pekala freebsd_committer freebsd_triage 2014-03-15 14:23:58 UTC
Responsible Changed
From-To: freebsd-ports-bugs->pawel

I'll take it.
Comment 4 dfilter service freebsd_committer freebsd_triage 2014-03-15 14:31:55 UTC
Author: pawel
Date: Sat Mar 15 14:31:48 2014
New Revision: 348327
URL: http://svnweb.freebsd.org/changeset/ports/348327
QAT: https://qat.redports.org/buildarchive/r348327/

Log:
  Fix linking on FreeBSD 10 when GSSAPI=on
  
  PR:		ports/186745
  Submitted by:	Jyrki Ahpola <jyrkia@gmail.com>
  Approved by:	maintainer timeout

Modified:
  head/mail/dovecot2/Makefile

Modified: head/mail/dovecot2/Makefile
==============================================================================
--- head/mail/dovecot2/Makefile	Sat Mar 15 14:08:07 2014	(r348326)
+++ head/mail/dovecot2/Makefile	Sat Mar 15 14:31:48 2014	(r348327)
@@ -101,6 +101,7 @@ CONFIGURE_ARGS+=--without-ssl
 #
 .if ${PORT_OPTIONS:MGSSAPI}
 CONFIGURE_ARGS+=--with-gssapi
+LDFLAGS+=	-lgssapi_krb5
 .else
 CONFIGURE_ARGS+=--without-gssapi
 .endif
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
Comment 5 Pawel Pekala freebsd_committer freebsd_triage 2014-03-15 14:32:12 UTC
State Changed
From-To: feedback->closed

Committed. Thanks!