Date: Fri, 15 Mar 2019 10:42:46 +0000 From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 236548] devel/p4: build error when using DEFAULT_VERSIONS+=ssl=libressl-devel in make.conf Message-ID: <bug-236548-7788@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D236548 Bug ID: 236548 Summary: devel/p4: build error when using DEFAULT_VERSIONS+=3Dssl=3Dlibressl-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@FreeBSD.org Reporter: tphilipp@potion-studios.com Flags: maintainer-feedback?(asomers@FreeBSD.org) Assignee: asomers@FreeBSD.org devel/p4 fails to build with the following error when selecting libressl-de= vel 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 instea= d of /usr/local/include/openssl/x509.h, the former declaring X509_get_X509_PUBKE= Y 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=3D/usr/local/include:/usr/include I think that this could also lead to problems with openssl from ports, inst= ead 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 Makef= ile should be changed to make sure this includes the matching headers for all possible combinations, openssl (from base or ports) or libressl. --=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-236548-7788>