[noPoll] Compile failure with SSL 1.0.2h

Chris Severance aur.severach en spamgourmet.com
Jue Mayo 26 19:36:04 CEST 2016


https://aur.archlinux.org/packages/nopoll/

Not compiling. Something in SSL seems to have changed.

% gcc --version
gcc (GCC) 6.1.1 20160501
Copyright (C) 2016 Free Software Foundation, Inc.

% openssl
OpenSSL> version
OpenSSL 1.0.2h  3 May 2016
OpenSSL> quit

% gcc ... nopoll_conn.c
nopoll_conn.c: In function '__nopoll_conn_get_ssl_context':
nopoll_conn.c:550:35: error: implicit declaration of function
'SSLv3_client_method' [-Werror=implicit-function-declaration]
   return SSL_CTX_new (is_client ? SSLv3_client_method () :
   SSLv3_server_method ());
                                   ^~~~~~~~~~~~~~~~~~~
nopoll_conn.c:550:60: error: implicit declaration of function
'SSLv3_server_method' [-Werror=implicit-function-declaration]
   return SSL_CTX_new (is_client ? SSLv3_client_method () :
   SSLv3_server_method ());
                                                            ^~~~~~~~~~~~~~~~~~~
nopoll_conn.c:550:23: error: passing argument 1 of 'SSL_CTX_new' makes
pointer from integer without a cast [-Werror=int-conversion]
   return SSL_CTX_new (is_client ? SSLv3_client_method () :
   SSLv3_server_method ());
                       ^~~~~~~~~
In file included from ./nopoll_private.h:46:0,
                 from nopoll_conn.c:50:
/usr/include/openssl/ssl.h:2131:10: note: expected 'const SSL_METHOD *
{aka const struct ssl_method_st *}' but argument is of type 'int'
 SSL_CTX *SSL_CTX_new(const SSL_METHOD *meth);
          ^~~~~~~~~~~


Más información sobre la lista de distribución noPoll