Bug 184560 - dns/bind99 compile failure using set GSSAPI or unset XML
Summary: dns/bind99 compile failure using set GSSAPI or unset XML
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: Erwin Lansing
Depends on:
Reported: 2013-12-07 09:30 UTC by dewayne
Modified: 2013-12-10 10:10 UTC (History)
0 users

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description dewayne 2013-12-07 09:30:00 UTC
Samba4 now requires bind with gssapi to maintain DNS securely. Using options
unset GSSAPI
bind99 compiles and builds correctly.

However with wither set GSSAPI, the compilation fails as follows:

make __MAKE_CONF=/dev/null -DBATCH 
checking for gcc... cc
checking whether the C compiler works... no
configure: error: in `/var/ports/usr/ports/dns/bind99/work/bind-9.9.4':
configure: error: C compiler cannot create executables
See `config.log' for more details
===>  Script "configure" failed unexpectedly.
Please report the problem to erwin@FreeBSD.org [maintainer] and attach the
"/var/ports/usr/ports/dns/bind99/work/bind-9.9.4/config.log" including the
output of the failure of your make command. Also, it might be a good idea to
provide an overview of all packages installed on your system (e.g. a
/usr/sbin/pkg_info -Ea).
*** [do-configure] Error code 1

An erroneous message, as it's actually because there is no libgssapi_krb5, when the system is built without heimdal (kerberos).


 CONFIGURE_ARGS+=       --with-gssapi
+.if defined(HEIMDAL_HOME)
+LDFLAGS+=              -L${LIBDIR} -lgssapi -lkrb5
 LDFLAGS+=              -L${LIBDIR} -lgssapi_krb5
 CONFIGURE_ARGS+=        --without-gssapi

I'm *assuming* that when HEIMDAL_HOME is defined, that someone is using the heimdal port.  There's needs to be a better test for when the heimdal port is used, as I intentionally define HEIMDAL_HOME=/usr.--iE3to3SdiC6QBmhFUMgzUL4cQSt1Ty28X4TboQT1GWVNtQ8H
Content-Type: text/plain; name="file.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="file.diff"

--- Makefile.orig       2013-12-07 20:02:29.000000000 +1100
+++ Makefile    2013-12-07 20:19:53.000000000 +1100
@@ -164,7 +164,11 @@
How-To-Repeat: cd /usr/ports/dns/bind99 && make __MAKE_CONF=/dev/null clean deinstall package

AND the system does NOT have kerberos (specifically heimdal) built in the system (so there is no libgssapi_krb5).
Comment 1 Edwin Groothuis freebsd_committer 2013-12-07 09:30:08 UTC
Responsible Changed
From-To: freebsd-ports-bugs->erwin

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 Dewayne 2013-12-07 21:20:37 UTC
Apologies for the title.  During testing, XML was initially implicated
until I later (after starting the PR) discovered that WITH | WITHOUT XML
had no bearing on the compilation outcome.  Compile fails only WITH GSSAPI.
Comment 3 Erwin Lansing freebsd_committer 2013-12-10 10:01:18 UTC
State Changed
From-To: open->closed

Committed, thanks!
Comment 4 dfilter service freebsd_committer 2013-12-10 10:01:28 UTC
Author: erwin
Date: Tue Dec 10 10:01:21 2013
New Revision: 336054
URL: http://svnweb.freebsd.org/changeset/ports/336054

  Fix build with GSSAPI option without Kerberos
  PR:		184560
  Submitted by:	Dewayne <dewayne@heuristicsystems.com.au>


Modified: head/dns/bind98/Makefile
--- head/dns/bind98/Makefile	Tue Dec 10 08:27:52 2013	(r336053)
+++ head/dns/bind98/Makefile	Tue Dec 10 10:01:21 2013	(r336054)
@@ -157,7 +157,11 @@ CONFIGURE_ARGS+=	--disable-threads
 CONFIGURE_ARGS+=	--with-gssapi
+.if defined(HEIMDAL_HOME)
+LDFLAGS+=		-L${LIBDIR} -lgssapi -lkrb5
 LDFLAGS+=		-L${LIBDIR} -lgssapi_krb5
 CONFIGURE_ARGS+=	--without-gssapi

Modified: head/dns/bind99/Makefile
--- head/dns/bind99/Makefile	Tue Dec 10 08:27:52 2013	(r336053)
+++ head/dns/bind99/Makefile	Tue Dec 10 10:01:21 2013	(r336054)
@@ -164,7 +164,11 @@ CONFIGURE_ARGS+=	--disable-threads
 CONFIGURE_ARGS+=	--with-gssapi
+.if defined(HEIMDAL_HOME)
+LDFLAGS+=		-L${LIBDIR} -lgssapi -lkrb5
 LDFLAGS+=		-L${LIBDIR} -lgssapi_krb5
 CONFIGURE_ARGS+=        --without-gssapi
svn-ports-all@freebsd.org mailing list
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"