Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 655562 - dev-libs/libgit2-0.27.0[libressl] : /.../openssl.h:36:25: error: static declaration of BIO_meth_new follows non-static declaration
Summary: dev-libs/libgit2-0.27.0[libressl] : /.../openssl.h:36:25: error: static decla...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Michał Górny
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: libressl-support
  Show dependency tree
 
Reported: 2018-05-12 07:30 UTC by Toralf Förster
Modified: 2019-02-28 23:39 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,18.43 KB, text/plain)
2018-05-12 07:30 UTC, Toralf Förster
Details
dev-libs:libgit2-0.27.0:20180512-001449.log (dev-libs:libgit2-0.27.0:20180512-001449.log,60.33 KB, text/plain)
2018-05-12 07:30 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,232.17 KB, text/plain)
2018-05-12 07:30 UTC, Toralf Förster
Details
environment (environment,118.22 KB, text/plain)
2018-05-12 07:30 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,15.81 KB, application/x-bzip)
2018-05-12 07:30 UTC, Toralf Förster
Details
logs.tbz2 (logs.tbz2,5.58 KB, application/x-bzip)
2018-05-12 07:30 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,31.42 KB, application/x-bzip)
2018-05-12 07:30 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
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).