Tech Support
2018-Jan-10 15:28 UTC
[asterisk-users] Can't compile Asterisk on Fedora server
All; I have a Fedora 26 server that I am trying to compile asterisk-certified-13.13-cert6 on. However, I'm getting the following errors. I'm also having a tough time trying to compile Dahdi. I'm not sure what I'm missing, but if anyone else is running Fedora, I'd really appreciate any help at all. Thanks Much; John V. make[1]: Leaving directory '/usr/src/asterisk-certified-13.13-cert6/menuselect' [CC] tcptls.c -> tcptls.o tcptls.c: In function 'tcptls_stream_close': 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 /usr/src/asterisk-certified-13.13-cert6/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:819:31: warning: implicit declaration of function 'SSLv2_client_method'; did you mean 'SSLv3_client_method'? [-Wimplicit-function-declaration] cfg->ssl_ctx = SSL_CTX_new(SSLv2_client_method()); ^~~~~~~~~~~~~~~~~~~ SSLv3_client_method tcptls.c:819:31: warning: passing argument 1 of 'SSL_CTX_new' makes pointer from integer without a cast [-Wint-conversion] In file included from /usr/src/asterisk-certified-13.13-cert6/include/asterisk/tcptls.h:66:0, from tcptls.c:44: /usr/include/openssl/ssl.h:1338:17: note: expected 'const SSL_METHOD * {aka const struct ssl_method_st *}' but argument is of type 'int' __owur SSL_CTX *SSL_CTX_new(const SSL_METHOD *meth); ^~~~~~~~~~~ tcptls.c:825:4: warning: 'SSLv3_client_method' is deprecated [-Wdeprecated-declarations] cfg->ssl_ctx = SSL_CTX_new(SSLv3_client_method()); ^~~ 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 /usr/src/asterisk-certified-13.13-cert6/include/asterisk/tcptls.h:66, from tcptls.c:44: /usr/include/openssl/ssl.h:1616:1: note: declared here DEPRECATEDIN_1_1_0(__owur const SSL_METHOD *SSLv3_client_method(void)) /* SSLv3 */ ^ tcptls.c:829:4: warning: 'TLSv1_client_method' is deprecated [-Wdeprecated-declarations] cfg->ssl_ctx = SSL_CTX_new(TLSv1_client_method()); ^~~ 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 /usr/src/asterisk-certified-13.13-cert6/include/asterisk/tcptls.h:66, from tcptls.c:44: /usr/include/openssl/ssl.h:1631:1: note: declared here DEPRECATEDIN_1_1_0(__owur const SSL_METHOD *TLSv1_client_method(void)) /* TLSv1.0 */ ^ make[1]: *** [/usr/src/asterisk-certified-13.13-cert6/Makefile.rules:150: tcptls.o] Error 1 make: *** [Makefile:402: main] Error 2 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20180110/73796604/attachment.html>
Tzafrir Cohen
2018-Jan-10 15:36 UTC
[asterisk-users] Can't compile Asterisk on Fedora server
On Wed, Jan 10, 2018 at 10:28:42AM -0500, Tech Support wrote:> I'm getting the following > errors. I'm also having a tough time trying to compile Dahdi. I'm not sure > what I'm missing,Two recent issues: https://issues.asterisk.org/jira/browse/DAHLIN-356 An issue with kernel >= 4.13 . Now fixed in git (patch by Jean-Denis Girard). https://issues.asterisk.org/jira/browse/DAHLIN-359 An issue with kernel >= 4.15 . There is a patch there that fixes building but is not tested. Please test and report. -- Tzafrir Cohen +972-50-7952406 mailto:tzafrir.cohen at xorcom.com http://www.xorcom.com
Tzafrir Cohen
2018-Jan-10 15:52 UTC
[asterisk-users] Can't compile Asterisk on Fedora server
On Wed, Jan 10, 2018 at 10:28:42AM -0500, Tech Support wrote:> > > All; > > I have a Fedora 26 server that I am trying to compile > asterisk-certified-13.13-cert6 on. However, I'm getting the following > errors. I'm also having a tough time trying to compile Dahdi. I'm not sure > what I'm missing, but if anyone else is running Fedora, I'd really > appreciate any help at all. > > Thanks Much; > > John V. > > > > make[1]: Leaving directory > '/usr/src/asterisk-certified-13.13-cert6/menuselect' > > [CC] tcptls.c -> tcptls.o > > tcptls.c: In function 'tcptls_stream_close': > > tcptls.c:401:20: error: dereferencing pointer to incomplete type 'SSL {aka > struct ssl_st}' > > if (!stream->ssl->server) { > > ^~When I want to bisect something, I know that if I need to go back far enough, I need ./configure --without-ssl # :-( Asterisk 13.14.0 includes basic OpenSSL 1.1.0 support. I have no idea if anybody wants to backport it. Look at the log of main/tcptls.c in branch 13 in git to see the relevant patches. I suppose hopefully they'll apply cleanly. -- Tzafrir Cohen +972-50-7952406 mailto:tzafrir.cohen at xorcom.com http://www.xorcom.com
Tech Support
2018-Jan-10 16:13 UTC
[asterisk-users] Can't compile Asterisk on Fedora server
Fantastic. I can't thank you enough. Regards; John -----Original Message----- From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Tzafrir Cohen Sent: Wednesday, January 10, 2018 10:52 AM To: asterisk-users at lists.digium.com Subject: Re: [asterisk-users] Can't compile Asterisk on Fedora server On Wed, Jan 10, 2018 at 10:28:42AM -0500, Tech Support wrote:> > > All; > > I have a Fedora 26 server that I am trying to compile > asterisk-certified-13.13-cert6 on. However, I'm getting the following > errors. I'm also having a tough time trying to compile Dahdi. I'm not > sure what I'm missing, but if anyone else is running Fedora, I'd > really appreciate any help at all. > > Thanks Much; > > John V. > > > > make[1]: Leaving directory > '/usr/src/asterisk-certified-13.13-cert6/menuselect' > > [CC] tcptls.c -> tcptls.o > > tcptls.c: In function 'tcptls_stream_close': > > tcptls.c:401:20: error: dereferencing pointer to incomplete type 'SSL > {aka struct ssl_st}' > > if (!stream->ssl->server) { > > ^~When I want to bisect something, I know that if I need to go back far enough, I need ./configure --without-ssl # :-( Asterisk 13.14.0 includes basic OpenSSL 1.1.0 support. I have no idea if anybody wants to backport it. Look at the log of main/tcptls.c in branch 13 in git to see the relevant patches. I suppose hopefully they'll apply cleanly. -- Tzafrir Cohen +972-50-7952406 mailto:tzafrir.cohen at xorcom.com http://www.xorcom.com -- _____________________________________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- Check out the new Asterisk community forum at: https://community.asterisk.org/ New to Asterisk? Start here: https://wiki.asterisk.org/wiki/display/AST/Getting+Started asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users