Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 22 Oct 2017 16:28:00 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 223171] dns/unbound: Respect $OPENSSLBASE
Message-ID:  <bug-223171-13@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D223171

            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@FreeBSD.org
          Reporter: thierry@FreeBSD.org
                CC: jaap@NLnetLabs.nl
                CC: jaap@NLnetLabs.nl
             Flags: maintainer-feedback?(jaap@NLnetLabs.nl)

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

USES=3Dssl 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 =3D> /usr/lib/libssl.so.8 (0x8012bf000)
        libutil.so.9 =3D> /lib/libutil.so.9 (0x801531000)
        libevent-2.1.so.6 =3D> /usr/local/lib/libevent-2.1.so.6 (0x80174500=
0)
        libcrypto.so.8 =3D> /lib/libcrypto.so.8 (0x801a00000)
        libthr.so.3 =3D> /lib/libthr.so.3 (0x801e69000)
        libc.so.7 =3D> /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.s=
o,
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 =3D> /usr/local/lib/libssl.so.9 (0x8012c0000)
        libutil.so.9 =3D> /lib/libutil.so.9 (0x801535000)
        libevent-2.1.so.6 =3D> /usr/local/lib/libevent-2.1.so.6 (0x80174900=
0)
        libcrypto.so.9 =3D> /usr/local/lib/libcrypto.so.9 (0x801a00000)
        libthr.so.3 =3D> /lib/libthr.so.3 (0x801e75000)
        libc.so.7 =3D> /lib/libc.so.7 (0x800825000)

--=20
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-223171-13>