[Asterisk-Users] Errors Compiling chan_capi 0.3.5
John Williams
JohnW at stratatel.com.au
Tue Nov 16 20:12:46 MST 2004
I need some help compiling up the latest version of chan_capi
I have tried it using both the latest stable and dev versions of
asterisk and get errors along the following lines every time.
I have set the following in the Makefile
ASTERISK_HEADER_DIR=$(INSTALL_PREFIX)/usr/src/asterisk/include/asterisk
I have been trying to get this going for days now and no amount of
searching the web has helped at all.
xlaw.h:1635: warning: (near initialization for `capiINT2ALAW')
xlaw.h:1635: warning: excess elements in scalar initializer
xlaw.h:1635: warning: (near initialization for `capiINT2ALAW')
xlaw.h:1635: warning: excess elements in scalar initializer
xlaw.h:1635: warning: (near initialization for `capiINT2ALAW')
.. Lot of warnings removed ....
xlaw.h:1657: warning: (near initialization for `capiINT2ALAW')
xlaw.h:1658: warning: excess elements in scalar initializer
xlaw.h:1658: warning: (near initialization for `capiINT2ALAW')
In file included from chan_capi.c:39:
chan_capi_pvt.h:76: warning: structure defined inside parms
chan_capi_pvt.h:76: warning: empty declaration
chan_capi_pvt.h:92: error: syntax error before "_cword"
chan_capi_pvt.h:92: warning: no semicolon at end of struct or union
chan_capi_pvt.h:103: error: conflicting types for `buf'
/usr/include/asterisk/utils.h:27: error: previous declaration of `buf'
chan_capi_pvt.h:189: error: syntax error before '}' token
chan_capi_pvt.h:204: warning: structure defined inside parms
chan_capi_pvt.h:204: warning: empty declaration
chan_capi_pvt.h:223: warning: structure defined inside parms
chan_capi_pvt.h:223: warning: empty declaration
chan_capi_pvt.h:250: warning: structure defined inside parms
chan_capi_pvt.h:250: warning: empty declaration
chan_capi.c:42: error: syntax error before "_cword"
chan_capi.c:43: error: storage class specified for parameter `desc'
chan_capi.c:43: error: parameter `desc' is initialized
chan_capi.c:52: error: storage class specified for parameter `tdesc'
chan_capi.c:52: error: parameter `tdesc' is initialized
chan_capi.c:57: error: storage class specified for parameter `type'
chan_capi.c:57: error: parameter `type' is initialized
chan_capi.c:60: error: storage class specified for parameter `usecnt'
chan_capi.c:62: error: storage class specified for parameter
`usecnt_lock'
chan_capi.c:62: error: parameter `usecnt_lock' is initialized
chan_capi.c:63: error: storage class specified for parameter `iflock'
chan_capi.c:63: error: parameter `iflock' is initialized
chan_capi.c:64: error: storage class specified for parameter `pipelock'
chan_capi.c:64: error: parameter `pipelock' is initialized
chan_capi.c:65: error: storage class specified for parameter `monlock'
chan_capi.c:65: error: parameter `monlock' is initialized
chan_capi.c:66: error: storage class specified for parameter `contrlock'
chan_capi.c:66: error: parameter `contrlock' is initialized
chan_capi.c:67: error: storage class specified for parameter
`capi_send_buffer_lock'
chan_capi.c:67: error: parameter `capi_send_buffer_lock' is initialized
chan_capi.c:68: error: storage class specified for parameter
`capi_put_lock'
chan_capi.c:68: error: parameter `capi_put_lock' is initialized
chan_capi.c:82: error: storage class specified for parameter
`capi_capability'
chan_capi.c:82: error: parameter `capi_capability' is initialized
chan_capi.c:84: error: storage class specified for parameter `profile'
chan_capi.c:86: error: storage class specified for parameter
`monitor_thread'
chan_capi.c:86: error: parameter `monitor_thread' is initialized
chan_capi.c:88: error: storage class specified for parameter `iflist'
chan_capi.c:88: error: parameter `iflist' is initialized
chan_capi.c:89: error: storage class specified for parameter `pipelist'
chan_capi.c:89: error: parameter `pipelist' is initialized
chan_capi.c:90: error: storage class specified for parameter
`capi_last_plci'
chan_capi.c:90: error: parameter `capi_last_plci' is initialized
chan_capi.c:91: error: storage class specified for parameter
`capi_controllers'
chan_capi.c:92: error: storage class specified for parameter
`capi_num_controllers'
chan_capi.c:92: error: parameter `capi_num_controllers' is initialized
chan_capi.c:93: error: storage class specified for parameter
`capi_counter'
chan_capi.c:93: error: parameter `capi_counter' is initialized
chan_capi.c:94: error: storage class specified for parameter
`capi_used_controllers'
chan_capi.c:94: error: parameter `capi_used_controllers' is initialized
chan_capi.c:96: error: storage class specified for parameter
`capi_send_buffer'
chan_capi.c:97: error: storage class specified for parameter
`capi_send_buffer_handle'
chan_capi.c:97: error: parameter `capi_send_buffer_handle' is
initialized
chan_capi.c:102: error: parameter `capidebug' is initialized
chan_capi.c:104: error: syntax error before "MESSAGE_EXCHANGE_ERROR"
chan_capi.c:122: error: syntax error before "tv"
chan_capi.c:178: error: conflicting types for `buf'
chan_capi_pvt.h:103: error: previous declaration of `buf'
chan_capi.c:181: error: syntax error before "pthread_mutex_lock"
chan_capi.c:2596: error: redeclaration of `isdnmode'
chan_capi_pvt.h:157: error: `isdnmode' previously declared here
chan_capi.c:2597: error: parameter `callgroup' is initialized
chan_capi.c:2597: error: redeclaration of `callgroup'
chan_capi_pvt.h:132: error: `callgroup' previously declared here
chan_capi.c:2600: error: syntax error before "cfg"
chan_capi.c:2659: error: parameter `__u' is initialized
chan_capi.c:2659: error: conflicting types for `__u'
chan_capi.c:2331: error: previous declaration of `__u'
chan_capi.c:2659: error: parameter `__c' is initialized
chan_capi.c:2659: error: redeclaration of `__c'
chan_capi.c:2331: error: `__c' previously declared here
chan_capi.c:2659: error: syntax error before "switch"
make: *** [chan_capi.o] Error 1
[root at localhost capi]#
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20041116/58e8ee85/attachment.htm
More information about the asterisk-users
mailing list