Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 678430 - www-servers/h2o-2.2.5 : /.../neverbleed.c:635:13: error: static declaration of RSA_get0_key follows non-static declaration
Summary: www-servers/h2o-2.2.5 : /.../neverbleed.c:635:13: error: static declaration o...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Akinori Hattori
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: libressl-support
  Show dependency tree
 
Reported: 2019-02-20 17:54 UTC by Toralf Förster
Modified: 2019-03-02 12:46 UTC (History)
0 users

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


Attachments
emerge-info.txt (emerge-info.txt,15.23 KB, text/plain)
2019-02-20 17:54 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,97.07 KB, text/plain)
2019-02-20 17:54 UTC, Toralf Förster
Details
environment (environment,133.72 KB, text/plain)
2019-02-20 17:54 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,13.78 KB, application/x-bzip)
2019-02-20 17:54 UTC, Toralf Förster
Details
logs.tbz2 (logs.tbz2,8.42 KB, application/x-bzip)
2019-02-20 17:54 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,37.49 KB, application/x-bzip)
2019-02-20 17:54 UTC, Toralf Förster
Details
www-servers:h2o-2.2.5:20190220-162734.log (www-servers:h2o-2.2.5:20190220-162734.log,260.34 KB, text/plain)
2019-02-20 17:54 UTC, Toralf Förster
Details
those offending static declarations are only for openssl < 1.1 - added !defined(libressl_version_number) to that leading "if" statement. (h2o-2.2.5-libressl.patch,364 bytes, patch)
2019-02-22 21:10 UTC, pagorman
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2019-02-20 17:54:38 UTC
/usr/bin/x86_64-pc-linux-gnu-gcc  -I/var/tmp/portage/www-servers/h2o-2.2.5/work/h2o-2.2.5/deps/mruby/include -I/var/tmp/portage/www-servers/h2o-2.2.5/work/h2o-2.2.5/deps/mruby-input-stream/src -I/var/tmp/portage/www-servers/h2o-2.2.5/work/h2o-2.2.5/include -I/var/tmp/portage/www-servers/h2o-2.2.5/work/h2o-2.2.5/deps/cloexec -I/var/tmp/portage/www-servers/h2o-2.2.5/work/h2o-2.2.5/deps/brotli/enc -I/var/tmp/portage/www-servers/h2o-2.2.5/work/h2o-2.2.5/deps/golombset -I/var/tmp/portage/www-servers/h2o-2.2.5/work/h2o-2.2.5/deps/libgkc -I/var/tmp/portage/www-servers/h2o-2.2.5/work/h2o-2.2.5/deps/libyrmcds -I/var/tmp/portage/www-servers/h2o-2.2.5/work/h2o-2.2.5/deps/klib -I/var/tmp/portage/www-servers/h2o-2.2.5/work/h2o-2.2.5/deps/neverbleed -I/var/tmp/portage/www-servers/h2o-2.2.5/work/h2o-2.2.5/deps/picohttpparser -I/var/tmp/portage/www-servers/h2o-2.2.5/work/h2o-2.2.5/deps/picotest -I/var/tmp/portage/www-servers/h2o-2.2.5/work/h2o-2.2.5/deps/yaml/include -I/var/tmp/portage/www-servers/h2o-2.2.5/work/h2o-2.2.5/deps/yoml -I/var/tmp/portage/www-servers/h2o-2.2.5/work/h2o-2.2.5/deps/picotls/deps/cifra/src/ext -I/var/tmp/portage/www-servers/h2o-2.2.5/work/h2o-2.2.5/deps/picotls/deps/cifra/src -I/var/tmp/portage/www-servers/h2o-2.2.5/work/h2o-2.2.5/deps/picotls/deps/micro-ecc -I/var/tmp/portage/www-servers/h2o-2.2.5/work/h2o-2.2.5/deps/picotls/include   -DNDEBUG -O2 -g -Wall -Wno-unused-value -Wno-unused-function -Wno-unused-but-set-variable -Wno-unused-result -O2 -pipe -march=native -DH2O_ROOT="/usr" -DH2O_CONFIG_PATH="/etc/h2o/h2o.conf" -pthread -D_GNU_SOURCE   -DH2O_USE_LIBUV=0 -DH2O_USE_BROTLI=1 -DH2O_USE_MRUBY=1 -DH2O_USE_PICOTLS=1 -o CMakeFiles/h2o.dir/deps/neverbleed/neverbleed.c.o -c /var/tmp/portage/www-servers/h2o-2.2.5/work/h2o-2.2.5/deps/neverbleed/neverbleed.c
/var/tmp/portage/www-servers/h2o-2.2.5/work/h2o-2.2.5/deps/neverbleed/neverbleed.c:635:13: error: static declaration of ‘RSA_get0_key’ follows non-static declaration
 static void RSA_get0_key(const RSA *rsa, const BIGNUM **n, const BIGNUM **e, const BIGNUM **d)
             ^~~~~~~~~~~~
In file included from /usr/include/openssl/x509.h:96,

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1-hardened_libressl_20190218-201623

  -------------------------------------------------------------------

  Please see the tracker bug for details.

gcc-config -l:
 [1] x86_64-pc-linux-gnu-7.3.1
 [2] x86_64-pc-linux-gnu-8.2.0 *

Available Python interpreters, in order of preference:
  [1]   python3.6
  [2]   python2.7 (fallback)
Available Ruby profiles:
  [1]   ruby24 (with Rubygems)
  [2]   ruby25 (with Rubygems)
  [3]   ruby26 (with Rubygems) *
Available Rust versions:
  [1]   rust-1.32.0 *



emerge -qpvO www-servers/h2o
[ebuild  N    ] www-servers/h2o-2.2.5  USE="libressl mruby"
Comment 1 Toralf Förster gentoo-dev 2019-02-20 17:54:41 UTC
Created attachment 565950 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2019-02-20 17:54:43 UTC
Created attachment 565952 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2019-02-20 17:54:46 UTC
Created attachment 565954 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2019-02-20 17:54:48 UTC
Created attachment 565956 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2019-02-20 17:54:51 UTC
Created attachment 565958 [details]
logs.tbz2
Comment 6 Toralf Förster gentoo-dev 2019-02-20 17:54:54 UTC
Created attachment 565960 [details]
temp.tbz2
Comment 7 Toralf Förster gentoo-dev 2019-02-20 17:54:56 UTC
Created attachment 565962 [details]
www-servers:h2o-2.2.5:20190220-162734.log
Comment 8 pagorman 2019-02-22 21:10:15 UTC
Created attachment 566116 [details, diff]
those offending static declarations are only for openssl < 1.1 - added !defined(libressl_version_number) to that leading "if" statement.

This patch compiles on AMD64.
Comment 9 pagorman 2019-02-22 21:12:30 UTC
(In reply to pagorman from comment #8)
> Created attachment 566116 [details, diff] [details, diff]
> those offending static declarations are only for openssl < 1.1 - added
> !defined(libressl_version_number) to that leading "if" statement.
> 
> This patch compiles on AMD64.

Using LibreSSL-2.8.X, still needs testing on 2.7.X - I'll leave this for others.
Comment 10 Larry the Git Cow gentoo-dev 2019-03-02 12:46:21 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dc8384f173ea1b1578cfd0fbc8c38879b248811c

commit dc8384f173ea1b1578cfd0fbc8c38879b248811c
Author:     Akinori Hattori <hattya@gentoo.org>
AuthorDate: 2019-03-02 12:45:45 +0000
Commit:     Akinori Hattori <hattya@gentoo.org>
CommitDate: 2019-03-02 12:45:45 +0000

    www-servers/h2o: fix build with >=dev-libs/libressl-2.7
    
    Closes: https://bugs.gentoo.org/678430
    Signed-off-by: Akinori Hattori <hattya@gentoo.org>
    Package-Manager: Portage-2.3.51, Repoman-2.3.11

 www-servers/h2o/files/h2o-2.2-libressl-2.7.patch | 23 +++++++++++++++++++++++
 www-servers/h2o/h2o-2.2.5.ebuild                 |  7 +++++--
 2 files changed, 28 insertions(+), 2 deletions(-)