Asterisk 12.8.2 won't compile on Fedora 22

Hi Everyone,
Since I upgraded to Fedora 22 I can’t compile asterisk anymore.

chan_dahdi.c: In function "process_dahdi": chan_dahdi.c:17882:11: warning: array subscript is above array bounds [-Warray-bounds] if (c[i] == 0) { ^

Any clues?
Thanks for your help.

Jean-Louis

Asterisk 12 is only receiving security updates, if there were changes required to make 13 compile under Fedora 22 they wouldn’t have gotten into it. If 13 also exhibits the same problem then I’d suggest opening an issue[1] so it can be resolved. As it is I haven’t seen any comments anywhere about it.

[1] issues.asterisk.org/jira

Yes, 13.4.0 has the same problem.

It’s a shame that 12 won’t be updated. I can’t use wake up with 13!

CORRECTION.
With 13.4.0 you have the same error during the compilation of
[CC] chan_dahdi.c -> chan_dahdi.o but it doesn’t stop.
Nonetheless asterisk won’t link on the DAHDI channel.

And with dahdi-linux-complete-2.10.2-rc1+2.10.2-rc1 there is also an error during
the compilation

[code]gcc -g -O2 -I. -Ixtalk -Wall -Werror -c -o mpptalk.o mpptalk.c
mpptalk.c: In function “mpp_send_seg”:
mpptalk.c:515:28: error: logical not is only applied to the left hand side of co
mparison [-Werror=logical-not-parentheses]
if(!astribank->burn_state == BURN_STATE_STARTED) {
^
cc1: all warnings being treated as errors
: recipe for target ‘mpptalk.o’ failed

[/code]

Dahdi-linux-2.10.2 compiles OK but it isn’t used by asterisk 13.4.0.

[code][root@ns asterisk]# systemctl status dahdi
dahdi.service - LSB: DAHDI kernel modules
Loaded: loaded (/etc/rc.d/init.d/dahdi)
Active: active (exited) since Tue 2015-06-16 16:01:36 CEST; 33min ago
Docs: man:systemd-sysv-generator(8)
Process: 18814 ExecStop=/etc/rc.d/init.d/dahdi stop (code=exited, status=0/SUC
CESS)
Process: 18928 ExecStart=/etc/rc.d/init.d/dahdi start (code=exited, status=0/S
UCCESS)

Jun 16 16:01:36 ns systemd[1]: Starting LSB: DAHDI kernel modules…
Jun 16 16:01:36 ns systemd[1]: Started LSB: DAHDI kernel modules.
[/code]

[2015-06-16 16:01:48] WARNING[19945] chan_dahdi.c: Unable to open '/dev/dahdi/ch annel': No such file or directory [2015-06-16 16:01:48] ERROR[19945] chan_dahdi.c: Unable to open channel 1: No su ch file or directory here = 0, tmp->channel = 1, channel = 1 [2015-06-16 16:01:48] ERROR[19945] chan_dahdi.c: Unable to register channel '1' [2015-06-16 16:01:48] WARNING[19945] chan_dahdi.c: Channel '1' failure ignored: ignore_failed_channels. [2015-06-16 16:01:48] WARNING[19945] chan_dahdi.c: Unable to open '/dev/dahdi/channel': No such file or directory [2015-06-16 16:01:48] ERROR[19945] chan_dahdi.c: Unable to open channel 3: No such file or directory here = 0, tmp->channel = 3, channel = 3 [2015-06-16 16:01:48] ERROR[19945] chan_dahdi.c: Unable to register channel '3' [2015-06-16 16:01:48] WARNING[19945] chan_dahdi.c: Channel '3' failure ignored: ignore_failed_channels. [2015-06-16 16:01:48] WARNING[19945] chan_dahdi.c: Ignoring any changes to 'user base' (on reload) at line 23.

So, the problem is with DAHDI and not with Asterisk.