Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 655562

Summary: dev-libs/libgit2-0.27.0[libressl] : /.../openssl.h:36:25: error: static declaration of BIO_meth_new follows non-static declaration
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Michał Górny <mgorny>
Status: RESOLVED FIXED    
Severity: normal CC: gnome, steils
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 561854    
Attachments: emerge-info.txt
dev-libs:libgit2-0.27.0:20180512-001449.log
emerge-history.txt
environment
etc.portage.tbz2
logs.tbz2
temp.tbz2

Description Toralf Förster gentoo-dev 2018-05-12 07:30:02 UTC
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"
Comment 1 Toralf Förster gentoo-dev 2018-05-12 07:30:05 UTC
Created attachment 530978 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2018-05-12 07:30:09 UTC
Created attachment 530980 [details]
dev-libs:libgit2-0.27.0:20180512-001449.log
Comment 3 Toralf Förster gentoo-dev 2018-05-12 07:30:12 UTC
Created attachment 530982 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2018-05-12 07:30:15 UTC
Created attachment 530984 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2018-05-12 07:30:18 UTC
Created attachment 530986 [details]
etc.portage.tbz2
Comment 6 Toralf Förster gentoo-dev 2018-05-12 07:30:21 UTC
Created attachment 530988 [details]
logs.tbz2
Comment 7 Toralf Förster gentoo-dev 2018-05-12 07:30:24 UTC
Created attachment 530990 [details]
temp.tbz2
Comment 8 Ulenrich 2018-05-30 13:15:04 UTC
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
)
Comment 9 Haelwenn (lanodan) Monnier 2019-01-25 18:12:14 UTC
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.
Comment 10 Stefan Strogin gentoo-dev 2019-02-28 23:39:43 UTC
Fixed in https://github.com/libgit2/libgit2/commit/7490d449b518115a1ae86b01397e95c38e39cff1
(it's 0.28.1 in Gentoo).