libpri compile ubuntu 22.04

Jerry Geis <[email protected]>
Newsgroups gmane.comp.telephony.pbx.asterisk.user
Message-ID <CABr8-B4jLncUDy2uDmr6i5bW-K0FgWU8YxHoBUtyy8WB_F9J0w@mail.gmail.com>
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

-- 
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
      https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.