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

Bug 659518

Summary: dev-libs/opensc-0.18.0 : pkcs15-prkey.c:645:3: error: implicit declaration of function RSA_get0_key
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Crypto team [DISABLED] <crypto+disabled>
Status: RESOLVED FIXED    
Severity: normal CC: alonbl
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 651228    
Attachments: emerge-info.txt
dev-libs:opensc-0.18.0:20180628-170922.log
emerge-history.txt
environment
etc.portage.tbz2
logs.tbz2
temp.tbz2

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