From owner-freebsd-ports-bugs@FreeBSD.ORG Thu Sep 25 04:47:53 2014 Return-Path: Delivered-To: freebsd-ports-bugs@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 6ABF4221 for ; Thu, 25 Sep 2014 04:47:53 +0000 (UTC) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4FD7ED9C for ; Thu, 25 Sep 2014 04:47:53 +0000 (UTC) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.14.9/8.14.9) with ESMTP id s8P4lrTo094539 for ; Thu, 25 Sep 2014 04:47:53 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 193912] New: dns/bind99 with heimdal port brings in base heimdal libraries Date: Thu, 25 Sep 2014 04:47:53 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports Tree X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: dewayne@heuristicsystems.com.au X-Bugzilla-Status: Needs Triage X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: mat@FreeBSD.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter flagtypes.name attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Sep 2014 04:47:53 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=193912 Bug ID: 193912 Summary: dns/bind99 with heimdal port brings in base heimdal libraries Product: Ports Tree Version: Latest Hardware: Any OS: Any Status: Needs Triage Severity: Affects Some People Priority: --- Component: Individual Port(s) Assignee: mat@FreeBSD.org Reporter: dewayne@heuristicsystems.com.au Assignee: mat@FreeBSD.org Flags: maintainer-feedback?(mat@FreeBSD.org) Created attachment 147655 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=147655&action=edit Patches /usr/ports/dns/bind99/files/patch-configure Bind99 fails to build correctly using the heimdal port, on a FreeBSD 10.1-BETA2 #0 r271939 system. These appears in the config.log: /usr/bin/ld: warning: libgssapi.so.10, needed by /usr/lib/libgssapi_krb5.so, may conflict with libgssapi.so.3 /usr/bin/ld: warning: libkrb5.so.11, needed by /usr/lib/libgssapi_krb5.so, may conflict with libkrb5.so.26 /usr/bin/ld: warning: libcrypto.so.7, needed by /usr/lib/libgssapi_krb5.so, may conflict with libcrypto.so.8 /usr/bin/ld: warning: libroken.so.11, needed by /usr/lib/libgssapi_krb5.so, may conflict with libroken.so.18 /usr/bin/ld: warning: libasn1.so.11, needed by /usr/lib/libgssapi_krb5.so, may conflict with libasn1.so.8 Clearly the port is confusing the base and heimdal ports, which results in executables containing both heimdal port and heimdal base shareable libraries. This file seems to be the reason: /usr/ports/dns/bind99/files/patch-configure A closer examination revealed that: a) These do not exist in heimdal port -lgssapi_krb5 -lkrb5support -lk5crypto -lcom_err b) These do not exist in either the base nor heimdal port -lkrb5support -lk5crypto however these do exist in in the base system -lgssapi_krb5 -lcom_err Cutting a very long story short, to build bind99 (9.9.6) that pulls in the libraries from the heimdal port, the enclosed patch should be applied patch /usr/ports/dns/bind99/files/patch-configure < $ATTACHED_PATCH I appreciate that this is a particularly challenging feature (bind with heimdal) but it is extremely useful for those that use samba[4|41] to have a gssapi enabled bind, which requires one line change for the heimdal port. Ref: https://wiki.samba.org/index.php/DNS_Backend_BIND#Bind_9.8_.2F_9.9_2 I'm not entirely comfortable about leaving -lcom_err in the final executables, but I wasn't able to determine if its functions are actually called from within the executables (nslookup and friends). As I'm not very technical someone else may be able to make that call. Perhaps a quick solution is that there are two "patch-configure" files, one for the base and one for the heimdal port. But I'm bereft of how... --- Comment #1 from Bugzilla Automation --- Auto-assigned to maintainer mat@FreeBSD.org -- You are receiving this mail because: You are the assignee for the bug.