[Bug 223171] dns/unbound: Respect $OPENSSLBASE

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sun Oct 22 16:28:01 UTC 2017


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=223171

            Bug ID: 223171
           Summary: dns/unbound: Respect $OPENSSLBASE
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: freebsd-ports-bugs at FreeBSD.org
          Reporter: thierry at FreeBSD.org
                CC: jaap at NLnetLabs.nl
                CC: jaap at NLnetLabs.nl
             Flags: maintainer-feedback?(jaap at NLnetLabs.nl)

Created attachment 187372
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=187372&action=edit
Link with ssl in $OPENSSLBASE

USES=ssl is set correctly in Makefile, but configure ignore it, and
libunbound.so is always linked against libssl.so provided by the base SSL:

ldd /usr/local/lib/libunbound.so
/usr/local/lib/libunbound.so:
        libssl.so.8 => /usr/lib/libssl.so.8 (0x8012bf000)
        libutil.so.9 => /lib/libutil.so.9 (0x801531000)
        libevent-2.1.so.6 => /usr/local/lib/libevent-2.1.so.6 (0x801745000)
        libcrypto.so.8 => /lib/libcrypto.so.8 (0x801a00000)
        libthr.so.3 => /lib/libthr.so.3 (0x801e69000)
        libc.so.7 => /lib/libc.so.7 (0x800825000)

When you link it from another port, you get this warning:

/usr/bin/ld: warning: libssl.so.8, needed by /usr/local/lib/libunbound.so, may
conflict with libssl.so.9
/usr/bin/ld: warning: libcrypto.so.8, needed by /usr/local/lib/libunbound.so,
may conflict with libcrypto.so.9

and actually this might cause hard to debug problems.

The proposed patch fixes the problem. After this fix:

ldd /usr/local/lib/libunbound.so
/usr/local/lib/libunbound.so:
        libssl.so.9 => /usr/local/lib/libssl.so.9 (0x8012c0000)
        libutil.so.9 => /lib/libutil.so.9 (0x801535000)
        libevent-2.1.so.6 => /usr/local/lib/libevent-2.1.so.6 (0x801749000)
        libcrypto.so.9 => /usr/local/lib/libcrypto.so.9 (0x801a00000)
        libthr.so.3 => /lib/libthr.so.3 (0x801e75000)
        libc.so.7 => /lib/libc.so.7 (0x800825000)

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


More information about the freebsd-ports-bugs mailing list