[sr-dev] new compiler warnings (on debian stretch) in latest master

Daniel-Constantin Mierla miconda at gmail.com
Mon Apr 10 16:04:03 CEST 2017


Iirc, the ipops warning are from files generated from Ragel specs,
something that the developer (Inaki) choose to use for the module, maybe
they need to be regenerated.

The ones from tlops related to deprecated functions in latest libssl: I
noticed some when I made the module to compiled with such libssl
version, but it looked a bit complex to change to new API without
affecting the use with older versions of libssl. At that time I had to
do also backporting, so I preferred to stay as less intrusive as
possible. It's still on my todo list to revisit again the new libssl api
and fix these warnings in a way or another.

Cheers,
Daniel

On 10.04.17 14:52, Juha Heinanen wrote:
> I built latest master on Debian stretch and got the compiler warnings
> below.
>
> -- Juha
>
> ---------------------------------------------------------------------------
>
> CC (gcc) [M ipops.so]		ip_parser.o
> ip_parser.c:18:18: warning: 'ip_parser_en_main' defined but not used [-Wunused-const-variable=]
>  static const int ip_parser_start = 1;
>                   ^~~~~~~~~~~~~~~~~
> ip_parser.c:16:18: warning: 'ip_parser_error' defined but not used [-Wunused-const-variable=]
>  
>                   ^              
> ip_parser.c:15:18: warning: 'ip_parser_first_final' defined but not used [-Wunused-const-variable=]
>  /** Data **/
>                   ^                    
> CC (gcc) [M ipops.so]		rfc1918_parser.o
> rfc1918_parser.c:19:18: warning: 'rfc1918_parser_en_main' defined but not used [-Wunused-const-variable=]
>  static const int rfc1918_parser_en_main = 1;
>                   ^~~~~~~~~~~~~~~~~~~~~~
> rfc1918_parser.c:17:18: warning: 'rfc1918_parser_error' defined but not used [-Wunused-const-variable=]
>  static const int rfc1918_parser_error = 0;
>                   ^~~~~~~~~~~~~~~~~~~~
> rfc1918_parser.c:16:18: warning: 'rfc1918_parser_first_final' defined but not used [-Wunused-const-variable=]
>  static const int rfc1918_parser_first_final = 28;
>                   ^~~~~~~~~~~~~~~~~~~~~~~~~~
> ....
>
> CC (gcc) [M tls.so]		tls_locking.o
> tls_locking.c:98:13: warning: 'locking_f' defined but not used [-Wunused-function]
>  static void locking_f(int mode, int n, const char* file, int line)
>              ^~~~~~~~~
> tls_locking.c:83:13: warning: 'dyn_destroy_f' defined but not used [-Wunused-function]
>  static void dyn_destroy_f(struct CRYPTO_dynlock_value *l,
>              ^~~~~~~~~~~~~
> tls_locking.c:65:13: warning: 'dyn_lock_f' defined but not used [-Wunused-function]
>  static void dyn_lock_f(int mode, struct CRYPTO_dynlock_value* l,
>              ^~~~~~~~~~
> tls_locking.c:42:37: warning: 'dyn_create_f' defined but not used [-Wunused-function]
>  static struct CRYPTO_dynlock_value* dyn_create_f(const char* file, int line)
>                                      ^~~~~~~~~~~~
> ...........
>
> C (gcc) [M tls.so]		tls_init.o
> tls_init.c: In function 'init_ssl_methods':
> tls_init.c:377:2: warning: 'TLSv1_client_method' is deprecated [-Wdeprecated-declarations]
>   ssl_methods[TLS_USE_TLSv1_cli - 1] = TLSv1_client_method();
>   ^~~~~~~~~~~
> In file included from /usr/include/openssl/ct.h:13:0,
>                  from /usr/include/openssl/ssl.h:61,
>                  from tls_init.c:45:
> /usr/include/openssl/ssl.h:1598:1: note: declared here
>  DEPRECATEDIN_1_1_0(__owur const SSL_METHOD *TLSv1_client_method(void)) /* TLSv1.0 */
>  ^
> tls_init.c:378:2: warning: 'TLSv1_server_method' is deprecated [-Wdeprecated-declarations]
>   ssl_methods[TLS_USE_TLSv1_srv - 1] = TLSv1_server_method();
>   ^~~~~~~~~~~
> In file included from /usr/include/openssl/ct.h:13:0,
>                  from /usr/include/openssl/ssl.h:61,
>                  from tls_init.c:45:
> /usr/include/openssl/ssl.h:1597:1: note: declared here
>  DEPRECATEDIN_1_1_0(__owur const SSL_METHOD *TLSv1_server_method(void)) /* TLSv1.0 */
>  ^
> tls_init.c:379:2: warning: 'TLSv1_method' is deprecated [-Wdeprecated-declarations]
>   ssl_methods[TLS_USE_TLSv1 - 1] = TLSv1_method();
>   ^~~~~~~~~~~
> In file included from /usr/include/openssl/ct.h:13:0,
>                  from /usr/include/openssl/ssl.h:61,
>                  from tls_init.c:45:
> /usr/include/openssl/ssl.h:1596:1: note: declared here
>  DEPRECATEDIN_1_1_0(__owur const SSL_METHOD *TLSv1_method(void)) /* TLSv1.0 */
>  ^
> tls_init.c:382:2: warning: 'TLSv1_1_client_method' is deprecated [-Wdeprecated-declarations]
>   ssl_methods[TLS_USE_TLSv1_1_cli - 1] = TLSv1_1_client_method();
>   ^~~~~~~~~~~
> In file included from /usr/include/openssl/ct.h:13:0,
>                  from /usr/include/openssl/ssl.h:61,
>                  from tls_init.c:45:
> /usr/include/openssl/ssl.h:1604:1: note: declared here
>  DEPRECATEDIN_1_1_0(__owur const SSL_METHOD *TLSv1_1_client_method(void)) /* TLSv1.1 */
>  ^
> tls_init.c:383:2: warning: 'TLSv1_1_server_method' is deprecated [-Wdeprecated-declarations]
>   ssl_methods[TLS_USE_TLSv1_1_srv - 1] = TLSv1_1_server_method();
>   ^~~~~~~~~~~
> In file included from /usr/include/openssl/ct.h:13:0,
>                  from /usr/include/openssl/ssl.h:61,
>                  from tls_init.c:45:
> /usr/include/openssl/ssl.h:1603:1: note: declared here
>  DEPRECATEDIN_1_1_0(__owur const SSL_METHOD *TLSv1_1_server_method(void)) /* TLSv1.1 */
>  ^
> tls_init.c:384:2: warning: 'TLSv1_1_method' is deprecated [-Wdeprecated-declarations]
>   ssl_methods[TLS_USE_TLSv1_1 - 1] = TLSv1_1_method();
>   ^~~~~~~~~~~
> In file included from /usr/include/openssl/ct.h:13:0,
>                  from /usr/include/openssl/ssl.h:61,
>                  from tls_init.c:45:
> /usr/include/openssl/ssl.h:1602:1: note: declared here
>  DEPRECATEDIN_1_1_0(__owur const SSL_METHOD *TLSv1_1_method(void)) /* TLSv1.1 */
>  ^
> tls_init.c:388:2: warning: 'TLSv1_2_client_method' is deprecated [-Wdeprecated-declarations]
>   ssl_methods[TLS_USE_TLSv1_2_cli - 1] = TLSv1_2_client_method();
>   ^~~~~~~~~~~
> In file included from /usr/include/openssl/ct.h:13:0,
>                  from /usr/include/openssl/ssl.h:61,
>                  from tls_init.c:45:
> /usr/include/openssl/ssl.h:1610:1: note: declared here
>  DEPRECATEDIN_1_1_0(__owur const SSL_METHOD *TLSv1_2_client_method(void)) /* TLSv1.2 */
>  ^
> tls_init.c:389:2: warning: 'TLSv1_2_server_method' is deprecated [-Wdeprecated-declarations]
>   ssl_methods[TLS_USE_TLSv1_2_srv - 1] = TLSv1_2_server_method();
>   ^~~~~~~~~~~
> In file included from /usr/include/openssl/ct.h:13:0,
>                  from /usr/include/openssl/ssl.h:61,
>                  from tls_init.c:45:
> /usr/include/openssl/ssl.h:1609:1: note: declared here
>  DEPRECATEDIN_1_1_0(__owur const SSL_METHOD *TLSv1_2_server_method(void)) /* TLSv1.2 */
>  ^
> tls_init.c:390:2: warning: 'TLSv1_2_method' is deprecated [-Wdeprecated-declarations]
>   ssl_methods[TLS_USE_TLSv1_2 - 1] = TLSv1_2_method();
>   ^~~~~~~~~~~
> In file included from /usr/include/openssl/ct.h:13:0,
>                  from /usr/include/openssl/ssl.h:61,
>                  from tls_init.c:45:
> /usr/include/openssl/ssl.h:1608:1: note: declared here
>  DEPRECATEDIN_1_1_0(__owur const SSL_METHOD *TLSv1_2_method(void)) /* TLSv1.2 */
>  ^
>
> _______________________________________________
> sr-dev mailing list
> sr-dev at lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev

-- 
Daniel-Constantin Mierla
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio Advanced Training - May 22-24 (USA) - www.asipto.com
Kamailio World Conference - May 8-10, 2017 - www.kamailioworld.com




More information about the sr-dev mailing list