[Bug 223170] devel/libevent: Respect $OPENSSLLIB
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Sun Oct 22 16:27:53 UTC 2017
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=223170
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 at FreeBSD.org
Reporter: thierry at FreeBSD.org
Flags: maintainer-feedback?(mm at FreeBSD.org)
Assignee: mm at FreeBSD.org
Created attachment 187371
--> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=187371&action=edit
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 => /lib/libcrypto.so.8 (0x801400000)
libthr.so.3 => /lib/libthr.so.3 (0x801869000)
libc.so.7 => /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, configure 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 => /usr/local/lib/libssl.so.9 (0x801206000)
libcrypto.so.9 => /usr/local/lib/libcrypto.so.9 (0x801600000)
libthr.so.3 => /lib/libthr.so.3 (0x801a75000)
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