[asterisk-users] libpri compile ubuntu 22.04

Jerry Geis jerry.geis at gmail.com
Mon Sep 26 19:00:57 CDT 2022


I am getting a compile error:

gcc -g  -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes
-Werror=zero-length-bounds -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:85: 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)) {
      |
       ~~~~~~~~~^~~


EVEN though I added the "-Werror=zero-length-bounds" to the makefile as you
can see.
How do I get libpri-1.6.0 to compile on Ubuntu 22.04 LTS ?

Thanks
Jerry
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20220926/d0c36646/attachment.html>


More information about the asterisk-users mailing list