[Asterisk-Users] chan_sip2 won't compile

Charlie Hedlin charlie at hedlin.com
Wed Oct 27 09:27:23 MST 2004


I installed chan_sip2B to test with (I would like outboundproxy support 
for broadvoice) and I am getting compile errors.  I will include the 
output at the end of this message.  I am running CVS head as of this morning

In digging into the code  I see that chan_sip.c uses 
"ast_bridged_channel(p->owner)" while chan_sip2.c uses 
"(p->owner->bridge)".  Do I have an incorect header file somewhere?

Thanks,
Charlie Hedlin

Output with compile error.
gcc -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes 
-Wmissing-declarations -g  -Iinclude -I../include -D_REENTRANT 
-D_GNU_SOURCE  -O6 -march=i686   -DZAPTEL_OPTIMIZATIONS  
-DASTERISK_VERSION=\"CVS-05/13/04-20:42:22\" 
-DASTERISK_VERSION_NUM=999999 -DINSTALL_PREFIX=\"\" 
-DASTETCDIR=\"/etc/asterisk\" -DASTLIBDIR=\"/usr/lib/asterisk\" 
-DASTVARLIBDIR=\"/var/lib/asterisk\" -DASTVARRUNDIR=\"/var/run\" 
-DASTSPOOLDIR=\"/var/spool/asterisk\" -DASTLOGDIR=\"/var/log/asterisk\" 
-DASTCONFPATH=\"/etc/asterisk/asterisk.conf\" 
-DASTMODDIR=\"/usr/lib/asterisk/modules\" 
-DASTAGIDIR=\"/var/lib/asterisk/agi-bin\"     -DBUSYDETECT_MARTIN      
-Wno-missing-prototypes -Wno-missing-declarations     -DIAX_TRUNKING   
-DCRYPTO -fPIC    -c -o chan_sip2.o chan_sip2.c
chan_sip2.c: In function `listinterfaces':
chan_sip2.c:999: warning: unused variable `iabuf'
chan_sip2.c:1003: warning: unused variable `netmask'
chan_sip2.c: In function `process_sdp':
chan_sip2.c:3231: error: structure has no member named `bridge'
chan_sip2.c:3234: error: structure has no member named `bridge'
chan_sip2.c:3236: error: structure has no member named `bridge'
chan_sip2.c: In function `attempt_transfer':
chan_sip2.c:8024: error: structure has no member named `bridge'
chan_sip2.c:8025: error: structure has no member named `bridge'
chan_sip2.c:8026: error: structure has no member named `bridge'
chan_sip2.c:8027: error: structure has no member named `bridge'
chan_sip2.c:8034: error: structure has no member named `bridge'
chan_sip2.c:8035: error: structure has no member named `bridge'
chan_sip2.c:8036: error: structure has no member named `bridge'
chan_sip2.c:8038: error: structure has no member named `bridge'
chan_sip2.c:8039: error: structure has no member named `bridge'
chan_sip2.c:8042: error: structure has no member named `bridge'
chan_sip2.c:8043: error: structure has no member named `bridge'
chan_sip2.c:8050: error: structure has no member named `bridge'
chan_sip2.c:8051: error: structure has no member named `bridge'
chan_sip2.c:8052: error: structure has no member named `bridge'
chan_sip2.c:8054: error: structure has no member named `bridge'
chan_sip2.c:8055: error: structure has no member named `bridge'
chan_sip2.c: In function `handle_request':
chan_sip2.c:8426: error: structure has no member named `bridge'
chan_sip2.c:8507: error: structure has no member named `bridge'
chan_sip2.c: In function `sip_getheader':
chan_sip2.c:10853: warning: too many arguments for format
chan_sip2.c: In function `load_module':
chan_sip2.c:11176: warning: passing arg 4 of `ast_channel_register_ex' 
from incompatible pointer type
chan_sip2.c: At top level:
chan_sip2.c:465: warning: `contact_text' defined but not used
chan_sip2.c:487: warning: `global_domain_strict' defined but not used
chan_sip2.c:5098: warning: `list_route' defined but not used
make[1]: *** [chan_sip2.o] Error 1
make[1]: Leaving directory `/usr/src/asterisk/channels'
make: *** [subdirs] Error 1
 



More information about the asterisk-users mailing list