Make sure that that you have given the right path to asterisk and zaptel lib in the make file. On 5/30/09, Lakshmi Narasimhan .R <aravind132 at gmail.com> wrote: > Hi, > > I am trying to compile chan_ss7 1.0.0 under asterisk 1.2 and zaptel > 1.2 with mtp3d support. I am getting the below error. > > [root at hostname chan_ss7-1.0.0]# INCLUDE="-I/usr/src/zaptel > -I/usr/src/asterisk/include" make > Makefile:155: .depend: No such file or directory > gcc -MM -E -I/usr/src/zaptel -I/usr/src/asterisk/include > -I../source/telephony/zaptel -I../source/telephony/asterisk/include -g > -pipe -Wall -Wstrict-prototypes -Wmissing-prototypes > -Wmissing-declarations -D_REENTRANT -D_GNU_SOURCE -DPIC -fpic > -finline-functions -O4 -DCHAN_SS7_VERSION=\"1.0.0\" chan_ss7.c > l4isup.c isup.c mtp.c utils.c config.c cluster.c lffifo.c transport.c > mtp3io.c astconfig.c aststubs.c mtp3d.c l4isup.h isup.h mtp.h utils.h > config.h cluster.h lffifo.h transport.h aststubs.h astversion.h > mtp3io.h > .depend.new && mv -f .depend.new .depend || rm -f > .depend.new > gcc -c -I/usr/src/zaptel -I/usr/src/asterisk/include > -I../source/telephony/zaptel -I../source/telephony/asterisk/include -g > -pipe -Wall -Wstrict-prototypes -Wmissing-prototypes > -Wmissing-declarations -D_REENTRANT -D_GNU_SOURCE -DPIC -fpic > -finline-functions -O4 -DCHAN_SS7_VERSION=\"1.0.0\" -o chan_ss7.o > chan_ss7.c > chan_ss7.c:119: warning: initialization from incompatible pointer type > chan_ss7.c:127: warning: initialization from incompatible pointer type > chan_ss7.c: In function `monitor_main': > chan_ss7.c:644: warning: 'res' might be used uninitialized in this function > chan_ss7.c:646: warning: 'n_fds' might be used uninitialized in this > function > gcc -I/usr/src/zaptel -I/usr/src/asterisk/include > -I../source/telephony/zaptel -I../source/telephony/asterisk/include -g > -pipe -Wall -Wstrict-prototypes -Wmissing-prototypes > -Wmissing-declarations -D_REENTRANT -D_GNU_SOURCE -DPIC -fpic > -finline-functions -O4 -DCHAN_SS7_VERSION=\"1.0.0\" -c -o l4isup.o > l4isup.c > l4isup.c:844: warning: 'ss7_send_digit_end' defined but not used > gcc -c -I/usr/src/zaptel -I/usr/src/asterisk/include > -I../source/telephony/zaptel -I../source/telephony/asterisk/include -g > -pipe -Wall -Wstrict-prototypes -Wmissing-prototypes > -Wmissing-declarations -D_REENTRANT -D_GNU_SOURCE -DPIC -fpic > -finline-functions -O4 -DCHAN_SS7_VERSION=\"1.0.0\" -o isup.o isup.c > gcc -c -I/usr/src/zaptel -I/usr/src/asterisk/include > -I../source/telephony/zaptel -I../source/telephony/asterisk/include -g > -pipe -Wall -Wstrict-prototypes -Wmissing-prototypes > -Wmissing-declarations -D_REENTRANT -D_GNU_SOURCE -DPIC -fpic > -finline-functions -O4 -DCHAN_SS7_VERSION=\"1.0.0\" -o mtp.o mtp.c > mtp.c:540: warning: 'find_alternative_slink' defined but not used > gcc -c -I/usr/src/zaptel -I/usr/src/asterisk/include > -I../source/telephony/zaptel -I../source/telephony/asterisk/include -g > -pipe -Wall -Wstrict-prototypes -Wmissing-prototypes > -Wmissing-declarations -D_REENTRANT -D_GNU_SOURCE -DPIC -fpic > -finline-functions -O4 -DCHAN_SS7_VERSION=\"1.0.0\" -o utils.o utils.c > gcc -c -I/usr/src/zaptel -I/usr/src/asterisk/include > -I../source/telephony/zaptel -I../source/telephony/asterisk/include -g > -pipe -Wall -Wstrict-prototypes -Wmissing-prototypes > -Wmissing-declarations -D_REENTRANT -D_GNU_SOURCE -DPIC -fpic > -finline-functions -O4 -DCHAN_SS7_VERSION=\"1.0.0\" -o config.o > config.c > gcc -c -I/usr/src/zaptel -I/usr/src/asterisk/include > -I../source/telephony/zaptel -I../source/telephony/asterisk/include -g > -pipe -Wall -Wstrict-prototypes -Wmissing-prototypes > -Wmissing-declarations -D_REENTRANT -D_GNU_SOURCE -DPIC -fpic > -finline-functions -O4 -DCHAN_SS7_VERSION=\"1.0.0\" -o cluster.o > cluster.c > gcc -c -I/usr/src/zaptel -I/usr/src/asterisk/include > -I../source/telephony/zaptel -I../source/telephony/asterisk/include -g > -pipe -Wall -Wstrict-prototypes -Wmissing-prototypes > -Wmissing-declarations -D_REENTRANT -D_GNU_SOURCE -DPIC -fpic > -finline-functions -O4 -DCHAN_SS7_VERSION=\"1.0.0\" -o lffifo.o > lffifo.c > gcc -I/usr/src/zaptel -I/usr/src/asterisk/include > -I../source/telephony/zaptel -I../source/telephony/asterisk/include -g > -pipe -Wall -Wstrict-prototypes -Wmissing-prototypes > -Wmissing-declarations -D_REENTRANT -D_GNU_SOURCE -DPIC -fpic > -finline-functions -O4 -DCHAN_SS7_VERSION=\"1.0.0\" -c -o > transport.o transport.c > transport.c:367: warning: 'transport_socket' defined but not used > gcc -c -I/usr/src/zaptel -I/usr/src/asterisk/include > -I../source/telephony/zaptel -I../source/telephony/asterisk/include -g > -pipe -Wall -Wstrict-prototypes -Wmissing-prototypes > -Wmissing-declarations -D_REENTRANT -D_GNU_SOURCE -DPIC -fpic > -finline-functions -O4 -DCHAN_SS7_VERSION=\"1.0.0\" -o mtp3io.o > mtp3io.c > gcc -shared -o chan_ss7.so chan_ss7.o l4isup.o isup.o mtp.o utils.o > config.o cluster.o lffifo.o transport.o mtp3io.o > gcc -I/usr/src/zaptel -I/usr/src/asterisk/include > -I../source/telephony/zaptel -I../source/telephony/asterisk/include -g > -pipe -Wall -Wstrict-prototypes -Wmissing-prototypes > -Wmissing-declarations -D_REENTRANT -D_GNU_SOURCE -DPIC -fpic > -finline-functions -O4 -DCHAN_SS7_VERSION=\"1.0.0\" -c -o mtp3d.o > mtp3d.c > gcc -c -I/usr/src/zaptel -I/usr/src/asterisk/include > -I../source/telephony/zaptel -I../source/telephony/asterisk/include -g > -pipe -Wall -Wstrict-prototypes -Wmissing-prototypes > -Wmissing-declarations -D_REENTRANT -D_GNU_SOURCE -DPIC -fpic > -finline-functions -O4 -DCHAN_SS7_VERSION=\"1.0.0\" -o aststubs.o > aststubs.c > aststubs.c: In function `schedule': > aststubs.c:284: error: `__new_prev' undeclared (first use in this function) > aststubs.c:284: error: (Each undeclared identifier is reported only once > aststubs.c:284: error: for each function it appears in.) > make: *** [aststubs.o] Error 1 > > > whereas if i compile just chan_ss7.so the compilation completes > without any error and is creating the chan_ss7.so file. > > > [root at hostname chan_ss7-1.0.0]# INCLUDE="-I/usr/src/zaptel > -I/usr/src/asterisk/include" make chan_ss7.so > Makefile:155: .depend: No such file or directory > gcc -MM -E -I/usr/src/zaptel -I/usr/src/asterisk/include > -I../source/telephony/zaptel -I../source/telephony/asterisk/include -g > -pipe -Wall -Wstrict-prototypes -Wmissing-prototypes > -Wmissing-declarations -D_REENTRANT -D_GNU_SOURCE -DPIC -fpic > -finline-functions -O4 -DCHAN_SS7_VERSION=\"1.0.0\" chan_ss7.c > l4isup.c isup.c mtp.c utils.c config.c cluster.c lffifo.c transport.c > mtp3io.c astconfig.c aststubs.c mtp3d.c l4isup.h isup.h mtp.h utils.h > config.h cluster.h lffifo.h transport.h aststubs.h astversion.h > mtp3io.h > .depend.new && mv -f .depend.new .depend || rm -f > .depend.new > gcc -c -I/usr/src/zaptel -I/usr/src/asterisk/include > -I../source/telephony/zaptel -I../source/telephony/asterisk/include -g > -pipe -Wall -Wstrict-prototypes -Wmissing-prototypes > -Wmissing-declarations -D_REENTRANT -D_GNU_SOURCE -DPIC -fpic > -finline-functions -O4 -DCHAN_SS7_VERSION=\"1.0.0\" -o chan_ss7.o > chan_ss7.c > chan_ss7.c:119: warning: initialization from incompatible pointer type > chan_ss7.c:127: warning: initialization from incompatible pointer type > chan_ss7.c: In function `monitor_main': > chan_ss7.c:644: warning: 'res' might be used uninitialized in this function > chan_ss7.c:646: warning: 'n_fds' might be used uninitialized in this > function > gcc -I/usr/src/zaptel -I/usr/src/asterisk/include > -I../source/telephony/zaptel -I../source/telephony/asterisk/include -g > -pipe -Wall -Wstrict-prototypes -Wmissing-prototypes > -Wmissing-declarations -D_REENTRANT -D_GNU_SOURCE -DPIC -fpic > -finline-functions -O4 -DCHAN_SS7_VERSION=\"1.0.0\" -c -o l4isup.o > l4isup.c > l4isup.c:844: warning: 'ss7_send_digit_end' defined but not used > gcc -c -I/usr/src/zaptel -I/usr/src/asterisk/include > -I../source/telephony/zaptel -I../source/telephony/asterisk/include -g > -pipe -Wall -Wstrict-prototypes -Wmissing-prototypes > -Wmissing-declarations -D_REENTRANT -D_GNU_SOURCE -DPIC -fpic > -finline-functions -O4 -DCHAN_SS7_VERSION=\"1.0.0\" -o isup.o isup.c > gcc -c -I/usr/src/zaptel -I/usr/src/asterisk/include > -I../source/telephony/zaptel -I../source/telephony/asterisk/include -g > -pipe -Wall -Wstrict-prototypes -Wmissing-prototypes > -Wmissing-declarations -D_REENTRANT -D_GNU_SOURCE -DPIC -fpic > -finline-functions -O4 -DCHAN_SS7_VERSION=\"1.0.0\" -o mtp.o mtp.c > mtp.c:540: warning: 'find_alternative_slink' defined but not used > gcc -c -I/usr/src/zaptel -I/usr/src/asterisk/include > -I../source/telephony/zaptel -I../source/telephony/asterisk/include -g > -pipe -Wall -Wstrict-prototypes -Wmissing-prototypes > -Wmissing-declarations -D_REENTRANT -D_GNU_SOURCE -DPIC -fpic > -finline-functions -O4 -DCHAN_SS7_VERSION=\"1.0.0\" -o utils.o utils.c > gcc -c -I/usr/src/zaptel -I/usr/src/asterisk/include > -I../source/telephony/zaptel -I../source/telephony/asterisk/include -g > -pipe -Wall -Wstrict-prototypes -Wmissing-prototypes > -Wmissing-declarations -D_REENTRANT -D_GNU_SOURCE -DPIC -fpic > -finline-functions -O4 -DCHAN_SS7_VERSION=\"1.0.0\" -o config.o > config.c > gcc -c -I/usr/src/zaptel -I/usr/src/asterisk/include > -I../source/telephony/zaptel -I../source/telephony/asterisk/include -g > -pipe -Wall -Wstrict-prototypes -Wmissing-prototypes > -Wmissing-declarations -D_REENTRANT -D_GNU_SOURCE -DPIC -fpic > -finline-functions -O4 -DCHAN_SS7_VERSION=\"1.0.0\" -o cluster.o > cluster.c > gcc -c -I/usr/src/zaptel -I/usr/src/asterisk/include > -I../source/telephony/zaptel -I../source/telephony/asterisk/include -g > -pipe -Wall -Wstrict-prototypes -Wmissing-prototypes > -Wmissing-declarations -D_REENTRANT -D_GNU_SOURCE -DPIC -fpic > -finline-functions -O4 -DCHAN_SS7_VERSION=\"1.0.0\" -o lffifo.o > lffifo.c > gcc -I/usr/src/zaptel -I/usr/src/asterisk/include > -I../source/telephony/zaptel -I../source/telephony/asterisk/include -g > -pipe -Wall -Wstrict-prototypes -Wmissing-prototypes > -Wmissing-declarations -D_REENTRANT -D_GNU_SOURCE -DPIC -fpic > -finline-functions -O4 -DCHAN_SS7_VERSION=\"1.0.0\" -c -o > transport.o transport.c > transport.c:367: warning: 'transport_socket' defined but not used > gcc -c -I/usr/src/zaptel -I/usr/src/asterisk/include > -I../source/telephony/zaptel -I../source/telephony/asterisk/include -g > -pipe -Wall -Wstrict-prototypes -Wmissing-prototypes > -Wmissing-declarations -D_REENTRANT -D_GNU_SOURCE -DPIC -fpic > -finline-functions -O4 -DCHAN_SS7_VERSION=\"1.0.0\" -o mtp3io.o > mtp3io.c > gcc -shared -o chan_ss7.so chan_ss7.o l4isup.o isup.o mtp.o utils.o > config.o cluster.o lffifo.o transport.o mtp3io.o > [root at hostname chan_ss7-1.0.0]# > > I would like to know if mtp3d is supported under asterisk 1.2 with > zaptel 1.2. If they are supported what could possibly cause this > error. > > Thanks for the help. > > -- > Aravind > > _______________________________________________ > --Bandwidth and Colocation Provided by http://www.api-digital.com-- > > asterisk-ss7 mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-ss7 > -- Sent from my mobile device