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

Bug 640946

Summary: dev-lang/erlang-20.2 : crypto.c:4605:7: error: implicit declaration of function RSA_padding_add_SSLv23 ; did you mean RSA_padding_add_X931 ? [-Werror=implicit-function-declaration]
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it <maintainer-needed>
Status: RESOLVED FIXED    
Severity: normal CC: libressl, patrick, slyfox
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: https://bugs.erlang.org/browse/ERL-546
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 592028    
Attachments: emerge-info.txt
dev-lang:erlang-20.2:20171213-192507.log
emerge-history.txt
environment
etc.portage.tbz2
logs.tbz2
temp.tbz2

Description Toralf Förster gentoo-dev 2017-12-13 19:41:13 UTC
crypto.c: In function ‘pkey_crypt_nif’:
crypto.c:4605:7: error: implicit declaration of function ‘RSA_padding_add_SSLv23’; did you mean ‘RSA_padding_add_X931’? [-Werror=implicit-function-declaration]
   if (RSA_padding_add_SSLv23(tmp_bin.data, tmplen, in_bin.data, in_bin.size) <= 0)
       ^~~~~~~~~~~~~~~~~~~~~~
       RSA_padding_add_X931

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.0-desktop_libressl_20171211-202647

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-7.2.0 *

Available Python interpreters, in order of preference:
  [1]   python3.5
  [2]   python2.7 (fallback)
Available Ruby profiles:
  [1]   ruby22 (with Rubygems) *
java-config:
The following VMs are available for generation-2:
*)	IcedTea JDK 3.6.0 [icedtea-bin-8]
Available Java Virtual Machines:
  [1]   icedtea-bin-8  system-vm

emerge -qpv dev-lang/erlang
[ebuild  N    ] dev-lang/erlang-20.2  USE="libressl ssl wxwidgets -compat-ethread -dirty-schedulers -doc -emacs -hipe -java -kpoll -odbc -sctp -smp -systemd -tk"
Comment 1 Toralf Förster gentoo-dev 2017-12-13 19:41:16 UTC
Created attachment 509940 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2017-12-13 19:41:19 UTC
Created attachment 509942 [details]
dev-lang:erlang-20.2:20171213-192507.log
Comment 3 Toralf Förster gentoo-dev 2017-12-13 19:41:22 UTC
Created attachment 509944 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2017-12-13 19:41:25 UTC
Created attachment 509946 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2017-12-13 19:41:28 UTC
Created attachment 509948 [details]
etc.portage.tbz2
Comment 6 Toralf Förster gentoo-dev 2017-12-13 19:41:31 UTC
Created attachment 509950 [details]
logs.tbz2
Comment 7 Toralf Förster gentoo-dev 2017-12-13 19:41:35 UTC
Created attachment 509952 [details]
temp.tbz2
Comment 8 Sergei Trofimovich (RETIRED) gentoo-dev 2018-01-21 10:52:14 UTC
According to https://bugs.erlang.org/browse/ERL-546 erlang-20.3 will have a fix. Let's see if it's easy to backport.
Comment 9 Larry the Git Cow gentoo-dev 2018-01-21 11:20:27 UTC
The bug has been closed via the following commit(s):

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

commit 5cadb9e0c9a7af9690c550a8f955bf1507555736
Author:     Sergei Trofimovich <slyfox@gentoo.org>
AuthorDate: 2018-01-21 11:18:06 +0000
Commit:     Sergei Trofimovich <slyfox@gentoo.org>
CommitDate: 2018-01-21 11:20:21 +0000

    dev-lang/erlang: backport libressl-2.6 suport, bug #640946
    
    Backport of https://github.com/erlang/otp/commit/b5b6c7695c5377b5aa474d8620df7c3e9a1ba629
    
    Reported-by: Toralf Förster
    Bug: https://bugs.erlang.org/browse/ERL-546
    Closes: https://bugs.gentoo.org/640946
    Package-Manager: Portage-2.3.19, Repoman-2.3.6

 dev-lang/erlang/erlang-20.2.ebuild                 |   3 +-
 .../erlang/files/erlang-20.2-libressl-2.6.1.patch  | 111 +++++++++++++++++++++
 2 files changed, 113 insertions(+), 1 deletion(-)