[Asterisk-Users] patch for chan_capi to compile with latest CVS

2005-03-04 Thread Frank Sautter
hi * users,
due to the fundamental code changes in cvs tonight, it was necessary to 
update chan_capi to the new channel_tech design.

it completely replaces my former patch from november 2004.
the patch can be downloaded at
 http://www.levigo.de/VoIP/chan_capi-0.3.5-cvs-HEAD-patch.tar.bz2
regards
 frank sautter

___
Asterisk-Users mailing list
Asterisk-Users@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


Re: [Asterisk-Users] patch for chan_capi to compile with latest CVS

2004-11-18 Thread Frank Sautter
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
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


RE: [Asterisk-Users] patch for chan_capi to compile with latest CVS

2004-11-18 Thread John Williams
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
[EMAIL PROTECTED] 

-Original Message-
From: Frank Sautter [mailto:[EMAIL PROTECTED] 
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 

[Asterisk-Users] patch for chan_capi to compile with latest CVS

2004-11-17 Thread Frank Sautter
hi,
i made a patch that allows the compilation of chan_capi-0.3.5 against
current CVS-HEAD of asterisk.
it also incorporates the capiAnswerFax patch
the patch can be downloaded at
 http://www.levigo.de/VoIP/chan_capi-0.3.5-cvs-HEAD-patch.tar.bz2
regards
 Frank Sautter
___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


RE: [Asterisk-Users] patch for chan_capi to compile with latest CVS

2004-11-17 Thread John Williams
Hi Frank. When I try to compile using the patched fiels I get the
following error

[EMAIL PROTECTED] capi]# make
gcc-2.95 -pipe -Wall -Wmissing-prototypes -Wmissing-declarations -g
-I/usr/asterisk/include/asterisk -D_REENTRANT -D_GNU_SOURCE -O6
-DCAPI_ES -DCAPI_GAIN -DCAPI_SYNC -DUNSTABLE_CVS -Wno-missing-prototypes
-Wno-missing-declarations -DCRYPTO   -c -o chan_capi.o chan_capi.c
make: gcc-2.95: Command not found
make: *** [chan_capi.o] Error 127
[EMAIL PROTECTED] capi]#

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.

-Original Message-
From: Frank Sautter [mailto:[EMAIL PROTECTED] 
Sent: Thursday, 18 November 2004 2:07 AM
To: [EMAIL PROTECTED]
Subject: [Asterisk-Users] patch for chan_capi to compile with latest CVS

hi,

i made a patch that allows the compilation of chan_capi-0.3.5 against
current CVS-HEAD of asterisk.

it also incorporates the capiAnswerFax patch

the patch can be downloaded at
  http://www.levigo.de/VoIP/chan_capi-0.3.5-cvs-HEAD-patch.tar.bz2

regards
  Frank Sautter


___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users
___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users