Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 647406 - app-emulation/spice-0.14.0[libressl] does not build (undefined reference to `OPENSSL_init_ssl')
Summary: app-emulation/spice-0.14.0[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
Assignee: Virtualization Team
URL:
Whiteboard:
Keywords:
: 647430 (view as bug list)
Depends on:
Blocks:
 
Reported: 2018-02-12 11:54 UTC by Marien Zwart
Modified: 2018-03-19 15:41 UTC (History)
2 users (show)

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


Attachments
build.log (build.log,472.05 KB, text/plain)
2018-02-12 11:54 UTC, Marien Zwart
Details
emerge --info (emerge-info,6.59 KB, text/plain)
2018-02-12 11:55 UTC, Marien Zwart
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Marien Zwart 2018-02-12 11:54:43 UTC
Created attachment 519154 [details]
build.log

Against dev-libs/libressl-2.6.4, app-emulation/spice-0.14.0 does not build:

reds.c: In function ‘openssl_global_init’:
reds.c:2819:5: warning: implicit declaration of function ‘OPENSSL_init_ssl’; did you mean ‘OPENSSL_init’? [-Wimplicit-function-declaration]
     OPENSSL_init_ssl(0, NULL);
     ^~~~~~~~~~~~~~~~
     OPENSSL_init
reds.c:2819:5: warning: nested extern declaration of ‘OPENSSL_init_ssl’ [-Wnested-externs]                             
...
/var/tmp/portage/app-emulation/spice-0.14.0/work/spice-0.14.0/server/reds.c:2819: undefined reference to `OPENSSL_init_ssl'
collect2: error: ld returned 1 exit status

The problem is introduced by spice-0.14.0-openssl1.1_fix.patch, which adds a call to OPENSSL_init_ssl guarded by "OPENSSL_VERSION_NUMBER >= 0x10100000L". libressl does not provide this function (even though it does set a high enough OPENSSL_VERSION_NUMBER).

Adding "&& !defined (LIBRESSL_VERSION_NUMBER)" makes it build. This fix is similar to the one for bug 630142 (same package, different function) or bug 635890 (different package, same function).
Comment 1 Marien Zwart 2018-02-12 11:55:09 UTC
Created attachment 519156 [details]
emerge --info
Comment 2 Ben Kohler gentoo-dev 2018-02-12 19:56:55 UTC
*** Bug 647430 has been marked as a duplicate of this bug. ***
Comment 3 Larry the Git Cow gentoo-dev 2018-03-19 15:41:52 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0c14f48ba37c89f812338df4e44725e4413df2de

commit 0c14f48ba37c89f812338df4e44725e4413df2de
Author:     Matthias Maier <tamiko@gentoo.org>
AuthorDate: 2018-03-19 15:40:26 +0000
Commit:     Matthias Maier <tamiko@gentoo.org>
CommitDate: 2018-03-19 15:40:26 +0000

    app-emulation/spice: Update patch
    
    Thanks for the bug report and the suggested fix!
    
    Closes: https://bugs.gentoo.org/647406
    Package-Manager: Portage-2.3.24, Repoman-2.3.6

 app-emulation/spice/files/spice-0.14.0-openssl1.1_fix.patch | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)