Created attachment 492932 [details] build.log app-emulation/spice-0.13.90[libressl] fails to build with: ../../server/.libs/libspice-server.so: undefined reference to `ASN1_STRING_get0_data' after higher up: ssl_verify.c: In function ‘verify_hostname’: ssl_verify.c:192:60: warning: implicit declaration of function ‘ASN1_STRING_get0_data’ [-Wimplicit-function-declaration] if (_gnutls_hostname_compare((const char *)ASN1_STRING_get0_data(name->d.dNSName), The previous version (0.13.3-r2) does build. The problem is with this code added to ssl_verify.c in the new version: +#if OPENSSL_VERSION_NUMBER < 0x10100000 +static const unsigned char *ASN1_STRING_get0_data(const ASN1_STRING *asn1) +{ + return M_ASN1_STRING_data(asn1); +} +#endif Libressl claims a high OPENSSL_VERSION_NUMBER but does not actually provide functions like ASN1_STRING_get0_data. A popular fix for this class of problem is to add " || defined(LIBRESSL_VERSION_NUMBER)" to the check. See bug 610854 or some of the other bugs blocking bug 610854.
Err, I meant "one of the other bugs blocking bug 561854", of course.
Thank you for the report. Please *attach* the logfiles in the meantime, (--info is missing) https://wiki.gentoo.org/wiki/Bugzilla/Bug_report_guide#Report_a_build-time_bug_.28emerge_failed.29
Created attachment 493208 [details] emerge --info app-emulation/spice
Attached. I should also have pointed out that this was a build against dev-libs/libressl-2.6.0 (~amd64). I am aware the bug reporting guidelines mention emerge --info, but for bugs such as this one I'm at a loss what you're getting from it (USE flags relevant to this package are in the build log, toolchain version / system details / compiler/linker flags etc are extremely unlikely to make any difference whatsoever, which I knew because I'd taken the time to debug the failure before filing this bug). I try to file bugs that include information that is useful. If emerge --info is useful in fixing this bug, I'd love to learn why/how.
Created attachment 494438 [details, diff] patch for the lazy ones patch for the lazy readers...
appeared recently at the tinderbox image 20170922-134041_app-emulation_spice-0.13.90
Created attachment 496010 [details] emerge-info.txt
Created attachment 496012 [details] app-emulation:spice-0.13.90:20170922-113632.log
Created attachment 496014 [details] emerge-history.txt
Created attachment 496016 [details] environment
Created attachment 496018 [details] etc.portage.tbz2
Created attachment 496020 [details] logs.tbz2
Created attachment 496022 [details] temp.tbz2
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8ca3368317e4ce0fc7f559b041cc3adef96911d2 commit 8ca3368317e4ce0fc7f559b041cc3adef96911d2 Author: Matthias Maier <tamiko@gentoo.org> AuthorDate: 2018-02-12 01:41:19 +0000 Commit: Matthias Maier <tamiko@gentoo.org> CommitDate: 2018-02-12 01:48:29 +0000 app-emulation/spice: version bump to 0.14.0 - Update dependency on spice-protocol - Remove celt dependencu and only use opus... - Remove --disable-gui (spice does not have a GUI any more) - fix libressl support (Thanks to Michelangelo Scopelliti) - fix openssl1.1 support (Thanks to Mark Wright) - cannot reproduce static assert bug #634484 with gcc 7.3.0 Bug: https://bugs.gentoo.org/634484 Closes: https://bugs.gentoo.org/630142 Closes: https://bugs.gentoo.org/630594 Closes: https://bugs.gentoo.org/630942 Closes: https://bugs.gentoo.org/634696 Closes: https://bugs.gentoo.org/635864 Package-Manager: Portage-2.3.24, Repoman-2.3.6 app-emulation/spice/Manifest | 1 + .../spice/files/spice-0.14.0-libressl_fix.patch | 13 +++ .../spice/files/spice-0.14.0-openssl1.1_fix.patch | 26 ++++++ app-emulation/spice/spice-0.14.0.ebuild | 100 +++++++++++++++++++++ 4 files changed, 140 insertions(+)