In file included from /var/tmp/portage/dev-libs/libgit2-0.27.0/work/libgit2-0.27.0/src/global.c:15:0: /var/tmp/portage/dev-libs/libgit2-0.27.0/work/libgit2-0.27.0/src/streams/openssl.h:36:25: error: static declaration of ‘BIO_meth_new’ follows non-static declaration GIT_INLINE(BIO_METHOD*) BIO_meth_new(int type, const char *name) ^~~~~~~~~~~~ In file included from /usr/include/openssl/evp.h:67:0, ------------------------------------------------------------------- This is an unstable amd64 chroot image at a tinderbox (==build bot) name: 17.0-no-multilib-hardened_libressl_20180506-210133 ------------------------------------------------------------------- gcc-config -l: [1] x86_64-pc-linux-gnu-7.3.0 * Available Python interpreters, in order of preference: [1] python3.5 [2] python2.7 (fallback) Available Ruby profiles: [1] ruby23 (with Rubygems) * emerge -qpv dev-libs/libgit2 [ebuild N ] dev-libs/libgit2-0.27.0 USE="curl gssapi libressl ssh threads -examples {-test} -trace"
Created attachment 530978 [details] emerge-info.txt
Created attachment 530980 [details] dev-libs:libgit2-0.27.0:20180512-001449.log
Created attachment 530982 [details] emerge-history.txt
Created attachment 530984 [details] environment
Created attachment 530986 [details] etc.portage.tbz2
Created attachment 530988 [details] logs.tbz2
Created attachment 530990 [details] temp.tbz2
version bump dev-libs/libgit2-0.27.1 not solving this issue ( despite having had no issues related to "BIO_meth_new" when compiling the github dev master.zip after 30 of april "Merge pull request #4608 from pks-t/pks/openssl-api-cleanup" https://github.com/libgit2/libgit2/commit/26a09a93db4046379edf86d3c52ea9b760065fb9 )
Well, it works fine with LibreSSL 2.7.5 if that’s of any help. And wouldn’t be surprised that the #ifdef in the mentioned commit does it the wrong way since LibreSSL has #define OPENSSL_VERSION_NUMBER 0x20000000L.
Fixed in https://github.com/libgit2/libgit2/commit/7490d449b518115a1ae86b01397e95c38e39cff1 (it's 0.28.1 in Gentoo).