[asterisk-bugs] [JIRA] (PRI-189) LibPRI no longer compiles
N A (JIRA)
noreply at issues.asterisk.org
Mon Aug 8 18:13:09 CDT 2022
N A created PRI-189:
-----------------------
Summary: LibPRI no longer compiles
Key: PRI-189
URL: https://issues.asterisk.org/jira/browse/PRI-189
Project: LibPRI
Issue Type: Bug
Security Level: None
Components: General
Affects Versions: 1.6.0
Environment: Debian 11, Linux pbxdev 5.10.0-14-amd64 #1 SMP Debian 5.10.113-1 (2022-04-29) x86_64 GNU/Linux
Reporter: N A
Assignee: Richard Mudgett
Severity: Blocker
LibPRI no longer compiles, as of sometime recently - lots of new gcc warnings/errors that need to be fixed ASAP:
{noformat}
libpri-1.6.0.tar.gz 100%[=============================================================================================================>] 332.60K 1.11MB/s in 0.3s
2022-08-08 19:09:00 (1.11 MB/s) - ‘libpri-1.6.0.tar.gz’ saved [340578/340578]
libpri-1.6.0/
libpri-1.6.0/libpri.h
libpri-1.6.0/pri_facility.c
libpri-1.6.0/prisched.c
libpri-1.6.0/.cleancount
libpri-1.6.0/copy_string.c
libpri-1.6.0/rosetest.c
libpri-1.6.0/LICENSE
libpri-1.6.0/asn1.h
libpri-1.6.0/pri_q931.h
libpri-1.6.0/ChangeLog
libpri-1.6.0/pridump.c
libpri-1.6.0/testprilib.c
libpri-1.6.0/rose.c
libpri-1.6.0/rose_etsi_aoc.c
libpri-1.6.0/compat.h
libpri-1.6.0/.gitignore
libpri-1.6.0/libpri-1.6.0-summary.txt
libpri-1.6.0/.version
libpri-1.6.0/compiler.h
libpri-1.6.0/q931.c
libpri-1.6.0/rose_etsi_ect.c
libpri-1.6.0/pri_facility.h
libpri-1.6.0/rose_internal.h
libpri-1.6.0/pritest.c
libpri-1.6.0/pri_aoc.c
libpri-1.6.0/.lastclean
libpri-1.6.0/rose_etsi_cc.c
libpri-1.6.0/pri.c
libpri-1.6.0/pri_cc.c
libpri-1.6.0/.gitreview
libpri-1.6.0/pri_internal.h
libpri-1.6.0/Makefile
libpri-1.6.0/pri_q921.h
libpri-1.6.0/rose_etsi_mwi.c
libpri-1.6.0/asn1_primitive.c
libpri-1.6.0/rose.h
libpri-1.6.0/rose_qsig_name.c
libpri-1.6.0/rose_qsig_mwi.c
libpri-1.6.0/rose_etsi_diversion.c
libpri-1.6.0/q921.c
libpri-1.6.0/rose_qsig_aoc.c
libpri-1.6.0/README
libpri-1.6.0/TODO
libpri-1.6.0/rose_qsig_ct.c
libpri-1.6.0/rose_qsig_diversion.c
libpri-1.6.0/rose_address.c
libpri-1.6.0/rose_qsig_cc.c
libpri-1.6.0/libpri-1.6.0-summary.html
libpri-1.6.0/rose_other.c
libpri-1.6.0/build_tools/
libpri-1.6.0/build_tools/make_version_c
libpri-1.6.0/build_tools/make_version
libpri-1.6.0/doc/
libpri-1.6.0/doc/cc_ptp_monitor.fsm
libpri-1.6.0/doc/cc_qsig_monitor_flattened.fsm
libpri-1.6.0/doc/cc_ptp_agent_flattened.fsm
libpri-1.6.0/doc/cc_qsig_agent.fsm
libpri-1.6.0/doc/cc_qsig_agent_flattened.fsm
libpri-1.6.0/doc/cc_qsig_monitor.fsm
libpri-1.6.0/doc/cc_ptp_agent.fsm
libpri-1.6.0/doc/cc_ptmp_monitor_flattened.fsm
libpri-1.6.0/doc/cc_ptmp_agent_flattened.fsm
libpri-1.6.0/doc/cc_ptmp_agent.fsm
libpri-1.6.0/doc/cc_ptmp_monitor.fsm
libpri-1.6.0/doc/cc_ptp_monitor_flattened.fsm
libpri-1.6.0/rose_q931.c
gcc -g -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -fPIC -O2 -MD -MT pri.o -MF .pri.o.d -MP -c -o pri.o pri.c
gcc -g -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -fPIC -O2 -MD -MT q921.o -MF .q921.o.d -MP -c -o q921.o q921.c
q921.c: In function ‘q921_dump’:
q921.c:1333:71: error: array subscript 0 is outside the bounds of an interior zero-length array ‘u_int8_t[0]’ {aka ‘unsigned char[]’} [-Werror=zero-length-bounds]
1333 | if ((h->u.ft == 3) && (h->u.m3 == 0) && (h->u.m2 == 0) && (h->u.data[0] == 0x0f)) {
| ~~~~~~~~~^~~
In file included from pri_internal.h:35,
from q921.c:38:
pri_q921.h:136:11: note: while referencing ‘data’
136 | u_int8_t data[0]; /* Any further data */
| ^~~~
q921.c:1338:38: error: array subscript 3 is outside the bounds of an interior zero-length array ‘u_int8_t[0]’ {aka ‘unsigned char[]’} [-Werror=zero-length-bounds]
1338 | type = q921_tei_mgmt2str(h->u.data[3]);
| ~~~~~~~~~^~~
In file included from pri_internal.h:35,
from q921.c:38:
pri_q921.h:136:11: note: while referencing ‘data’
136 | u_int8_t data[0]; /* Any further data */
| ^~~~
q921.c:1340:19: error: array subscript 1 is outside the bounds of an interior zero-length array ‘u_int8_t[0]’ {aka ‘unsigned char[]’} [-Werror=zero-length-bounds]
1340 | ri = (h->u.data[1] << 8) | h->u.data[2];
| ~~~~~~~~~^~~
In file included from pri_internal.h:35,
from q921.c:38:
pri_q921.h:136:11: note: while referencing ‘data’
136 | u_int8_t data[0]; /* Any further data */
| ^~~~
q921.c:1340:40: error: array subscript 2 is outside the bounds of an interior zero-length array ‘u_int8_t[0]’ {aka ‘unsigned char[]’} [-Werror=zero-length-bounds]
1340 | ri = (h->u.data[1] << 8) | h->u.data[2];
| ~~~~~~~~~^~~
In file included from pri_internal.h:35,
from q921.c:38:
pri_q921.h:136:11: note: while referencing ‘data’
136 | u_int8_t data[0]; /* Any further data */
| ^~~~
q921.c:1342:13: error: array subscript 4 is outside the bounds of an interior zero-length array ‘u_int8_t[0]’ {aka ‘unsigned char[]’} [-Werror=zero-length-bounds]
1342 | action = &h->u.data[4];
| ^~~~~~~~~~~~~
In file included from pri_internal.h:35,
from q921.c:38:
pri_q921.h:136:11: note: while referencing ‘data’
136 | u_int8_t data[0]; /* Any further data */
| ^~~~
q921.c: In function ‘q921_mdl_send.constprop’:
q921.c:215:9: error: array subscript 0 is outside the bounds of an interior zero-length array ‘u_int8_t[0]’ {aka ‘unsigned char[]’} [-Werror=zero-length-bounds]
215 | f->data[0] = 0x0f; /* Management entity */
| ~~~~~~~^~~
In file included from pri_internal.h:35,
from q921.c:38:
pri_q921.h:136:11: note: while referencing ‘data’
136 | u_int8_t data[0]; /* Any further data */
| ^~~~
q921.c:216:9: error: array subscript 1 is outside the bounds of an interior zero-length array ‘u_int8_t[0]’ {aka ‘unsigned char[]’} [-Werror=zero-length-bounds]
216 | f->data[1] = (ri >> 8) & 0xff;
| ~~~~~~~^~~
In file included from pri_internal.h:35,
from q921.c:38:
pri_q921.h:136:11: note: while referencing ‘data’
136 | u_int8_t data[0]; /* Any further data */
| ^~~~
q921.c:217:9: error: array subscript 2 is outside the bounds of an interior zero-length array ‘u_int8_t[0]’ {aka ‘unsigned char[]’} [-Werror=zero-length-bounds]
217 | f->data[2] = ri & 0xff;
| ~~~~~~~^~~
In file included from pri_internal.h:35,
from q921.c:38:
pri_q921.h:136:11: note: while referencing ‘data’
136 | u_int8_t data[0]; /* Any further data */
| ^~~~
q921.c:218:9: error: array subscript 3 is outside the bounds of an interior zero-length array ‘u_int8_t[0]’ {aka ‘unsigned char[]’} [-Werror=zero-length-bounds]
218 | f->data[3] = message;
| ~~~~~~~^~~
In file included from pri_internal.h:35,
from q921.c:38:
pri_q921.h:136:11: note: while referencing ‘data’
136 | u_int8_t data[0]; /* Any further data */
| ^~~~
q921.c:219:9: error: array subscript 4 is outside the bounds of an interior zero-length array ‘u_int8_t[0]’ {aka ‘unsigned char[]’} [-Werror=zero-length-bounds]
219 | f->data[4] = (ai << 1) | 1;
| ~~~~~~~^~~
In file included from pri_internal.h:35,
from q921.c:38:
pri_q921.h:136:11: note: while referencing ‘data’
136 | u_int8_t data[0]; /* Any further data */
| ^~~~
q921.c: In function ‘q921_receive’:
q921.c:1501:13: error: array subscript 0 is outside the bounds of an interior zero-length array ‘u_int8_t[0]’ {aka ‘unsigned char[]’} [-Werror=zero-length-bounds]
1501 | if (h->data[0] != 0x0f) {
| ~~~~~~~^~~
In file included from pri_internal.h:35,
from q921.c:38:
pri_q921.h:136:11: note: while referencing ‘data’
136 | u_int8_t data[0]; /* Any further data */
| ^~~~
q921.c:1510:13: error: array subscript 3 is outside the bounds of an interior zero-length array ‘u_int8_t[0]’ {aka ‘unsigned char[]’} [-Werror=zero-length-bounds]
1510 | if (h->data[3] != Q921_TEI_IDENTITY_CHECK_RESPONSE
| ~~~~~~~^~~
In file included from pri_internal.h:35,
from q921.c:38:
pri_q921.h:136:11: note: while referencing ‘data’
136 | u_int8_t data[0]; /* Any further data */
| ^~~~
q921.c:1511:15: error: array subscript 4 is outside the bounds of an interior zero-length array ‘u_int8_t[0]’ {aka ‘unsigned char[]’} [-Werror=zero-length-bounds]
1511 | && !(h->data[4] & 0x01)) {
| ~~~~~~~^~~
In file included from pri_internal.h:35,
from q921.c:38:
pri_q921.h:136:11: note: while referencing ‘data’
136 | u_int8_t data[0]; /* Any further data */
| ^~~~
q921.c:1528:15: error: array subscript 1 is outside the bounds of an interior zero-length array ‘u_int8_t[0]’ {aka ‘unsigned char[]’} [-Werror=zero-length-bounds]
1528 | ri = (h->data[1] << 8) | h->data[2];
| ~~~~~~~^~~
In file included from pri_internal.h:35,
from q921.c:38:
pri_q921.h:136:11: note: while referencing ‘data’
136 | u_int8_t data[0]; /* Any further data */
| ^~~~
q921.c:1528:34: error: array subscript 2 is outside the bounds of an interior zero-length array ‘u_int8_t[0]’ {aka ‘unsigned char[]’} [-Werror=zero-length-bounds]
1528 | ri = (h->data[1] << 8) | h->data[2];
| ~~~~~~~^~~
In file included from pri_internal.h:35,
from q921.c:38:
pri_q921.h:136:11: note: while referencing ‘data’
136 | u_int8_t data[0]; /* Any further data */
| ^~~~
q921.c:1529:16: error: array subscript 4 is outside the bounds of an interior zero-length array ‘u_int8_t[0]’ {aka ‘unsigned char[]’} [-Werror=zero-length-bounds]
1529 | tei = (h->data[4] >> 1);
| ~~~~~~~^~~
In file included from pri_internal.h:35,
from q921.c:38:
pri_q921.h:136:11: note: while referencing ‘data’
136 | u_int8_t data[0]; /* Any further data */
| ^~~~
q921.c:1531:17: error: array subscript 3 is outside the bounds of an interior zero-length array ‘u_int8_t[0]’ {aka ‘unsigned char[]’} [-Werror=zero-length-bounds]
1531 | switch (h->data[3]) {
| ~~~~~~~^~~
In file included from pri_internal.h:35,
from q921.c:38:
pri_q921.h:136:11: note: while referencing ‘data’
136 | u_int8_t data[0]; /* Any further data */
| ^~~~
q921.c:1606:12: error: array subscript 4 is outside the bounds of an interior zero-length array ‘u_int8_t[0]’ {aka ‘unsigned char[]’} [-Werror=zero-length-bounds]
1606 | action = &h->data[4];
| ^~~~~~~~~~~
In file included from pri_internal.h:35,
from q921.c:38:
pri_q921.h:136:11: note: while referencing ‘data’
136 | u_int8_t data[0]; /* Any further data */
| ^~~~
cc1: all warnings being treated as errors
make: *** [Makefile:190: q921.o] Error 1
{noformat}
--
This message was sent by Atlassian JIRA
(v6.2#6252)
More information about the asterisk-bugs
mailing list