Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 630142 - app-emulation/spice-0.13.90[libressl] does not build (undefined reference to `ASN1_STRING_get0_data')
Summary: app-emulation/spice-0.13.90[libressl] does not build (undefined reference to ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Virtualization Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: libressl-support
  Show dependency tree
 
Reported: 2017-09-07 10:42 UTC by Marien Zwart
Modified: 2018-02-12 01:48 UTC (History)
4 users (show)

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


Attachments
build.log (build.log,476.88 KB, text/plain)
2017-09-07 10:42 UTC, Marien Zwart
Details
emerge --info app-emulation/spice (emerge-info,6.89 KB, text/plain)
2017-09-08 08:19 UTC, Marien Zwart
Details
patch for the lazy ones (spice-0.13.90-libressl.patch,488 bytes, patch)
2017-09-14 06:55 UTC, Michelangelo Scopelliti
Details | Diff
emerge-info.txt (emerge-info.txt,17.07 KB, text/plain)
2017-09-22 18:02 UTC, Toralf Förster
Details
app-emulation:spice-0.13.90:20170922-113632.log (app-emulation:spice-0.13.90:20170922-113632.log,386.42 KB, text/plain)
2017-09-22 18:02 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,266.33 KB, text/plain)
2017-09-22 18:02 UTC, Toralf Förster
Details
environment (environment,100.11 KB, text/plain)
2017-09-22 18:02 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,45.88 KB, application/x-bzip)
2017-09-22 18:02 UTC, Toralf Förster
Details
logs.tbz2 (logs.tbz2,19.51 KB, application/x-bzip)
2017-09-22 18:02 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,37.50 KB, application/x-bzip)
2017-09-22 18:02 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Marien Zwart 2017-09-07 10:42:04 UTC
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.
Comment 1 Marien Zwart 2017-09-07 10:42:53 UTC
Err, I meant "one of the other bugs blocking bug 561854", of course.
Comment 2 Jonas Stein gentoo-dev 2017-09-07 21:42:21 UTC
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
Comment 3 Marien Zwart 2017-09-08 08:19:07 UTC
Created attachment 493208 [details]
emerge --info app-emulation/spice
Comment 4 Marien Zwart 2017-09-08 08:28:48 UTC
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.
Comment 5 Michelangelo Scopelliti 2017-09-14 06:55:30 UTC
Created attachment 494438 [details, diff]
patch for the lazy ones

patch for the lazy readers...
Comment 6 Toralf Förster gentoo-dev 2017-09-22 18:01:58 UTC
appeared recently at the tinderbox image 20170922-134041_app-emulation_spice-0.13.90
Comment 7 Toralf Förster gentoo-dev 2017-09-22 18:02:02 UTC
Created attachment 496010 [details]
emerge-info.txt
Comment 8 Toralf Förster gentoo-dev 2017-09-22 18:02:05 UTC
Created attachment 496012 [details]
app-emulation:spice-0.13.90:20170922-113632.log
Comment 9 Toralf Förster gentoo-dev 2017-09-22 18:02:08 UTC
Created attachment 496014 [details]
emerge-history.txt
Comment 10 Toralf Förster gentoo-dev 2017-09-22 18:02:11 UTC
Created attachment 496016 [details]
environment
Comment 11 Toralf Förster gentoo-dev 2017-09-22 18:02:14 UTC
Created attachment 496018 [details]
etc.portage.tbz2
Comment 12 Toralf Förster gentoo-dev 2017-09-22 18:02:17 UTC
Created attachment 496020 [details]
logs.tbz2
Comment 13 Toralf Förster gentoo-dev 2017-09-22 18:02:20 UTC
Created attachment 496022 [details]
temp.tbz2
Comment 14 Larry the Git Cow gentoo-dev 2018-02-12 01:48:40 UTC
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(+)