Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 22 Oct 2017 16:27:52 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 223170] devel/libevent: Respect $OPENSSLLIB
Message-ID:  <bug-223170-13@https.bugs.freebsd.org/bugzilla/>

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

            Bug ID: 223170
           Summary: devel/libevent: Respect $OPENSSLLIB
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: mm@FreeBSD.org
          Reporter: thierry@FreeBSD.org
             Flags: maintainer-feedback?(mm@FreeBSD.org)
          Assignee: mm@FreeBSD.org

Created attachment 187371
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D187371&action=
=3Dedit
Using pkg-config to detect openssl.pc

When built in a clean environment (e.g. poudriere, like on the packages
cluster), libevent is linked against libcrypto provided by the base system:

ldd /usr/local/lib/libevent-2.1.so.6
/usr/local/lib/libevent-2.1.so.6:
        libcrypto.so.8 =3D> /lib/libcrypto.so.8 (0x801400000)
        libthr.so.3 =3D> /lib/libthr.so.3 (0x801869000)
        libc.so.7 =3D> /lib/libc.so.7 (0x800825000)

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

/usr/bin/ld: warning: libcrypto.so.8, needed by
/usr/local/lib/libevent-2.1.so.6, may conflict with libcrypto.so.9

and actually this might cause hard to debug problems.

Just adding pkg-config to detect openssl.pc solves the problem.
(Warning: the problem exists if the package has been built in poudriere, but
when built from a port on a machine where pkg-config is installed, configur=
e is
smart enough to detect it)

After this fix:
ldd /usr/local/lib/libevent_openssl-2.1.so.6
/usr/local/lib/libevent_openssl-2.1.so.6:
        libssl.so.9 =3D> /usr/local/lib/libssl.so.9 (0x801206000)
        libcrypto.so.9 =3D> /usr/local/lib/libcrypto.so.9 (0x801600000)
        libthr.so.3 =3D> /lib/libthr.so.3 (0x801a75000)
        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-223170-13>