Bug 1459608 - asterisk-13.11.2-1.fc27.2: FTBFS - dereferencing pointer to incomplete type 'SSL {aka struct ssl_st}'
Summary: asterisk-13.11.2-1.fc27.2: FTBFS - dereferencing pointer to incomplete type '...
Alias: None
Product: Fedora
Classification: Fedora
Component: asterisk
Version: rawhide
Hardware: Unspecified
OS: Unspecified
Target Milestone: ---
Assignee: Jared Smith
QA Contact: Fedora Extras Quality Assurance
URL: https://koji.fedoraproject.org/koji/t...
Depends On:
TreeView+ depends on / blocked
Reported: 2017-06-07 14:51 UTC by Jitka Plesnikova
Modified: 2017-06-27 06:11 UTC (History)
8 users (show)

Fixed In Version: asterisk-14.5.0-2.fc27
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Last Closed: 2017-06-26 22:52:10 UTC
Type: Bug

Attachments (Terms of Use)

Description Jitka Plesnikova 2017-06-07 14:51:06 UTC
asterisk-13.11.2-1.fc27.2 failed to build with following error. It is probably related to update OpenSSL 1.1.0

tcptls.c:401:20: error: dereferencing pointer to incomplete type 'SSL {aka struct ssl_st}'
    if (!stream->ssl->server) {
tcptls.c:404:5: warning: 'ERR_remove_thread_state' is deprecated [-Wdeprecated-declarations]
In file included from /usr/include/openssl/opensslconf.h:42:0,
                 from /usr/include/openssl/ct.h:13,
                 from /usr/include/openssl/ssl.h:61,
                 from /builddir/build/BUILD/asterisk-13.11.2/include/asterisk/tcptls.h:66,
                 from tcptls.c:44:
/usr/include/openssl/err.h:247:1: note: declared here
 DEPRECATEDIN_1_1_0(void ERR_remove_thread_state(void *))
tcptls.c: In function '__ssl_setup':
tcptls.c:780:31: error: implicit declaration of function 'SSLv2_client_method'; did you mean 'SSLv3_client_method'? [-Werror=implicit-function-declaration]
    cfg->ssl_ctx = SSL_CTX_new(SSLv2_client_method());

Comment 1 rg.koppela 2017-06-19 12:46:53 UTC
How can I solve to this bug so that it can not effect to other functions or related source code of same.

Comment 2 Petr Pisar 2017-06-19 12:58:32 UTC
You can try to replace openssl-devel build-time dependency with compat-openssl10-devel. But that would be only a temporary hack.

You should upgrade asterisk to 14.3.0 that provides (some) OpenSSL 1.1.0 support (bug #1455350). And also resolve other issues like missing dahdi-tools-devel dependency (bug #1387525).

Comment 3 Till Maas 2017-06-26 22:52:10 UTC
it does now properly build in Rawhide at least.

Note You need to log in before you can comment on or make changes to this bug.