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). Fix: .if ${PORT_OPTIONS:MGSSAPI} CONFIGURE_ARGS+= --with-gssapi +.if defined(HEIMDAL_HOME) +LDFLAGS+= -L${LIBDIR} -lgssapi -lkrb5 +.else LDFLAGS+= -L${LIBDIR} -lgssapi_krb5 +.endif .else CONFIGURE_ARGS+= --without-gssapi .endif 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).
Responsible Changed From-To: freebsd-ports-bugs->erwin Over to maintainer (via the GNATS Auto Assign Tool)
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.
State Changed From-To: open->closed Committed, thanks!
Author: erwin Date: Tue Dec 10 10:01:21 2013 New Revision: 336054 URL: http://svnweb.freebsd.org/changeset/ports/336054 Log: Fix build with GSSAPI option without Kerberos PR: 184560 Submitted by: Dewayne <dewayne@heuristicsystems.com.au> Modified: head/dns/bind98/Makefile head/dns/bind99/Makefile 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 .if ${PORT_OPTIONS:MGSSAPI} CONFIGURE_ARGS+= --with-gssapi +.if defined(HEIMDAL_HOME) +LDFLAGS+= -L${LIBDIR} -lgssapi -lkrb5 +.else LDFLAGS+= -L${LIBDIR} -lgssapi_krb5 +.endif .else CONFIGURE_ARGS+= --without-gssapi .endif 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 .if ${PORT_OPTIONS:MGSSAPI} CONFIGURE_ARGS+= --with-gssapi +.if defined(HEIMDAL_HOME) +LDFLAGS+= -L${LIBDIR} -lgssapi -lkrb5 +.else LDFLAGS+= -L${LIBDIR} -lgssapi_krb5 +.endif .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"