[Asterisk-Users] patch for chan_capi to compile with latest CVS
John Williams
JohnW at stratatel.com.au
Thu Nov 18 15:45:33 MST 2004
Yes I still get the same error. Following is a section from the
compiler. I had to truncate a little
xlaw.h:1636: warning: excess elements in scalar initializer
xlaw.h:1636: warning: (near initialization for `capiINT2ALAW')
xlaw.h:1636: warning: excess elements in scalar initializer
xlaw.h:1636: warning: (near initialization for `capiINT2ALAW')
xlaw.h:1636: warning: excess elements in scalar initializer
xlaw.h:1636: warning: (near initialization for `capiINT2ALAW')
xlaw.h:1636: warning: excess elements in scalar initializer
xlaw.h:1636: warning: (near initialization for `capiINT2ALAW')
xlaw.h:1636: warning: excess elements in scalar initializer
xlaw.h:1636: warning: (near initialization for `capiINT2ALAW')
xlaw.h:1636: warning: excess elements in scalar initializer
xlaw.h:1636: warning: (near initialization for `capiINT2ALAW')
xlaw.h:1636: warning: excess elements in scalar initializer
xlaw.h:1636: warning: (near initialization for `capiINT2ALAW')
xlaw.h:1657: warning: (near initialization for `capiINT2ALAW')
xlaw.h:1657: warning: excess elements in scalar initializer
xlaw.h:1657: warning: (near initialization for `capiINT2ALAW')
xlaw.h:1657: warning: excess elements in scalar initializer
xlaw.h:1657: warning: (near initialization for `capiINT2ALAW')
xlaw.h:1657: warning: excess elements in scalar initializer
xlaw.h:1657: warning: (near initialization for `capiINT2ALAW')
xlaw.h:1657: warning: excess elements in scalar initializer
xlaw.h:1657: warning: (near initialization for `capiINT2ALAW')
xlaw.h:1657: warning: excess elements in scalar initializer
xlaw.h:1657: warning: (near initialization for `capiINT2ALAW')
xlaw.h:1657: warning: excess elements in scalar initializer
xlaw.h:1657: warning: (near initialization for `capiINT2ALAW')
xlaw.h:1657: warning: excess elements in scalar initializer
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:159: error: syntax error before "FILE"
chan_capi_pvt.h:193: error: syntax error before '}' token
chan_capi_pvt.h:208: warning: structure defined inside parms
chan_capi_pvt.h:208: warning: empty declaration
chan_capi_pvt.h:227: warning: structure defined inside parms
chan_capi_pvt.h:227: warning: empty declaration
chan_capi_pvt.h:254: warning: structure defined inside parms
chan_capi_pvt.h:254: 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
John Williams
Technical Manager
Stratatel LTD
Phone 08 9212 4000
Mobile 0438 953 234
Fax 08 9212 4001
http://stratatel.com.au
johnw at stratatel.com.au
-----Original Message-----
From: Frank Sautter [mailto:asterisk at sautter.com]
Sent: Thursday, 18 November 2004 4:14 PM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [Asterisk-Users] patch for chan_capi to compile with latest
CVS
hi john,
John Williams schrieb:
> > i made a patch that allows the compilation of chan_capi-0.3.5
against
> > current CVS-HEAD of asterisk.
> If I remove the -2.95 from the CC declaration I get a very large
number
> of errors, the same ones I get when trying to compile without the
patch.
ok, i forgot to change this back to gcc. i just changed it in my local
sources and it also compiles without a problem with a gcc version 3.4.2.
have you done 'make install' to the asterisk cvs sources *first*?
chan_capi includes some header files from asterisk which are installed
in /usr/include/asterisk/.
alternatively you could change the include paths of chan_capi pointing
to your asterisk source tree.
if the problem persists you can send me the output of your compiler and
i could check where the problem is.
greetings to the other side of the globe
frank
_______________________________________________
Asterisk-Users mailing list
Asterisk-Users at lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
More information about the asterisk-users
mailing list