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

Bug 638510

Summary: sci-misc/boinc-7.8.1 : crypt.cpp:475:5: error: RSA_get0_key was not declared in this scope
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Gentoo Science Related Packages <sci>
Severity: normal CC: asturm, jstein, redwolfe, sven.eden
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also:
Package list:
Runtime testing required: ---
Attachments: emerge-info.txt
Patch to fix Boinc's detection of the current SSL version.

Description Toralf Förster gentoo-dev 2017-11-22 20:16:45 UTC
libtool: compile:  x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I.. -I.. -I../api -I../db -I../lib -I../lib/mac -I../sched -I../tools -I../vda -pthread -Wall -Wextra -Wshadow -Wredundant-decls -Wdisabled-optimization -Wpointer-arith -Wstrict-aliasing -Wcast-align -fPIC -DPIC -pthread -I/usr/include -I/usr/include/openssl -O2 -pipe -march=native -c crypt.cpp  -fPIC -DPIC -o .libs/libboinc_crypt_la-crypt.o
crypt.cpp: In function ‘void openssl_to_keys(RSA*, int, R_RSA_PRIVATE_KEY&, R_RSA_PUBLIC_KEY&)’:
crypt.cpp:475:5: error: ‘RSA_get0_key’ was not declared in this scope
     RSA_get0_key(rp, &n, &e, &d);
crypt.cpp:475:5: note: suggested alternative: ‘RSA_check_key’


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


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

Available Python interpreters, in order of preference:
  [1]   python3.4
  [2]   python2.7 (fallback)
Available Ruby profiles:
  [1]   ruby22 (with Rubygems) *

emerge -qpv sci-misc/boinc
[ebuild  N    ] sci-misc/boinc-7.8.1  USE="-X -cuda -static-libs" CURL_SSL="libressl -gnutls -openssl"
Comment 1 Toralf Förster gentoo-dev 2017-11-22 20:16:48 UTC
Created attachment 505808 [details]
Comment 2 Toralf Förster gentoo-dev 2017-11-22 20:16:51 UTC
Created attachment 505810 [details]
Comment 3 Toralf Förster gentoo-dev 2017-11-22 20:16:54 UTC
Created attachment 505812 [details]
Comment 4 Toralf Förster gentoo-dev 2017-11-22 20:16:57 UTC
Created attachment 505814 [details]
Comment 5 Toralf Förster gentoo-dev 2017-11-22 20:17:00 UTC
Created attachment 505816 [details]
Comment 6 Toralf Förster gentoo-dev 2017-11-22 20:17:03 UTC
Created attachment 505818 [details]
Comment 7 Toralf Förster gentoo-dev 2017-11-22 20:17:06 UTC
Created attachment 505820 [details]
Comment 8 Sven Eden 2017-11-27 16:45:49 UTC
Hmm... I never had this one. I'll see what I can find out, but must ask for some patience. My laptop won't have internet until tomorrow, then I can sync and test.
Comment 9 Mark Wagner 2017-12-05 19:14:04 UTC
OpenSSL changed how elements of RSA keys are accessed between version 1.0 and version 1.1, and Boinc uses the variable OPENSSL_VERSION_NUMBER to detect this.  The problem is that LibreSSL defines itself as "OpenSSL 2.0", despite only being compatible with the OpenSSL 1.0 API.
Comment 10 Mark Wagner 2017-12-05 19:15:06 UTC
Created attachment 508412 [details, diff]
Patch to fix Boinc's detection of the current SSL version.
Comment 11 Sven Eden 2017-12-06 11:41:10 UTC
(In reply to Mark Wagner from comment #10)
> Created attachment 508412 [details, diff] [details, diff]
> Patch to fix Boinc's detection of the current SSL version.

Inspired idea indeed. I'll test that tomorrow, this night I have an appointment.
Comment 12 Sven Eden 2018-03-21 12:15:57 UTC
Sorry for the long delay. Should be fixed by PR
Comment 13 Sven Eden 2018-03-29 05:30:26 UTC
I am still waiting for the PR merge, or Feedback at least, sorry.
Comment 14 Jonas Stein gentoo-dev 2020-08-24 17:58:23 UTC
@asturm were there Closes: lines missing in the merge?
Please have a look at the PR. Can we close this and other tickets?
Comment 15 Andreas Sturmlechner gentoo-dev 2020-08-24 18:08:13 UTC
Hm, you didn't add those Closes: references to this bug. Did they address this one?

Please don't assign me to packages I don't maintain.
Comment 16 Jonas Stein gentoo-dev 2020-08-24 19:51:18 UTC
There were Closes: lines in the comment on
But I do not know if they were dropped later intentionally or by accident.

@asturm you merged it, so you know best, if other bugs are fixed, or not. 
BTW: This package is not m-n.
Comment 17 Andreas Sturmlechner gentoo-dev 2020-08-24 19:54:49 UTC
Then ffs assign it correctly.

More than two years after proxy-merging some PR I'll have to do the same investigation as anyone else.
Comment 18 Sven Eden 2020-08-25 10:44:17 UTC
The bug has been fixed by - But I forgot that the "Closes:" statements must be in the commit messages, and not only in the PR description.

Sorry everybody, I failed to check with the bugs!

I am currently waiting for some other PR to merge. Going back into BOINC for some version bumping and review is on my list to do next.