Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 634696 - app-emulation/spice-0.13.90 error: ‘RSA_F4’ undeclared with dev-libs/openssl-1.1.0f
Summary: app-emulation/spice-0.13.90 error: ‘RSA_F4’ undeclared with dev-libs/openssl-...
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: openssl-1.1
  Show dependency tree
 
Reported: 2017-10-18 23:08 UTC by Mark Wright
Modified: 2018-02-12 01:48 UTC (History)
0 users

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


Attachments
spice-0.13.90-openssl-1.1.patch (spice-0.13.90-openssl-1.1.patch,575 bytes, patch)
2017-10-18 23:08 UTC, Mark Wright
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Mark Wright gentoo-dev 2017-10-18 23:08:45 UTC
Created attachment 499172 [details, diff]
spice-0.13.90-openssl-1.1.patch

Patch by me to fix build the following errors and warnings that occur building app-emulation/spice-0.13.90 with dev-libs/openssl-1.1.0f built with -disable-deprecated:

/bin/sh ../libtool  --tag=CC   --mode=compile x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I..  -DSPICE_SERVER_INTERNAL -I ../spice-common/ -I ../spice-common/ -DG_LOG_DOMAIN=\"Spice\" -pthread -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_28   -DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_28 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include  -I/usr/include/pixman-1      -I/usr/include/spice-1  -fvisibility=hidden -fno-common -W -Waddress -Waggressive-loop-optimizations -Wall -Wattributes -Wbool-compare -Wbuiltin-macro-redefined -Wcast-align -Wchar-subscripts -Wchkp -Wclobbered -Wcomment -Wcomments -Wcoverage-mismatch -Wcpp -Wdate-time -Wdeprecated-declarations -Wdesignated-init -Wdisabled-optimization -Wdiscarded-array-qualifiers -Wdiscarded-qualifiers -Wdiv-by-zero -Wdouble-promotion -Wduplicated-cond -Wempty-body -Wendif-labels -Wextra -Wformat-contains-nul -Wformat-extra-args -Wformat-security -Wformat-y2k -Wformat-zero-length -Wframe-address -Wfree-nonheap-object -Whsa -Wignored-attributes -Wignored-qualifiers -Wimplicit -Wimplicit-function-declaration -Wimplicit-int -Wincompatible-pointer-types -Winit-self -Wint-conversion -Wint-to-pointer-cast -Winvalid-memory-model -Winvalid-pch -Wjump-misses-init -Wlogical-not-parentheses -Wlogical-op -Wmain -Wmaybe-uninitialized -Wmemset-transposed-args -Wmisleading-indentation -Wmissing-braces -Wmissing-field-initializers -Wmissing-include-dirs -Wmissing-parameter-type -Wmissing-prototypes -Wmultichar -Wnarrowing -Wnested-externs -Wnonnull -Wnonnull-compare -Wodr -Wold-style-declaration -Wold-style-definition -Wopenmp-simd -Woverflow -Woverride-init -Wpacked-bitfield-compat -Wparentheses -Wpointer-arith -Wpointer-sign -Wpointer-to-int-cast -Wpragmas -Wreturn-local-addr -Wreturn-type -Wscalar-storage-order -Wsequence-point -Wshift-count-negative -Wshift-count-overflow -Wshift-negative-value -Wsizeof-array-argument -Wsizeof-pointer-memaccess -Wstrict-aliasing -Wstrict-prototypes -Wsuggest-attribute=const -Wsuggest-attribute=format -Wsuggest-attribute=noreturn -Wsuggest-attribute=pure -Wsuggest-final-methods -Wsuggest-final-types -Wswitch -Wswitch-bool -Wsync-nand -Wtautological-compare -Wtrampolines -Wtrigraphs -Wtype-limits -Wuninitialized -Wunknown-pragmas -Wunused -Wunused-but-set-parameter -Wunused-but-set-variable -Wunused-function -Wunused-label -Wunused-local-typedefs -Wunused-parameter -Wunused-result -Wunused-value -Wunused-variable -Wvarargs -Wvariadic-macros -Wvector-operation-performance -Wvolatile-register-var -Wwrite-strings -Warray-bounds=2 -Wnormalized=nfc -Wunused-const-variable=2 -Wno-sign-compare -Wno-unused-parameter -Wno-format-nonliteral -Wframe-larger-than=20460 -fstack-protector-all --param=ssp-buffer-size=4 -fexceptions -fasynchronous-unwind-tables -fdiagnostics-show-option -funit-at-a-time -fipa-pure-const -Wno-suggest-attribute=pure -Wno-suggest-attribute=const    -O2 -march=native -ggdb -fvar-tracking-assignments -fvar-tracking -pipe -c -o stat-file.lo stat-file.c
reds.c: In function ‘reds_send_link_ack’:
reds.c:1548:39: warning: implicit declaration of function ‘RSA_new’; did you mean ‘SSL_new’? [-Wimplicit-function-declaration]
         if (!(link->tiTicketing.rsa = RSA_new())) {
                                       ^~~~~~~
                                       SSL_new
reds.c:1548:39: warning: nested extern declaration of ‘RSA_new’ [-Wnested-externs]
reds.c:1548:37: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
         if (!(link->tiTicketing.rsa = RSA_new())) {
                                     ^
reds.c:1558:13: warning: implicit declaration of function ‘RSA_generate_key_ex’; did you mean ‘EC_KEY_generate_key’? [-Wimplicit-function-declaration]
         if (RSA_generate_key_ex(link->tiTicketing.rsa,
             ^~~~~~~~~~~~~~~~~~~
             EC_KEY_generate_key
reds.c:1558:13: warning: nested extern declaration of ‘RSA_generate_key_ex’ [-Wnested-externs]
reds.c:1567:38: warning: implicit declaration of function ‘RSA_size’; did you mean ‘HMAC_size’? [-Wimplicit-function-declaration]
         link->tiTicketing.rsa_size = RSA_size(link->tiTicketing.rsa);
                                      ^~~~~~~~
                                      HMAC_size
reds.c:1567:38: warning: nested extern declaration of ‘RSA_size’ [-Wnested-externs]
reds.c: In function ‘openssl_init’:
reds.c:1841:24: error: ‘RSA_F4’ undeclared (first use in this function); did you mean ‘RSA’?
     unsigned long f4 = RSA_F4;
                        ^~~~~~
                        RSA
reds.c:1841:24: [01;36m[Knote: each undeclared identifier is reported only once for each function it appears in
reds.c:1842:28: warning: implicit declaration of function ‘BN_new’; did you mean ‘BIO_new’? [-Wimplicit-function-declaration]
     link->tiTicketing.bn = BN_new();
                            ^~~~~~
                            BIO_new
reds.c:1842:28: warning: nested extern declaration of ‘BN_new’ [-Wnested-externs]
reds.c:1842:26: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
     link->tiTicketing.bn = BN_new();
                          ^
reds.c:1848:5: warning: implicit declaration of function ‘BN_set_word’; did you mean ‘SSL_set_wfd’? [-Wimplicit-function-declaration]
     BN_set_word(link->tiTicketing.bn, f4);
     ^~~~~~~~~~~
     SSL_set_wfd
reds.c:1848:5: warning: nested extern declaration of ‘BN_set_word’ [-Wnested-externs]
reds.c: In function ‘reds_handle_ticket’:
reds.c:2038:21: warning: implicit declaration of function ‘RSA_private_decrypt’; did you mean ‘g_private_set’? [-Wimplicit-function-declaration]
     password_size = RSA_private_decrypt(link->tiTicketing.rsa_size,
                     ^~~~~~~~~~~~~~~~~~~
                     g_private_set
reds.c:2038:21: warning: nested extern declaration of ‘RSA_private_decrypt’ [-Wnested-externs]
reds.c:2042:41: error: ‘RSA_PKCS1_OAEP_PADDING’ undeclared (first use in this function)
                                         RSA_PKCS1_OAEP_PADDING);
                                         ^~~~~~~~~~~~~~~~~~~~~~
Comment 1 Larry the Git Cow gentoo-dev 2018-02-12 01:48:49 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(+)