Hi,
We're using CentOS 6.4 with kernel 2.6.32-358.23.2.el6.x86_64
I'm trying to compile chan_extra-2.0.7 with an OpenVox G400E card, and getting this error:
chan_extra.c:10877: warning: no previous prototype for ‘deep_copy_extra_chan_conf’
chan_extra.c:10900: error: invalid storage class for function ‘setup_extra_int’
chan_extra.c:10899: warning: no previous prototype for ‘setup_extra_int’
chan_extra.c: In function ‘setup_extra_int’:
chan_extra.c:11047: warning: implicit declaration of function ‘start_gsm’
chan_extra.c: In function ‘sms_send_new’:
chan_extra.c:11070: error: invalid storage class for function ‘setup_extra’
chan_extra.c:11069: warning: no previous prototype for ‘setup_extra’
chan_extra.c:11100: error: invalid storage class for function ‘extra_status_data_provider_get’
chan_extra.c:11098: warning: no previous prototype for ‘extra_status_data_provider_get’
chan_extra.c:11171: error: invalid storage class for function ‘extra_channels_data_provider_get’
chan_extra.c:11169: warning: no previous prototype for ‘extra_channels_data_provider_get’
chan_extra.c:11203: error: invalid storage class for function ‘extra_version_data_provider_get’
chan_extra.c:11201: warning: no previous prototype for ‘extra_version_data_provider_get’
chan_extra.c:11230: error: initializer element is not constant
chan_extra.c:11230: error: (near initialization for ‘extra_status_data_provider.get’)
chan_extra.c:11235: error: initializer element is not constant
chan_extra.c:11235: error: (near initialization for ‘extra_channels_data_provider.get’)
chan_extra.c:11240: error: initializer element is not constant
chan_extra.c:11240: error: (near initialization for ‘extra_version_data_provider.get’)
chan_extra.c:11254: error: invalid storage class for function ‘sendsms_exec’
chan_extra.c:11250: warning: no previous prototype for ‘sendsms_exec’
chan_extra.c:11373: error: invalid storage class for function ‘sendpdu_exec’
chan_extra.c:11369: warning: no previous prototype for ‘sendpdu_exec’
chan_extra.c:11462: error: invalid storage class for function ‘forwardsms_exec’
chan_extra.c:11458: warning: no previous prototype for ‘forwardsms_exec’
chan_extra.c:11556: error: invalid storage class for function ‘load_module’
chan_extra.c:11555: warning: no previous prototype for ‘load_module’
chan_extra.c: In function ‘load_module’:
chan_extra.c:11599: error: ‘extra_gsm_cli’ undeclared (first use in this function)
chan_extra.c:11599: error: invalid operands to binary / (have ‘struct ast_cli_entry *’ and ‘long unsigned int’)
chan_extra.c: In function ‘sms_send_new’:
chan_extra.c:11621: error: invalid storage class for function ‘reload’
chan_extra.c:11620: warning: no previous prototype for ‘reload’
chan_extra.c:11643: error: initializer element is not constant
chan_extra.c:11643: error: (near initialization for ‘__mod_info.load’)
chan_extra.c:11643: error: initializer element is not constant
chan_extra.c:11643: error: (near initialization for ‘__mod_info.unload’)
chan_extra.c:11643: error: initializer element is not constant
chan_extra.c:11643: error: (near initialization for ‘__mod_info.reload’)
chan_extra.c:11643: error: invalid storage class for function ‘__reg_module’
chan_extra.c:11643: warning: no previous prototype for ‘__reg_module’
chan_extra.c:11643: error: invalid storage class for function ‘__unreg_module’
chan_extra.c:11643: warning: no previous prototype for ‘__unreg_module’
chan_extra.c:11643: error: expected declaration or statement at end of input
chan_extra.c:11643: warning: unused variable ‘ast_module_info’
chan_extra.c:6171: error: label ‘e_return’ used but not defined
chan_extra.c:6133: warning: unused variable ‘v’
make[1]: *** [chan_extra.o] Error 1
make: *** [channels] Error 2
I have already applied the code to the source as described here:
http://bbs.openvox.cn/viewthread.php?tid=2024&extra=page%3D1
Thanks.