[asterisk-bugs] [JIRA] (ASTERISK-30122) GCC error when compiling Asterisk 18.13.0 with developer tools support
Samuel Rey (JIRA)
noreply at issues.asterisk.org
Sun Jul 3 17:27:08 CDT 2022
[ https://issues.asterisk.org/jira/browse/ASTERISK-30122?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Samuel Rey closed ASTERISK-30122.
---------------------------------
Resolution: Configuration Issue
Caused by third-party patch
> GCC error when compiling Asterisk 18.13.0 with developer tools support
> ----------------------------------------------------------------------
>
> Key: ASTERISK-30122
> URL: https://issues.asterisk.org/jira/browse/ASTERISK-30122
> Project: Asterisk
> Issue Type: Bug
> Security Level: None
> Components: Tests/testsuite
> Affects Versions: 18.13.0
> Environment: Raspberry Pi 3B+ running Raspbian 11 (Linux kernel 5.10.103-v7+)
> Reporter: Samuel Rey
>
> When compiling Asterisk 18.13.0, with developer testsuite, the following GCC error is printed, and compilation halts:
> {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]
> 73 | if (ast_str_to_umax(++p, num)) {
> | ^~~
> | |
> | size_t * {aka unsigned int *}
> In file included from test_mwi.c:27:
> /usr/src/asterisk-18.13.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 *'}
> 134 | int ast_str_to_umax(const char *str, uintmax_t *res);
> | ~~~~~~~~~~~^~~
> cc1: all warnings being treated as errors
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.2#6252)
More information about the asterisk-bugs
mailing list