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

Bug 667390

Summary: dev-lua/lua-openssl-0.7.3 : src/ec.c:621:9: error: unknown type name EC_KEY_METHOD
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Matthias Hauber <crito>
Status: RESOLVED FIXED    
Severity: normal CC: crito, proxy-maint
Priority: Normal Keywords: PullRequest
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://github.com/gentoo/gentoo/pull/10039
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 561854    
Attachments: emerge-info.txt
dev-lua:lua-openssl-0.7.3:20180930-161449.log
emerge-history.txt
environment
etc.portage.tbz2
temp.tbz2
libressl-compat-patch

Description Toralf Förster gentoo-dev 2018-09-30 16:21:02 UTC
     ECDSA_SIG_new
src/ec.c: In function ‘openssl_ecdsa_set_method’:
src/ec.c:621:9: error: unknown type name ‘EC_KEY_METHOD’
   const EC_KEY_METHOD *m = ENGINE_get_EC(e);
         ^~~~~~~~~~~~~
src/ec.c:621:28: warning: implicit declaration of function ‘ENGINE_get_EC’; did you mean ‘ENGINE_get_DH’? [-Wimplicit-function-declaration]

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.0-no-multilib_libressl_20180923-190711

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

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.7
  [2]   python3.6
  [3]   python2.7 (fallback)
  [4]   pypy3 (fallback)
  [5]   pypy (fallback)
Available Ruby profiles:
  [1]   ruby23 (with Rubygems) *
java-config:
The following VMs are available for generation-2:


emerge -qpv dev-lua/lua-openssl
[ebuild  N    ] dev-lua/lua-openssl-0.7.3  USE="libressl -luajit"
Comment 1 Toralf Förster gentoo-dev 2018-09-30 16:21:05 UTC
Created attachment 548460 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2018-09-30 16:21:08 UTC
Created attachment 548462 [details]
dev-lua:lua-openssl-0.7.3:20180930-161449.log
Comment 3 Toralf Förster gentoo-dev 2018-09-30 16:21:11 UTC
Created attachment 548464 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2018-09-30 16:21:14 UTC
Created attachment 548466 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2018-09-30 16:21:17 UTC
Created attachment 548468 [details]
etc.portage.tbz2
Comment 6 Toralf Förster gentoo-dev 2018-09-30 16:21:20 UTC
Created attachment 548470 [details]
temp.tbz2
Comment 7 Matthias Hauber 2018-10-01 20:35:47 UTC
Created attachment 548774 [details, diff]
libressl-compat-patch

the attached patch fixes the build error but I missed anything. The regression tests are segfaulting. I have an eye on it.
Comment 8 Larry the Git Cow gentoo-dev 2018-10-06 07:11:12 UTC
The bug has been closed via the following commit(s):

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

commit 762dee6c53a540946e0c270d7d585464086782e5
Author:     Matthias Hauber <crito@fnordpipe.org>
AuthorDate: 2018-10-01 21:31:27 +0000
Commit:     Michał Górny <mgorny@gentoo.org>
CommitDate: 2018-10-06 07:11:00 +0000

    dev-lua/lua-openssl: fix libressl build
    
    backports libressl compat from master branch and disables
      cms, sm2 and srp.
    Additionally set dependency to libressl < 2.7.0 because there
    are changes in the libressl-2.7 api that raises
    a lot of incompatible pointer types.
    
    Closes: https://bugs.gentoo.org/667390
    Signed-off-by: Matthias Hauber <crito@fnordpipe.org>
    Signed-off-by: Michał Górny <mgorny@gentoo.org>
    Closes: https://github.com/gentoo/gentoo/pull/10039

 .../files/0001-fix-libressl-compat.patch           | 433 +++++++++++++++++++++
 dev-lua/lua-openssl/lua-openssl-0.7.3.ebuild       |   4 +-
 2 files changed, 436 insertions(+), 1 deletion(-)