Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 614814 - net-misc/freerdp fails to build with openssl-1.1 with deprecated features disabled
Summary: net-misc/freerdp fails to build with openssl-1.1 with deprecated features dis...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Mike Gilbert
URL: https://github.com/FreeRDP/FreeRDP/is...
Whiteboard:
Keywords:
Depends on:
Blocks: openssl-1.1_disable-deprecated
  Show dependency tree
 
Reported: 2017-04-05 21:18 UTC by Lars Wendler (Polynomial-C) (RETIRED)
Modified: 2019-12-31 13:19 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2017-04-05 21:18:48 UTC
[ 39%] Building C object winpr/tools/CMakeFiles/winpr-tools.dir/makecert/makecert.c.o
cd /var/tmp/portage/net-misc/freerdp-2.0.0_pre20161219/work/freerdp-2.0.0_pre20161219_build/winpr/tools && /usr/bin/x86_64-pc-linux-gnu-gcc -DFREERDP_EXPORTS -DHAVE_CONFIG_H -DWINPR_EXPORTS -DWITH_OPENSSL -Dwinpr_tools_EXPORTS -I/var/tmp
/portage/net-misc/freerdp-2.0.0_pre20161219/work/freerdp-2.0.0_pre20161219_build -I/var/tmp/portage/net-misc/freerdp-2.0.0_pre20161219/work/freerdp-2.0.0_pre20161219_build/include -I/var/tmp/portage/net-misc/freerdp-2.0.0_pre20161219/wor
k/FreeRDP-8d0809cf26868fc5ff651850a32724650597747f/include -I/var/tmp/portage/net-misc/freerdp-2.0.0_pre20161219/work/FreeRDP-8d0809cf26868fc5ff651850a32724650597747f/winpr/include -I/var/tmp/portage/net-misc/freerdp-2.0.0_pre20161219/wo
rk/freerdp-2.0.0_pre20161219_build/winpr/include   -DNDEBUG -march=native -mtune=native -O2 -pipe -fPIC -Wall -Wno-unused-result -Wno-unused-but-set-variable -Wno-deprecated-declarations -fvisibility=hidden -Wimplicit-function-declaratio
n -Wredundant-decls -g -msse2 -DWINPR_EXPORTS -fPIC   -o CMakeFiles/winpr-tools.dir/makecert/makecert.c.o -c /var/tmp/portage/net-misc/freerdp-2.0.0_pre20161219/work/FreeRDP-8d0809cf26868fc5ff651850a32724650597747f/winpr/tools/makecert/m
akecert.c
/var/tmp/portage/net-misc/freerdp-2.0.0_pre20161219/work/FreeRDP-8d0809cf26868fc5ff651850a32724650597747f/winpr/tools/makecert/makecert.c: In function ‘makecert_context_output_certificate_file’:
/var/tmp/portage/net-misc/freerdp-2.0.0_pre20161219/work/FreeRDP-8d0809cf26868fc5ff651850a32724650597747f/winpr/tools/makecert/makecert.c:556:4: warning: implicit declaration of function ‘OpenSSL_add_all_algorithms’ [-Wimplicit-function-declaration]
    OpenSSL_add_all_algorithms();
    ^
/var/tmp/portage/net-misc/freerdp-2.0.0_pre20161219/work/FreeRDP-8d0809cf26868fc5ff651850a32724650597747f/winpr/tools/makecert/makecert.c:557:4: warning: implicit declaration of function ‘OpenSSL_add_all_ciphers’ [-Wimplicit-function-declaration]
    OpenSSL_add_all_ciphers();
    ^
/var/tmp/portage/net-misc/freerdp-2.0.0_pre20161219/work/FreeRDP-8d0809cf26868fc5ff651850a32724650597747f/winpr/tools/makecert/makecert.c:558:4: warning: implicit declaration of function ‘OpenSSL_add_all_digests’ [-Wimplicit-function-declaration]
    OpenSSL_add_all_digests();
    ^
/var/tmp/portage/net-misc/freerdp-2.0.0_pre20161219/work/FreeRDP-8d0809cf26868fc5ff651850a32724650597747f/winpr/tools/makecert/makecert.c: In function ‘makecert_context_process’:
/var/tmp/portage/net-misc/freerdp-2.0.0_pre20161219/work/FreeRDP-8d0809cf26868fc5ff651850a32724650597747f/winpr/tools/makecert/makecert.c:925:17: warning: implicit declaration of function ‘RSA_generate_key’ [-Wimplicit-function-declaration]
  context->rsa = RSA_generate_key(key_length, RSA_F4, NULL, NULL);
                 ^
/var/tmp/portage/net-misc/freerdp-2.0.0_pre20161219/work/FreeRDP-8d0809cf26868fc5ff651850a32724650597747f/winpr/tools/makecert/makecert.c:925:46: error: ‘RSA_F4’ undeclared (first use in this function)
  context->rsa = RSA_generate_key(key_length, RSA_F4, NULL, NULL);
                                              ^
/var/tmp/portage/net-misc/freerdp-2.0.0_pre20161219/work/FreeRDP-8d0809cf26868fc5ff651850a32724650597747f/winpr/tools/makecert/makecert.c:925:46: note: each undeclared identifier is reported only once for each function it appears in
/var/tmp/portage/net-misc/freerdp-2.0.0_pre20161219/work/FreeRDP-8d0809cf26868fc5ff651850a32724650597747f/winpr/tools/makecert/makecert.c:943:18: warning: implicit declaration of function ‘X509_get_notBefore’ [-Wimplicit-function-declaration]
  X509_gmtime_adj(X509_get_notBefore(context->x509), 0);
                  ^
/var/tmp/portage/net-misc/freerdp-2.0.0_pre20161219/work/FreeRDP-8d0809cf26868fc5ff651850a32724650597747f/winpr/tools/makecert/makecert.c:943:18: warning: passing argument 1 of ‘X509_gmtime_adj’ makes pointer from integer without a cast [-Wint-conversion]
In file included from /usr/include/openssl/pem.h:17:0,
                 from /var/tmp/portage/net-misc/freerdp-2.0.0_pre20161219/work/FreeRDP-8d0809cf26868fc5ff651850a32724650597747f/winpr/tools/makecert/makecert.c:27:
/usr/include/openssl/x509.h:479:12: note: expected ‘ASN1_TIME * {aka struct asn1_string_st *}’ but argument is of type ‘int’
 ASN1_TIME *X509_gmtime_adj(ASN1_TIME *s, long adj);
            ^
/var/tmp/portage/net-misc/freerdp-2.0.0_pre20161219/work/FreeRDP-8d0809cf26868fc5ff651850a32724650597747f/winpr/tools/makecert/makecert.c:947:19: warning: implicit declaration of function ‘X509_get_notAfter’ [-Wimplicit-function-declaration]
   X509_gmtime_adj(X509_get_notAfter(context->x509), (long) (60 * 60 * 24 * 31 *
                   ^
/var/tmp/portage/net-misc/freerdp-2.0.0_pre20161219/work/FreeRDP-8d0809cf26868fc5ff651850a32724650597747f/winpr/tools/makecert/makecert.c:947:19: warning: passing argument 1 of ‘X509_gmtime_adj’ makes pointer from integer without a cast [-Wint-conversion]
In file included from /usr/include/openssl/pem.h:17:0,
                 from /var/tmp/portage/net-misc/freerdp-2.0.0_pre20161219/work/FreeRDP-8d0809cf26868fc5ff651850a32724650597747f/winpr/tools/makecert/makecert.c:27:
/usr/include/openssl/x509.h:479:12: note: expected ‘ASN1_TIME * {aka struct asn1_string_st *}’ but argument is of type ‘int’
 ASN1_TIME *X509_gmtime_adj(ASN1_TIME *s, long adj);
            ^
/var/tmp/portage/net-misc/freerdp-2.0.0_pre20161219/work/FreeRDP-8d0809cf26868fc5ff651850a32724650597747f/winpr/tools/makecert/makecert.c:951:19: warning: passing argument 1 of ‘X509_gmtime_adj’ makes pointer from integer without a cast [-Wint-conversion]
   X509_gmtime_adj(X509_get_notAfter(context->x509), (long) (60 * 60 * 24 * 365
                   ^
In file included from /usr/include/openssl/pem.h:17:0,
                 from /var/tmp/portage/net-misc/freerdp-2.0.0_pre20161219/work/FreeRDP-8d0809cf26868fc5ff651850a32724650597747f/winpr/tools/makecert/makecert.c:27:
/usr/include/openssl/x509.h:479:12: note: expected ‘ASN1_TIME * {aka struct asn1_string_st *}’ but argument is of type ‘int’
 ASN1_TIME *X509_gmtime_adj(ASN1_TIME *s, long adj);
            ^
/var/tmp/portage/net-misc/freerdp-2.0.0_pre20161219/work/FreeRDP-8d0809cf26868fc5ff651850a32724650597747f/winpr/tools/makecert/makecert.c: In function ‘makecert_context_free’:
/var/tmp/portage/net-misc/freerdp-2.0.0_pre20161219/work/FreeRDP-8d0809cf26868fc5ff651850a32724650597747f/winpr/tools/makecert/makecert.c:1146:3: warning: implicit declaration of function ‘CRYPTO_cleanup_all_ex_data’ [-Wimplicit-function-declaration]
   CRYPTO_cleanup_all_ex_data();
   ^
make[2]: *** [winpr/tools/CMakeFiles/winpr-tools.dir/build.make:63: winpr/tools/CMakeFiles/winpr-tools.dir/makecert/makecert.c.o] Error 1


Please note that installed openssl-1.1 has been compiled with all deprecated
features being removed (--api=1.1.0)!
Comment 1 Craig Andrews gentoo-dev 2018-11-12 04:27:44 UTC
Updated summary to reflect that net-misc/freerdp-2.0.0_rc3-r1 builds fine with currently in tree dev-libs/openssl-1.1.1-r1