[asterisk-bugs] [JIRA] (ASTERISK-30240) app voicemail odbc build error with gcc 11.1

Asterisk Team (JIRA) noreply at issues.asterisk.org
Thu Mar 2 10:58:05 CST 2023


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

Asterisk Team updated ASTERISK-30240:
-------------------------------------

    Target Release Version/s: 20.2.0

> app voicemail odbc build error with gcc 11.1
> --------------------------------------------
>
>                 Key: ASTERISK-30240
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-30240
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Applications/app_voicemail/ODBC
>    Affects Versions: 16.28.0, 18.14.0
>            Reporter: Michael Bradeen
>      Target Release: 18.17.0, 20.2.0
>
>
> compile error when app voicemail w/ odbc is enabled via menuselect:
> {noformat}
> In function ‘ast_copy_string’,
>     inlined from ‘remove_file’ at app_voicemail_odbc.c:4492:3,
>     inlined from ‘vm_tempgreeting’ at app_voicemail_odbc.c:10860:3,
>     inlined from ‘vm_options’ at app_voicemail_odbc.c:10693:10,
>     inlined from ‘vm_execmain’ at app_voicemail_odbc.c:12124:10:
> /usr/src/asterisk/asterisk-18/include/asterisk/strings.h:412:295: error: writing 1 byte into a region of size 0 [-Werror=stringop-overflow=]
>   412 | AST_INLINE_API(
>       |                                                                                                                                                                                                                                                                                                       ^     
> app_voicemail_odbc.c: In function ‘vm_execmain’:
> app_voicemail_odbc.c:4484:14: note: at offset -1 into destination object ‘fn’ of size 4096
>  4484 |         char fn[PATH_MAX];
>       |              ^~
> cc1: all warnings being treated as errors
> make[1]: *** [/usr/src/asterisk/asterisk-18/Makefile.rules:150: app_voicemail_odbc.o] Error 1
> make[1]: Leaving directory '/usr/src/asterisk/asterisk-18/apps'
> make: *** [Makefile:396: apps] Error 2
> {noformat}



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



More information about the asterisk-bugs mailing list