[Bug 236548] devel/p4: build error when using DEFAULT_VERSIONS+=ssl=libressl-devel in make.conf
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Fri Mar 15 10:42:49 UTC 2019
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=236548
Bug ID: 236548
Summary: devel/p4: build error when using
DEFAULT_VERSIONS+=ssl=libressl-devel in make.conf
Product: Ports & Packages
Version: Latest
Hardware: Any
OS: Any
Status: New
Severity: Affects Some People
Priority: ---
Component: Individual Port(s)
Assignee: asomers at FreeBSD.org
Reporter: tphilipp at potion-studios.com
Flags: maintainer-feedback?(asomers at FreeBSD.org)
Assignee: asomers at FreeBSD.org
devel/p4 fails to build with the following error when selecting libressl-devel
as default ssl provider (at least for libressl 2.9.0, unsure about libressl of
the non-devel port):
/usr/bin/ld: error: undefined symbol: X509_get_X509_PUBKEY
This is due to the fact that /usr/include/openssl/x509.h is included instead of
/usr/local/include/openssl/x509.h, the former declaring X509_get_X509_PUBKEY as
a symbol whereas the latter implements it as a macro.
Changing the include order and assuring that the build looks at the libressl
headers, works, e.g.:
cd /usr/ports/devel/p4
sudo make CPATH=/usr/local/include:/usr/include
I think that this could also lead to problems with openssl from ports, instead
of the one from base, as the base includes from /usr/include will be used
instead of the ones from ports?
I am not sure what the best way would be to fix this, but I guess the Makefile
should be changed to make sure this includes the matching headers for all
possible combinations, openssl (from base or ports) or libressl.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-ports-bugs
mailing list