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.
Created attachment 537612 [details] emerge-info.txt
Created attachment 537614 [details] dev-libs:opensc-0.18.0:20180628-170922.log
Created attachment 537616 [details] emerge-history.txt
Created attachment 537618 [details] environment
Created attachment 537620 [details] etc.portage.tbz2
Created attachment 537622 [details] logs.tbz2
Created attachment 537624 [details] temp.tbz2
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
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"
(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.
Works for me with libressl-2.7.4