[asterisk-bugs] [JIRA] (ASTERISK-30273) test_mwi: compilation fails on Debian 10
N A (JIRA)
noreply at issues.asterisk.org
Sun Oct 23 09:59:08 CDT 2022
[ https://issues.asterisk.org/jira/browse/ASTERISK-30273?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
N A updated ASTERISK-30273:
---------------------------
Description:
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}
was:
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}
> test_mwi: compilation fails on Debian 10
> ----------------------------------------
>
> 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: Debian 10
> Reporter: N A
>
> 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}
--
This message was sent by Atlassian JIRA
(v6.2#6252)
More information about the asterisk-bugs
mailing list