hello:<br>i try to compile asterisk-1.4.20, zaptel-1.4.10 and chan_ss7-1.2.1 under centos-5.3.<br>the asterisk and zaptel are ok. i can compile that without problem.<br>but when i compile the chan_ss7, i get error with l4isup.c.<br>
=============this is my Makefile in chan_ss7======<br># non-standard places.<br>INCLUDE+=-I /usr/src/zaptel-1.4.10/kernel<br>CFLAGS+=-ZAPTEL<br>INCLUDE+=-I /usr/src/asterisk-1.4.20<br>=====================================<br>
i have pointed to right dires. how the system still look for dahdi.<br>i never compile dahdi.<br>=============compile error===========<br>[root@bogon chan_ss7-1.2.1]# make<br>gcc -ZAPTEL -I /usr/src/zaptel-1.4.10/kernel -I /usr/src/asterisk-1.4.20 -g -pipe -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -D_REENTRANT -D_GNU_SOURCE -DPIC -fpic -finline-functions -O4 -DCHAN_SS7_VERSION=\"1.2.1\" -c -o l4isup.o l4isup.c<br>
gcc: unrecognized option '-ZAPTEL'<br>l4isup.c:79:24: error: dahdi/user.h: No such file or directory<br>l4isup.c: In function ‘mtp_enqueue_isup_packet’:<br>l4isup.c:370: warning: format ‘%lu’ expects type ‘long unsigned int’, but argument 7 has type ‘unsigned int’<br>
l4isup.c: In function ‘ss7_handle_event’:<br>l4isup.c:2209: error: ‘DAHDI_EVENT_DIALCOMPLETE’ undeclared (first use in this function)<br>l4isup.c:2209: error: (Each undeclared identifier is reported only once<br>l4isup.c:2209: error: for each function it appears in.)<br>
l4isup.c:2212: error: ‘DAHDI_DIALING’ undeclared (first use in this function)<br>l4isup.c: In function ‘ss7_read’:<br>l4isup.c:2295: error: ‘ELAST’ undeclared (first use in this function)<br>l4isup.c: In function ‘ss7_write’:<br>
l4isup.c:2412: error: ‘ELAST’ undeclared (first use in this function)<br>l4isup.c: In function ‘continuity_check_thread_main’:<br>l4isup.c:3942: error: ‘ELAST’ undeclared (first use in this function)<br>l4isup.c: In function ‘set_gain’:<br>
l4isup.c:4384: error: storage size of ‘gain’ isn’t known<br>l4isup.c:4391: error: ‘DAHDI_GETGAINS’ undeclared (first use in this function)<br>l4isup.c:4401: error: ‘DAHDI_LAW_ALAW’ undeclared (first use in this function)<br>
l4isup.c:4414: error: ‘DAHDI_LAW_MULAW’ undeclared (first use in this function)<br>l4isup.c:4432: error: ‘DAHDI_SETGAINS’ undeclared (first use in this function)<br>l4isup.c:4384: warning: unused variable ‘gain’<br>l4isup.c: In function ‘init_pvt’:<br>
l4isup.c:4490: error: ‘DAHDI_LAW_ALAW’ undeclared (first use in this function)<br>l4isup.c: In function ‘setup_cic’:<br>l4isup.c:4535: warning: format ‘%lu’ expects type ‘long unsigned int’, but argument 6 has type ‘unsigned int’<br>
l4isup.c:4530: warning: unused variable ‘x’<br>l4isup.c: In function ‘isup_init’:<br>l4isup.c:4740: warning: format ‘%lu’ expects type ‘long unsigned int’, but argument 6 has type ‘unsigned int’<br>make: *** [l4isup.o] Error 1<br>
=============================================<br>i think is a common problem when compiling chan_ss7. does anyone know that error?<br>please give a hint!<br>thanks!<br>to*<br>