I’m trying to compile the asterisk source and getting the following errors on the make command, what am i missing?
svn: warning: W200017: Property 'automerge-propname' not found on ''
svn: E200000: A problem occurred; see other errors for details
svn: warning: W200017: Property 'svnmerge-integrated' not found on ''
svn: E200000: A problem occurred; see other errors for details
CC="gcc" CXX="g++" LD="" AR="" RANLIB="" CFLAGS="" LDFLAGS="" make -C menuselect CONFIGURE_SILENT="--silent" makeopts
make[1]: Entering directory '/home/asteriskpbx/src/asterisk-complete/asterisk/11/menuselect'
make[1]: 'makeopts' is up to date.
make[1]: Leaving directory '/home/asteriskpbx/src/asterisk-complete/asterisk/11/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:403:5: warning: ‘ERR_remove_state’ is deprecated [-Wdeprecated-declarations]
ERR_remove_state(0);
^~~~~~~~~~~~~~~~
In file included from /usr/include/openssl/e_os2.h:13,
from /usr/include/openssl/ssl.h:15,
from /home/asteriskpbx/src/asterisk-complete/asterisk/11/include/asterisk/tcptls.h:66,
from tcptls.c:44:
/usr/include/openssl/err.h:260:1: note: declared here
DEPRECATEDIN_1_0_0(void ERR_remove_state(unsigned long pid))
^~~~~~~~~~~~~~~~~~
tcptls.c: In function ‘__ssl_setup’:
tcptls.c:774:31: warning: implicit declaration of function ‘SSLv2_client_method’; did you mean ‘SSLv23_client_method’? [-Wimplicit-function-declaration]
cfg->ssl_ctx = SSL_CTX_new(SSLv2_client_method());
^~~~~~~~~~~~~~~~~~~
SSLv23_client_method
tcptls.c:774:31: warning: passing argument 1 of ‘SSL_CTX_new’ makes pointer from integer without a cast [-Wint-conversion]
cfg->ssl_ctx = SSL_CTX_new(SSLv2_client_method());
^~~~~~~~~~~~~~~~~~~~~
In file included from /home/asteriskpbx/src/asterisk-complete/asterisk/11/include/asterisk/tcptls.h:66,
from tcptls.c:44:
/usr/include/openssl/ssl.h:1478: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:784: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/e_os2.h:13,
from /usr/include/openssl/ssl.h:15,
from /home/asteriskpbx/src/asterisk-complete/asterisk/11/include/asterisk/tcptls.h:66,
from tcptls.c:44:
/usr/include/openssl/ssl.h:1854:1: note: declared here
DEPRECATEDIN_1_1_0(__owur const SSL_METHOD *TLSv1_client_method(void))
^~~~~~~~~~~~~~~~~~
make[1]: *** [/home/asteriskpbx/src/asterisk-complete/asterisk/11/Makefile.rules:119: tcptls.o] Error 1
make: *** [Makefile:387: main] Error 2