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

Michael Bradeen (JIRA) noreply at issues.asterisk.org
Mon Sep 19 11:51:09 CDT 2022


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

Michael Bradeen updated ASTERISK-30240:
---------------------------------------

    Summary: app voicemail odbc build error with gcc 11.1  (was: app voicemail odbc build error on gcc 11.1)

> 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
>
> compile error when app voicemail w/ odbc is enabled via menuselect:
> 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



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



More information about the asterisk-bugs mailing list