[asterisk-ss7] l4isup.c:79:24: error: dahdi/user.h: No such file or directory
toasterisk
toasterisk at gmail.com
Fri Aug 28 04:05:53 CDT 2009
hello:
i try to compile asterisk-1.4.20, zaptel-1.4.10 and chan_ss7-1.2.1 under
centos-5.3.
the asterisk and zaptel are ok. i can compile that without problem.
but when i compile the chan_ss7, i get error with l4isup.c.
=============this is my Makefile in chan_ss7======
# non-standard places.
INCLUDE+=-I /usr/src/zaptel-1.4.10/kernel
CFLAGS+=-ZAPTEL
INCLUDE+=-I /usr/src/asterisk-1.4.20
=====================================
i have pointed to right dires. how the system still look for dahdi.
i never compile dahdi.
=============compile error===========
[root at bogon chan_ss7-1.2.1]# make
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
gcc: unrecognized option '-ZAPTEL'
l4isup.c:79:24: error: dahdi/user.h: No such file or directory
l4isup.c: In function ‘mtp_enqueue_isup_packet’:
l4isup.c:370: warning: format ‘%lu’ expects type ‘long unsigned int’, but
argument 7 has type ‘unsigned int’
l4isup.c: In function ‘ss7_handle_event’:
l4isup.c:2209: error: ‘DAHDI_EVENT_DIALCOMPLETE’ undeclared (first use in
this function)
l4isup.c:2209: error: (Each undeclared identifier is reported only once
l4isup.c:2209: error: for each function it appears in.)
l4isup.c:2212: error: ‘DAHDI_DIALING’ undeclared (first use in this
function)
l4isup.c: In function ‘ss7_read’:
l4isup.c:2295: error: ‘ELAST’ undeclared (first use in this function)
l4isup.c: In function ‘ss7_write’:
l4isup.c:2412: error: ‘ELAST’ undeclared (first use in this function)
l4isup.c: In function ‘continuity_check_thread_main’:
l4isup.c:3942: error: ‘ELAST’ undeclared (first use in this function)
l4isup.c: In function ‘set_gain’:
l4isup.c:4384: error: storage size of ‘gain’ isn’t known
l4isup.c:4391: error: ‘DAHDI_GETGAINS’ undeclared (first use in this
function)
l4isup.c:4401: error: ‘DAHDI_LAW_ALAW’ undeclared (first use in this
function)
l4isup.c:4414: error: ‘DAHDI_LAW_MULAW’ undeclared (first use in this
function)
l4isup.c:4432: error: ‘DAHDI_SETGAINS’ undeclared (first use in this
function)
l4isup.c:4384: warning: unused variable ‘gain’
l4isup.c: In function ‘init_pvt’:
l4isup.c:4490: error: ‘DAHDI_LAW_ALAW’ undeclared (first use in this
function)
l4isup.c: In function ‘setup_cic’:
l4isup.c:4535: warning: format ‘%lu’ expects type ‘long unsigned int’, but
argument 6 has type ‘unsigned int’
l4isup.c:4530: warning: unused variable ‘x’
l4isup.c: In function ‘isup_init’:
l4isup.c:4740: warning: format ‘%lu’ expects type ‘long unsigned int’, but
argument 6 has type ‘unsigned int’
make: *** [l4isup.o] Error 1
=============================================
i think is a common problem when compiling chan_ss7. does anyone know that
error?
please give a hint!
thanks!
to*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-ss7/attachments/20090828/2fac9628/attachment.htm
More information about the asterisk-ss7
mailing list