Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 659518 - dev-libs/opensc-0.18.0 : pkcs15-prkey.c:645:3: error: implicit declaration of function RSA_get0_key
Summary: dev-libs/opensc-0.18.0 : pkcs15-prkey.c:645:3: error: implicit declaration of...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Crypto team [DISABLED]
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: libressl-2.8.0
  Show dependency tree
 
Reported: 2018-06-28 18:23 UTC by Toralf Förster
Modified: 2018-08-17 07:44 UTC (History)
1 user (show)

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


Attachments
emerge-info.txt (emerge-info.txt,17.00 KB, text/plain)
2018-06-28 18:23 UTC, Toralf Förster
Details
dev-libs:opensc-0.18.0:20180628-170922.log (dev-libs:opensc-0.18.0:20180628-170922.log,60.93 KB, text/plain)
2018-06-28 18:23 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,219.63 KB, text/plain)
2018-06-28 18:23 UTC, Toralf Förster
Details
environment (environment,50.24 KB, text/plain)
2018-06-28 18:23 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,18.70 KB, application/x-bzip)
2018-06-28 18:23 UTC, Toralf Förster
Details
logs.tbz2 (logs.tbz2,13.35 KB, application/x-bzip)
2018-06-28 18:23 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,19.35 KB, application/x-bzip)
2018-06-28 18:23 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-06-28 18:23:04 UTC
libtool: compile:  x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../.. -DOPENSC_CONF_PATH=\"/etc/opensc.conf\" -I../../src -pthread -I/usr/include/PCSC -O2 -pipe -march=native -Wall -Wextra -Wno-unused-parameter -Werror -c pkcs15-prkey.c  -fPIC -DPIC -o .libs/libopensc_la-pkcs15-prkey.o
pkcs15-prkey.c: In function ‘sc_pkcs15_convert_prkey’:
pkcs15-prkey.c:645:3: error: implicit declaration of function ‘RSA_get0_key’; did you mean ‘RSA_check_key’? [-Werror=implicit-function-declaration]
   RSA_get0_key(src, &src_n, &src_e, &src_d);
   ^~~~~~~~~~~~
   RSA_check_key

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

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

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

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

Available Python interpreters, in order of preference:
  [1]   python3.5
  [2]   python3.6 (fallback)
  [3]   python2.7 (fallback)
Available Ruby profiles:
  [1]   ruby23 (with Rubygems) *
  [2]   ruby25 (with Rubygems)



emerge -qpv dev-libs/opensc
[ebuild  N    ] dev-libs/opensc-0.18.0  USE="libressl pcsc-lite readline ssl zlib -ctapi -doc -openct -secure-messaging" 

!!! The following installed packages are masked:
- app-eselect/eselect-qtgraphicssystem-1.1.1::gentoo (masked by: package.mask)
/usr/portage/profiles/package.mask:
# Andreas Sturmlechner <asturm@gentoo.org> (26 Jun 2018)
# Mask Qt4 for removal. Bug #631788

- dev-qt/qtgui-4.8.7::gentoo (masked by: package.mask)
- dev-qt/qttranslations-4.8.7::gentoo (masked by: package.mask)
- net-analyzer/ostinato-0.9::gentoo (masked by: package.mask)
/usr/portage/profiles/package.mask:
# Andreas Sturmlechner <asturm@gentoo.org> (26 Jun 2018)
# Depends on dead Qt4. Bugs #644360, #644374, #656826, #655382

- dev-qt/qtscript-4.8.7::gentoo (masked by: package.mask)
- dev-qt/qtcore-4.8.7-r4::gentoo (masked by: package.mask)
For more information, see the MASKED PACKAGES section in the emerge
man page or refer to the Gentoo Handbook.
Comment 1 Toralf Förster gentoo-dev 2018-06-28 18:23:07 UTC
Created attachment 537612 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2018-06-28 18:23:10 UTC
Created attachment 537614 [details]
dev-libs:opensc-0.18.0:20180628-170922.log
Comment 3 Toralf Förster gentoo-dev 2018-06-28 18:23:13 UTC
Created attachment 537616 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2018-06-28 18:23:16 UTC
Created attachment 537618 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2018-06-28 18:23:19 UTC
Created attachment 537620 [details]
etc.portage.tbz2
Comment 6 Toralf Förster gentoo-dev 2018-06-28 18:23:21 UTC
Created attachment 537622 [details]
logs.tbz2
Comment 7 Toralf Förster gentoo-dev 2018-06-28 18:23:24 UTC
Created attachment 537624 [details]
temp.tbz2
Comment 8 Francisco Lloret 2018-07-08 07:26:37 UTC
In my case compiles OK:

Core2Duo ~ # emerge -av opensc

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ~] dev-libs/opensc-0.18.0::gentoo  USE="pcsc-lite readline secure-messaging ssl zlib -ctapi -doc -libressl -openct" 0 KiB

Total: 1 package (1 reinstall), Size of downloads: 0 KiB

Would you like to merge these packages? [Yes/No] no

Quitting.

Core2Duo ~ #

Try if compiles OK without the libressl use
Comment 9 Frank Noack 2018-08-17 06:55:02 UTC
I have got also problems compiling dev-libs/opensc-0.18.0. It breaks with:

card-piv.c: In function ‘piv_validate_general_authentication.isra.3’:
card-piv.c:2390:9: error: ‘rbuflen’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
    body = sc_asn1_find_tag(card->ctx, rbuf, rbuflen, 0x7c, &bodylen);
    ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

emerge -pqv '=dev-libs/opensc-0.18.0::gentoo'
[ebuild     U ] dev-libs/opensc-0.18.0 [0.16.0] USE="pcsc-lite readline ssl zlib -ctapi -doc -libressl -openct -secure-messaging"
Comment 10 Alon Bar-Lev (RETIRED) gentoo-dev 2018-08-17 07:33:02 UTC
(In reply to Frank Noack from comment #9)
> I have got also problems compiling dev-libs/opensc-0.18.0. It breaks with:
> 
> card-piv.c: In function ‘piv_validate_general_authentication.isra.3’:
> card-piv.c:2390:9: error: ‘rbuflen’ may be used uninitialized in this
> function [-Werror=maybe-uninitialized]
>     body = sc_asn1_find_tag(card->ctx, rbuf, rbuflen, 0x7c, &bodylen);
>     ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> 
> emerge -pqv '=dev-libs/opensc-0.18.0::gentoo'
> [ebuild     U ] dev-libs/opensc-0.18.0 [0.16.0] USE="pcsc-lite readline ssl
> zlib -ctapi -doc -libressl -openct -secure-messaging"

Please do not hijack bugs, open your own, worse case it will be marked duplicate. In this case it has nothing to do with the $subj, so it is obvious. Anyway fixed.
Comment 11 Alon Bar-Lev (RETIRED) gentoo-dev 2018-08-17 07:44:30 UTC
Works for me with libressl-2.7.4