Mosiuoa Tsietsi
2011-Apr-19 14:50 UTC
[asterisk-users] chan_dahdi under bristuff 0.4.0-RC11 not building under Linux 10.04.2 LTS
Hi all, I downloaded a copy of bristuff 0.4.0-RC11 on my Ubuntu 10.04.2 LTS server machine with 2.6.32-24-generic-pae kernel. The prereq.sh script executes without complaints (BTW on my system, libncurses-dev evaluates to libncurses5-dev and libz-dev evaluates to zlib1g-dev). With the asterisk 1.4.41 package that is installed, a make menuselect operation indicates that all dependencies are met as the chan_dahdi entry allows me to insert a * instead of the XXX for unmet dependencies. However, a compilation attempt fails and results in the following error: [CC] chan_dahdi.c -> chan_dahdi.o chan_dahdi.c: In function ?dahdi_hangup?: chan_dahdi.c:3169: warning: unused variable ?outgoing? chan_dahdi.c: In function ?ss_thread?: chan_dahdi.c:6463: warning: unused variable ?network? chan_dahdi.c: At top level: chan_dahdi.c:9481: error: expected declaration specifiers or ?...? before ?q931_call? chan_dahdi.c: In function ?pri_find_tei?: chan_dahdi.c:9484: error: dereferencing pointer to incomplete type chan_dahdi.c:9485: error: dereferencing pointer to incomplete type chan_dahdi.c:9486: error: dereferencing pointer to incomplete type chan_dahdi.c:9486: error: dereferencing pointer to incomplete type chan_dahdi.c:9486: error: ?c? undeclared (first use in this function) chan_dahdi.c:9486: error: (Each undeclared identifier is reported only once chan_dahdi.c:9486: error: for each function it appears in.) chan_dahdi.c: In function ?pri_get_callonhold?: chan_dahdi.c:9494: error: dereferencing pointer to incomplete type chan_dahdi.c:9498: error: dereferencing pointer to incomplete type chan_dahdi.c:9498: error: dereferencing pointer to incomplete type chan_dahdi.c:9502: error: dereferencing pointer to incomplete type chan_dahdi.c: In function ?pri_destroy_callonhold?: chan_dahdi.c:9508: error: dereferencing pointer to incomplete type chan_dahdi.c:9514: error: dereferencing pointer to incomplete type chan_dahdi.c:9514: error: dereferencing pointer to incomplete type chan_dahdi.c:9517: error: dereferencing pointer to incomplete type chan_dahdi.c:9517: error: dereferencing pointer to incomplete type chan_dahdi.c:9518: error: dereferencing pointer to incomplete type chan_dahdi.c:9523: error: dereferencing pointer to incomplete type chan_dahdi.c: In function ?dahdi_sendtext?: chan_dahdi.c:14491: warning: implicit declaration of function ?dahdi_tdd_sendtext? chan_dahdi.c: At top level: chan_dahdi.c:14521: error: static declaration of ?dahdi_tdd_sendtext? follows non-static declaration chan_dahdi.c:14491: note: previous implicit declaration of ?dahdi_tdd_sendtext? was here make[1]: *** [chan_dahdi.o] Error 1 make: *** [channels] Error 2 Running a make clean, ./configure and running the make again does not help either. Any advice? Mos -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20110419/c1fad3ca/attachment-0001.htm>
Tzafrir Cohen
2011-Apr-20 08:58 UTC
[asterisk-users] chan_dahdi under bristuff 0.4.0-RC11 not building under Linux 10.04.2 LTS
On Tue, Apr 19, 2011 at 04:50:39PM +0200, Mosiuoa Tsietsi wrote:> Hi all, > > I downloaded a copy of bristuff 0.4.0-RC11 on my Ubuntu 10.04.2 LTS server > machine with 2.6.32-24-generic-pae kernel.Please, do yourself a favour and use Asterisk 1.8 with latest libpri instead. Bristuff uses a fork of Asterisk 1.4 and libpri 1.4.3 . While Asterisk's implementation has its share of bugs, the code is maintained, issues are tracked.> > The prereq.sh script executes without complaints (BTW on my system, > libncurses-dev evaluates to libncurses5-dev and libz-dev evaluates to > zlib1g-dev).Sounds fine. Also try: apt-get build-dep asterisk> > With the asterisk 1.4.41 package that is installed, a make menuselect > operation indicates that all dependencies are met as the chan_dahdi entry > allows me to insert a * instead of the XXX for unmet dependencies. However, > a compilation attempt fails and results in the following error: > > [CC] chan_dahdi.c -> chan_dahdi.o > chan_dahdi.c: In function ?dahdi_hangup?: > chan_dahdi.c:3169: warning: unused variable ?outgoing? > chan_dahdi.c: In function ?ss_thread?: > chan_dahdi.c:6463: warning: unused variable ?network? > chan_dahdi.c: At top level: > chan_dahdi.c:9481: error: expected declaration specifiers or ?...? before > ?q931_call?Without looking at the code, my first bet would be that your system has a newer version of libpri-dev and that maybe the install of bristuff did not override it. Or otherwise something to do with a mismatch with libpri.> chan_dahdi.c: In function ?pri_find_tei?: > chan_dahdi.c:9484: error: dereferencing pointer to incomplete type > chan_dahdi.c:9485: error: dereferencing pointer to incomplete type > chan_dahdi.c:9486: error: dereferencing pointer to incomplete type > chan_dahdi.c:9486: error: dereferencing pointer to incomplete type > chan_dahdi.c:9486: error: ?c? undeclared (first use in this function) > chan_dahdi.c:9486: error: (Each undeclared identifier is reported only once > chan_dahdi.c:9486: error: for each function it appears in.) > chan_dahdi.c: In function ?pri_get_callonhold?: > chan_dahdi.c:9494: error: dereferencing pointer to incomplete type > chan_dahdi.c:9498: error: dereferencing pointer to incomplete type > chan_dahdi.c:9498: error: dereferencing pointer to incomplete type > chan_dahdi.c:9502: error: dereferencing pointer to incomplete type > chan_dahdi.c: In function ?pri_destroy_callonhold?: > chan_dahdi.c:9508: error: dereferencing pointer to incomplete type > chan_dahdi.c:9514: error: dereferencing pointer to incomplete type > chan_dahdi.c:9514: error: dereferencing pointer to incomplete type > chan_dahdi.c:9517: error: dereferencing pointer to incomplete type > chan_dahdi.c:9517: error: dereferencing pointer to incomplete type > chan_dahdi.c:9518: error: dereferencing pointer to incomplete type > chan_dahdi.c:9523: error: dereferencing pointer to incomplete type > chan_dahdi.c: In function ?dahdi_sendtext?: > chan_dahdi.c:14491: warning: implicit declaration of function > ?dahdi_tdd_sendtext? > chan_dahdi.c: At top level: > chan_dahdi.c:14521: error: static declaration of ?dahdi_tdd_sendtext? > follows non-static declaration > chan_dahdi.c:14491: note: previous implicit declaration of > ?dahdi_tdd_sendtext? was here > make[1]: *** [chan_dahdi.o] Error 1 > make: *** [channels] Error 2-- Tzafrir Cohen icq#16849755 jabber:tzafrir.cohen at xorcom.com +972-50-7952406 mailto:tzafrir.cohen at xorcom.com http://www.xorcom.com iax:guest at local.xorcom.com/tzafrir