[asterisk-bugs] [JIRA] (ASTERISK-27112) Cannot compile with AST_DEVMODE & OpenSSL >= 1.1

Jean Aunis - Prescom (JIRA) noreply at issues.asterisk.org
Fri Jul 7 09:57:58 CDT 2017


Jean Aunis - Prescom created ASTERISK-27112:
-----------------------------------------------

             Summary: Cannot compile with AST_DEVMODE & OpenSSL >= 1.1
                 Key: ASTERISK-27112
                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-27112
             Project: Asterisk
          Issue Type: Bug
      Security Level: None
    Affects Versions: 14.4.0
         Environment: Ubuntu 16.04, OpenSSL 1.1.0f
            Reporter: Jean Aunis - Prescom


Since my last system update, Asterisk fails to compile when configured with AST_DEVMODE. This seems to be due to the new version of OpenSSL (1.1.0f).

Here is the error I get :
{code}
libasteriskssl.c:48:12: error: ‘startup_complete’ defined but not used [-Werror=unused-variable]
 static int startup_complete;
            ^
libasteriskssl.c:54:22: error: ‘ssl_threadid’ defined but not used [-Werror=unused-function]
 static unsigned long ssl_threadid(void)
                      ^
libasteriskssl.c:59:13: error: ‘ssl_lock’ defined but not used [-Werror=unused-function]
 static void ssl_lock(int mode, int n, const char *file, int line)
{code}

I managed to work around this by adding a #ifdef around these definitions in asterisk/libasteriskssl.c.

Problem found in both version 14.4.1 and latest Git revision.



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list