Bug 184667 - mail/dovecot PATCH (needs -lgssapi_krb5 for GSSAPI on FreeBSD 10)
Summary: mail/dovecot 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: 2013-12-10 18:10 UTC by Adam McDougall
Modified: 2014-01-30 22:10 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Adam McDougall 2013-12-10 18:10:00 UTC
--- dovecot-auth ---
libtool: link: cc -std=gnu99 -O2 -pipe -fstack-protector -fno-strict-aliasing -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith -Wchar-subscripts -Wformat=2 -Wbad-function-cast -Wstrict-aliasing=2 -fstack-protector -o dovecot-auth auth.o auth-cache.o auth-client-connection.o auth-master-connection.o auth-master-listener.o auth-request.o auth-request-handler.o auth-stream.o auth-worker-client.o auth-worker-server.o db-checkpassword.o db-sql.o db-passwd-file.o main.o mech.o mech-anonymous.o mech-plain.o mech-login.o mech-cram-md5.o mech-digest-md5.o mech-external.o mech-gssapi.o mech-ntlm.o mech-otp.o mech-skey.o mech-rpa.o mech-apop.o mech-winbind.o otp-skey-common.o plain-common.o passdb.o passdb-blocking.o passdb-bsdauth.o passdb-cache.o passdb-checkpassword.o passdb-passwd.o passdb-passwd-file.o passdb-pam.o passdb-shadow.o passdb-sia.o passdb-vpopmail.o passdb-sql.o userdb.o userdb-blocking.o userdb-checkpassword.o userdb-nss.o userdb-passwd.o userdb-passwd-file
 .o userdb-prefetch.o userdb-static.o userdb-vpopmail.o userdb-sql.o db-ldap.o passdb-ldap.o userdb-ldap.o -pthread -Wl,--export-dynamic  -L/usr/local/lib libpassword.a ../lib-settings/libsettings.a ../lib-ntlm/libntlm.a ../lib-otp/libotp.a ../lib-sql/libsql.a ../lib/liblib.a -lpam -L/usr/lib -lgssapi -lheimntlm -lkrb5 -lhx509 -lcom_err -lcrypto -lasn1 -lwind -lheimbase -lroken -lcrypt -lrt -pthread
mech-gssapi.o: In function `mech_gssapi_auth_continue':
mech-gssapi.c:(.text+0xae2): undefined reference to `__gss_krb5_nt_principal_name_oid_desc'
mech-gssapi.c:(.text+0xaef): undefined reference to `__gss_krb5_nt_principal_name_oid_desc'
cc: error: linker command failed with exit code 1 (use -v to see invocation)
*** [dovecot-auth] Error code 1

Fix: 

Add:
LDFLAGS+=               -lgssapi_krb5

to the Makefile inside the .if ${PORT_OPTIONS:MGSSAPI} section.  The fix is very similar to recent SVN r335618 to bind ports.
How-To-Repeat: Compile mail/dovecot on 10 with GSSAPI option enabled
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2013-12-10 18:10:07 UTC
Maintainer of mail/dovecot,

Please note that PR ports/184667 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/184667

-- 
Edwin Groothuis via the GNATS Auto Assign Tool
edwin@FreeBSD.org
Comment 2 Edwin Groothuis freebsd_committer freebsd_triage 2013-12-10 18:10:08 UTC
State Changed
From-To: open->feedback

Awaiting maintainers feedback (via the GNATS Auto Assign Tool)
Comment 3 Pawel Pekala freebsd_committer freebsd_triage 2014-01-30 21:56:00 UTC
Responsible Changed
From-To: freebsd-ports-bugs->pawel

I'll take it.
Comment 4 dfilter service freebsd_committer freebsd_triage 2014-01-30 22:05:14 UTC
Author: pawel
Date: Thu Jan 30 22:05:06 2014
New Revision: 341892
URL: http://svnweb.freebsd.org/changeset/ports/341892
QAT: https://qat.redports.org/buildarchive/r341892/

Log:
  Fix linking on FreeBSD 10 when GSSAPI=on
  
  PR:		ports/184667
  Submitted by:	Adam McDougall <mcdouga9@egr.msu.edu>
  Approved by:	maintainer timeout

Modified:
  head/mail/dovecot/Makefile

Modified: head/mail/dovecot/Makefile
==============================================================================
--- head/mail/dovecot/Makefile	Thu Jan 30 22:03:16 2014	(r341891)
+++ head/mail/dovecot/Makefile	Thu Jan 30 22:05:06 2014	(r341892)
@@ -107,6 +107,7 @@ DOCS+=			README.managesieve
 #
 .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-01-30 22:05:18 UTC
State Changed
From-To: feedback->closed

Committed. Thanks!