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] ERR_remove_thread_state(NULL); ^~~~~~~~~~~~~~~~~~~~~~~ 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()); ^~~~~~~~~~~~~~~~~~~ SSLv3_client_method
How can I solve to this bug so that it can not effect to other functions or related source code of same.
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).
it does now properly build in Rawhide at least.