Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 25 Sep 2014 04:47:53 +0000
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
Message-ID:  <bug-193912-13@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
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 <bugzilla@FreeBSD.org> ---
Auto-assigned to maintainer mat@FreeBSD.org

-- 
You are receiving this mail because:
You are the assignee for the bug.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-193912-13>