[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 14:37:08 CDT 2022


Samuel Rey created ASTERISK-30122:
-------------------------------------

             Summary: 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
            Severity: Blocker


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