[asterisk-bugs] [JIRA] (ASTERISK-30273) test_mwi: compilation fails on 32-bit Debian

Asterisk Team (JIRA) noreply at issues.asterisk.org
Thu Dec 15 07:06:05 CST 2022


     [ https://issues.asterisk.org/jira/browse/ASTERISK-30273?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Asterisk Team updated ASTERISK-30273:
-------------------------------------

    Target Release Version/s: 18.16.0

> test_mwi: compilation fails on 32-bit Debian
> --------------------------------------------
>
>                 Key: ASTERISK-30273
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-30273
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Tests/Portability
>    Affects Versions: 20.0.0
>         Environment: Linux debian 4.19.0-22-686-pae #1 SMP Debian 4.19.260-1 (2022-09-29) i686 GNU/Linux
>            Reporter: N A
>            Assignee: N A
>      Target Release: 18.16.0, 19.8.0, 20.1.0
>
>
> Compilation fails:
> {noformat}
>    [CCi] test_mwi.i -> test_mwi.o
> test_mwi.c: In function ‘mailbox_to_num’:
> test_mwi.c:73:27: error: passing argument 2 of ‘ast_str_to_umax’ from incompatible pointer type [-Werror=incompatible-pointer-types]
>   if (ast_str_to_umax(++p, num)) {
>                            ^~~
> In file included from test_mwi.c:27:
> /usr/src/asterisk-20.0.0/include/asterisk/conversions.h:134:49: note: expected ‘uintmax_t *’ {aka ‘long long unsigned int *’} but argument is of type ‘size_t *’ {aka ‘unsigned int *’}
>  int ast_str_to_umax(const char *str, uintmax_t *res);
>                                       ~~~~~~~~~~~^~~
>    [CCi] test_cdr.i -> test_cdr.o
>    [CCi] test_res_prometheus.i -> test_res_prometheus.o
> {noformat}
> Also:
> {noformat}
>    [CCi] test_stasis.i -> test_stasis.o
> test_stasis.c: In function ‘dump_consumer’:
> test_stasis.c:2198:12: error: format ‘%ld’ expects argument of type ‘long int’, but argument 6 has type ‘size_t’ {aka ‘unsigned int’} [-Werror=format=]
>   ast_test_status_update(test, "Messages received: %ld  Final? %s\n", cts->consumer->messages_rxed_len,
>             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> cc1: all warnings being treated as errors
> make[1]: *** [/usr/src/asterisk-20.0.0/Makefile.rules:150: test_stasis.o] Error 1
> {noformat}
> Also:
> {noformat}
> make[1]: Leaving directory '/usr/src/asterisk-20.0.0/menuselect'
>    [CCi] test_stasis_state.i -> test_stasis_state.o
> test_stasis_state.c: In function ‘create_foo_type_message’:
> test_stasis_state.c:259:26: error: passing argument 2 of ‘ast_str_to_umax’ from incompatible pointer type [-Werror=incompatible-pointer-types]
>   if (ast_str_to_umax(id, &foo->bar)) {
>                           ^~~~~~~~~
> In file included from test_stasis_state.c:27:
> /usr/src/asterisk-20.0.0/include/asterisk/conversions.h:134:49: note: expected ‘uintmax_t *’ {aka ‘long long unsigned int *’} but argument is of type ‘size_t *’ {aka ‘unsigned int *’}
>  int ast_str_to_umax(const char *str, uintmax_t *res);
>                                       ~~~~~~~~~~~^~~
> cc1: all warnings being treated as errors
> make[1]: *** [/usr/src/asterisk-20.0.0/Makefile.rule
> {noformat}
> Outside of the tests:
> {noformat}
>    [CCi] res_pjsip_outbound_authenticator_digest.i -> res_pjsip_outbound_authenticator_digest.o
> res_pjsip_outbound_authenticator_digest.c: In function ‘set_outbound_authentication_credentials’:
> res_pjsip_outbound_authenticator_digest.c:387:474: error: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 6 has type ‘size_t’ {aka ‘unsigned int’} [-Werror=format=]
>    ast_debug(3, "Set %"PRIu64" credentials in auth session\n", cred_count);
>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           ^
> res_pjsip_outbound_authenticator_digest.c:389:78: error: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 6 has type ‘size_t’ {aka ‘unsigned int’} [-Werror=format=]
>    ast_log(LOG_ERROR, "Failed to set %"PRIu64" credentials in auth session\n", cred_count);
>                                                                               ^~~~~~~~~~~~~
> cc1: all warnings being treated as errors
> make[1]: *** [/usr/src/asterisk-20.0.0/Makefile.rules:150: res_pjsip_outbound_authenticator_digest.o] Error 1
> {noformat}



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



More information about the asterisk-bugs mailing list