[asterisk-dev] chan_sip.c: current 1.2 branch compile error

Mark Hulber asterisk-admin at hulber.com
Wed May 24 04:56:03 MST 2006


Not sure where this was introduced, but recently:

My system:

   Linux asterisk.hulber.com 2.6.9-34.EL #1 Fri Feb 24 16:44:51 EST 2006 
i686 i686 i386 GNU/Linux


make[1]: Entering directory `/usr/src/asterisk/channels'
gcc  -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes 
-Wmissing-declarations -g3  -Iinclude -I../include -D_REENTRANT 
-D_GNU_SOURCE  -O6 -march=i686 -DZAPTEL_OPTIMIZATIONS         
-fomit-frame-pointer  -Wno-missing-prototypes -Wno-missing-declarations 
-DZAPATA_PRI -DIAX_TRUNKING -DCRYPTO -fPIC    -c -o chan_sip.o chan_sip.c
chan_sip.c: In function `check_user_full':
chan_sip.c:9312: error: initializer element is not constant
chan_sip.c:9312: error: (near initialization for `sip_header_function.read')
chan_sip.c:9333: error: initializer element is not constant
chan_sip.c:9333: error: (near initialization for 
`checksipdomain_function.read')
chan_sip.c:9497: error: initializer element is not constant
chan_sip.c:9497: error: (near initialization for 
`sipchaninfo_function.read')
chan_sip.c:13157: error: initializer element is not constant
chan_sip.c:13157: error: (near initialization for `sip_rtp.get_rtp_info')
chan_sip.c:13158: error: initializer element is not constant
chan_sip.c:13158: error: (near initialization for `sip_rtp.get_vrtp_info')
chan_sip.c:13159: error: initializer element is not constant
chan_sip.c:13159: error: (near initialization for `sip_rtp.set_rtp_peer')
chan_sip.c:13160: error: initializer element is not constant
chan_sip.c:13160: error: (near initialization for `sip_rtp.get_codec')
chan_sip.c:13251: error: initializer element is not constant
chan_sip.c:13251: error: (near initialization for `my_clis[0].handler')
chan_sip.c:13251: error: initializer element is not constant
chan_sip.c:13251: error: (near initialization for `my_clis[0].generator')
chan_sip.c:13251: error: initializer element is not constant
chan_sip.c:13251: error: (near initialization for `my_clis[0]')
chan_sip.c:13252: error: initializer element is not constant
chan_sip.c:13252: error: (near initialization for `my_clis[1].cmda')
chan_sip.c:13252: error: initializer element is not constant
chan_sip.c:13252: error: (near initialization for `my_clis[1].handler')
chan_sip.c:13252: error: initializer element is not constant
chan_sip.c:13252: error: (near initialization for `my_clis[1]')
chan_sip.c:13253: error: initializer element is not constant
chan_sip.c:13253: error: (near initialization for `my_clis[2].cmda')
chan_sip.c:13253: error: initializer element is not constant
chan_sip.c:13253: error: (near initialization for `my_clis[2].handler')
chan_sip.c:13253: error: initializer element is not constant
chan_sip.c:13253: error: (near initialization for `my_clis[2]')
chan_sip.c:13254: error: initializer element is not constant
chan_sip.c:13254: error: (near initialization for `my_clis[3].cmda')
chan_sip.c:13254: error: initializer element is not constant
chan_sip.c:13254: error: (near initialization for `my_clis[3].handler')
chan_sip.c:13254: error: initializer element is not constant
chan_sip.c:13254: error: (near initialization for `my_clis[3].generator')
chan_sip.c:13254: error: initializer element is not constant
chan_sip.c:13254: error: (near initialization for `my_clis[3]')
chan_sip.c:13255: error: initializer element is not constant
chan_sip.c:13255: error: (near initialization for `my_clis[4].cmda')
chan_sip.c:13255: error: initializer element is not constant
chan_sip.c:13255: error: (near initialization for `my_clis[4].handler')
chan_sip.c:13255: error: initializer element is not constant
chan_sip.c:13255: error: (near initialization for `my_clis[4]')
chan_sip.c:13256: error: initializer element is not constant
chan_sip.c:13256: error: (near initialization for `my_clis[5].cmda')
chan_sip.c:13256: error: initializer element is not constant
chan_sip.c:13256: error: (near initialization for `my_clis[5].handler')
chan_sip.c:13256: error: initializer element is not constant
chan_sip.c:13256: error: (near initialization for `my_clis[5]')
chan_sip.c:13257: error: initializer element is not constant
chan_sip.c:13257: error: (near initialization for `my_clis[6].cmda')
chan_sip.c:13257: error: initializer element is not constant
chan_sip.c:13257: error: (near initialization for `my_clis[6].handler')
chan_sip.c:13257: error: initializer element is not constant
chan_sip.c:13257: error: (near initialization for `my_clis[6].generator')
chan_sip.c:13257: error: initializer element is not constant
chan_sip.c:13257: error: (near initialization for `my_clis[6]')
chan_sip.c:13258: error: initializer element is not constant
chan_sip.c:13258: error: (near initialization for `my_clis[7].cmda')
chan_sip.c:13258: error: initializer element is not constant
chan_sip.c:13258: error: (near initialization for `my_clis[7].handler')
chan_sip.c:13258: error: initializer element is not constant
chan_sip.c:13258: error: (near initialization for `my_clis[7].generator')
chan_sip.c:13258: error: initializer element is not constant
chan_sip.c:13258: error: (near initialization for `my_clis[7]')
chan_sip.c:13259: error: initializer element is not constant
chan_sip.c:13259: error: (near initialization for `my_clis[8].cmda')
chan_sip.c:13259: error: initializer element is not constant
chan_sip.c:13259: error: (near initialization for `my_clis[8].handler')
chan_sip.c:13259: error: initializer element is not constant
chan_sip.c:13259: error: (near initialization for `my_clis[8]')
chan_sip.c:13260: error: initializer element is not constant
chan_sip.c:13260: error: (near initialization for `my_clis[9].cmda')
chan_sip.c:13260: error: initializer element is not constant
chan_sip.c:13260: error: (near initialization for `my_clis[9].handler')
chan_sip.c:13260: error: initializer element is not constant
chan_sip.c:13260: error: (near initialization for `my_clis[9]')
chan_sip.c:13261: error: initializer element is not constant
chan_sip.c:13261: error: (near initialization for `my_clis[10].cmda')
chan_sip.c:13261: error: initializer element is not constant
chan_sip.c:13261: error: (near initialization for `my_clis[10].handler')
chan_sip.c:13261: error: initializer element is not constant
chan_sip.c:13261: error: (near initialization for `my_clis[10]')
chan_sip.c:13262: error: initializer element is not constant
chan_sip.c:13262: error: (near initialization for `my_clis[11].cmda')
chan_sip.c:13262: error: initializer element is not constant
chan_sip.c:13262: error: (near initialization for `my_clis[11].handler')
chan_sip.c:13262: error: initializer element is not constant
chan_sip.c:13262: error: (near initialization for `my_clis[11]')
chan_sip.c:13263: error: initializer element is not constant
chan_sip.c:13263: error: (near initialization for `my_clis[12].cmda')
chan_sip.c:13263: error: initializer element is not constant
chan_sip.c:13263: error: (near initialization for `my_clis[12].handler')
chan_sip.c:13263: error: initializer element is not constant
chan_sip.c:13263: error: (near initialization for `my_clis[12].generator')
chan_sip.c:13263: error: initializer element is not constant
chan_sip.c:13263: error: (near initialization for `my_clis[12]')
chan_sip.c:13264: error: initializer element is not constant
chan_sip.c:13264: error: (near initialization for `my_clis[13].cmda')
chan_sip.c:13264: error: initializer element is not constant
chan_sip.c:13264: error: (near initialization for `my_clis[13].handler')
chan_sip.c:13264: error: initializer element is not constant
chan_sip.c:13264: error: (near initialization for `my_clis[13].generator')
chan_sip.c:13264: error: initializer element is not constant
chan_sip.c:13264: error: (near initialization for `my_clis[13]')
chan_sip.c:13265: error: initializer element is not constant
chan_sip.c:13265: error: (near initialization for `my_clis[14].cmda')
chan_sip.c:13265: error: initializer element is not constant
chan_sip.c:13265: error: (near initialization for `my_clis[14].handler')
chan_sip.c:13265: error: initializer element is not constant
chan_sip.c:13265: error: (near initialization for `my_clis[14]')
chan_sip.c:13266: error: initializer element is not constant
chan_sip.c:13266: error: (near initialization for `my_clis[15].cmda')
chan_sip.c:13266: error: initializer element is not constant
chan_sip.c:13266: error: (near initialization for `my_clis[15].handler')
chan_sip.c:13267: error: initializer element is not constant
chan_sip.c:13267: error: (near initialization for `my_clis[15]')
chan_sip.c:13268: error: initializer element is not constant
chan_sip.c:13268: error: (near initialization for `my_clis[16].cmda')
chan_sip.c:13268: error: initializer element is not constant
chan_sip.c:13268: error: (near initialization for `my_clis[16].handler')
chan_sip.c:13269: error: initializer element is not constant
chan_sip.c:13269: error: (near initialization for `my_clis[16].generator')
chan_sip.c:13269: error: initializer element is not constant
chan_sip.c:13269: error: (near initialization for `my_clis[16]')
chan_sip.c:13270: error: initializer element is not constant
chan_sip.c:13270: error: (near initialization for `my_clis[17].cmda')
chan_sip.c:13270: error: initializer element is not constant
chan_sip.c:13270: error: (near initialization for `my_clis[17].handler')
chan_sip.c:13271: error: initializer element is not constant
chan_sip.c:13271: error: (near initialization for `my_clis[17].generator')
chan_sip.c:13271: error: initializer element is not constant
chan_sip.c:13271: error: (near initialization for `my_clis[17]')
chan_sip.c:13272: error: initializer element is not constant
chan_sip.c:13272: error: (near initialization for `my_clis[18].cmda')
chan_sip.c:13272: error: initializer element is not constant
chan_sip.c:13272: error: (near initialization for `my_clis[18].handler')
chan_sip.c:13272: error: initializer element is not constant
chan_sip.c:13272: error: (near initialization for `my_clis[18]')
chan_sip.c:13273: error: initializer element is not constant
chan_sip.c:13273: error: (near initialization for `my_clis[19].cmda')
chan_sip.c:13273: error: initializer element is not constant
chan_sip.c:13273: error: (near initialization for `my_clis[19].handler')
chan_sip.c:13273: error: initializer element is not constant
chan_sip.c:13273: error: (near initialization for `my_clis[19]')
chan_sip.c:13274: error: initializer element is not constant
chan_sip.c:13274: error: (near initialization for `my_clis[20].cmda')
chan_sip.c:13274: error: initializer element is not constant
chan_sip.c:13274: error: (near initialization for `my_clis[20].handler')
chan_sip.c:13274: error: initializer element is not constant
chan_sip.c:13274: error: (near initialization for `my_clis[20]')
chan_sip.c:13275: error: initializer element is not constant
chan_sip.c:13275: error: (near initialization for `my_clis[21].cmda')
chan_sip.c:13275: error: initializer element is not constant
chan_sip.c:13275: error: (near initialization for `my_clis[21].handler')
chan_sip.c:13275: error: initializer element is not constant
chan_sip.c:13275: error: (near initialization for `my_clis[21]')
chan_sip.c:13276: error: initializer element is not constant
chan_sip.c:13276: error: (near initialization for `my_clis[22].cmda')
chan_sip.c:13276: error: initializer element is not constant
chan_sip.c:13276: error: (near initialization for `my_clis[22].handler')
chan_sip.c:13276: error: initializer element is not constant
chan_sip.c:13276: error: (near initialization for `my_clis[22]')
chan_sip.c:13277: error: initializer element is not constant
chan_sip.c:13277: error: (near initialization for `my_clis[23].cmda')
chan_sip.c:13277: error: initializer element is not constant
chan_sip.c:13277: error: (near initialization for `my_clis[23].handler')
chan_sip.c:13277: error: initializer element is not constant
chan_sip.c:13277: error: (near initialization for `my_clis[23]')
chan_sip.c:13282: warning: function declaration isn't a prototype
chan_sip.c:13340: warning: function declaration isn't a prototype
chan_sip.c:13429: warning: function declaration isn't a prototype
chan_sip.c:13434: warning: function declaration isn't a prototype
chan_sip.c:13439: warning: function declaration isn't a prototype
chan_sip.c:13441: error: syntax error at end of input
chan_sip.c: At top level:
chan_sip.c:407: warning: 'restart_monitor' declared `static' but never 
defined
chan_sip.c:900: warning: 'do_proxy_auth' declared `static' but never defined
chan_sip.c:910: warning: 'sip_request_call' declared `static' but never 
defined
chan_sip.c:911: warning: 'sip_devicestate' declared `static' but never 
defined
chan_sip.c:923: warning: 'add_realm_authentication' declared `static' 
but never defined
make[1]: *** [chan_sip.o] Error 1
make[1]: Leaving directory `/usr/src/asterisk/channels'
make: *** [subdirs] Error 1



More information about the asterisk-dev mailing list