Asterisk 1.2.9.1 doesn't compile

I’ve got a strange problem while compiling latest Asterisk, got this error

chan_zap.c: In function pri_dchannel': chan_zap.c:9038: error: structure has no member namedcall’
make[1]: *** [chan_zap.o] Error 1
make[1]: Leaving directory `/usr/src/asterisk/channels’
make: *** [subdirs] Error 1

Why? Never I had any errors when i compile * :frowning:
Thanks!

chan_zap.c: In function âpri_dchannelâ:
chan_zap.c:9038: error: âpri_event_setup_ackâ has no member named âcallâ
make[1]: *** [chan_zap.o] Error 1
make[1]: Leaving directory `/usr/src/asterisk-1.2.9.1/channels’
make: *** [subdirs] Error 1

Running FC4x64

Using YUM everything is updated; including kernel-smp-devel

Unknown why it wont compile - 1.2.7 is running without any problems.

-Mark

I had similar problems on CentOS 4.3 and here is how I solved it:

open the source file channels/chan_zap.c and change that offending line 9038 from

chanpos = pri_fixup_principle(pri, chanpos, e->setup_ack.call);

to

chanpos = pri_fixup_principle(pri, chanpos, e->setup_ack.channel);

There is no such variable setup_ack.call in the entire source code of
either asterisk or zaptel. It will then compile.

[quote=“aott”]I had similar problems on CentOS 4.3 and here is how I solved it:

open the source file channels/chan_zap.c and change that offending line 9038 from

chanpos = pri_fixup_principle(pri, chanpos, e->setup_ack.call);

to

chanpos = pri_fixup_principle(pri, chanpos, e->setup_ack.channel);

There is no such variable setup_ack.call in the entire source code of
either asterisk or zaptel. It will then compile.[/quote]

Ok, now i’ve compiled and installed it, works!
Many thanks! :smile:

[quote=“Qlo”]
chan_zap.c: In function pri_dchannel': chan_zap.c:9038: error: structure has no member namedcall’
make[1]: *** [chan_zap.o] Error 1
make[1]: Leaving directory `/usr/src/asterisk/channels’
make: *** [subdirs] Error 1

Why? Never I had any errors when i compile * :frowning:
Thanks![/quote]

What version of libpri do you have installed?

I got the same error updating from 1.2.7.1 to 1.2.8 because I forgot to update to libpri 1.2.3

Ciao
Marcus

I had the same problem, and I updated my libpri and problem was solved.