Frank Sautter
2004-Nov-17 11:07 UTC
[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
John Williams
2004-Nov-17 15:24 UTC
[Asterisk-Users] patch for chan_capi to compile with latest CVS
Hi Frank. When I try to compile using the patched fiels I get the following error [root@localhost 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 [root@localhost 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:asterisk@sautter.com] Sent: Thursday, 18 November 2004 2:07 AM To: asterisk-users@lists.digium.com 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 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
On Thu, Nov 18, 2004 at 03:27:40AM -0600, asterisk-users-request@lists.digium.com wrote:> I just purchased 10 G729 licenses for my asterisk box from Digium I was able > to register the key. But when i start asterisk it fails with the error > message: > [codec_g729a.so]Nov 18 09:27:01 WARNING[135073792]: loader.c:248 > ast_load_resource: Shared object "libc.so.6" not found > Nov 18 09:27:01 WARNING[135073792]: loader.c:380 load_modules: > Loading module codec_g729a.so failed!Isn't the codec_g729a.so not a binary you download instead of build yourself? In that case you can't run it with the FreeBSD version of Asterisk. You need to compile it on a linux machine and copy the libraries and binaries. Of course it would be much better if Digium would provide a FreeBSD binary of the library :-) Edwin -- Edwin Groothuis | Personal website: http://www.mavetju.org edwin@mavetju.org | Weblog: http://weblog.barnet.com.au/edwin/
John Williams
2004-Nov-18 15:45 UTC
[Asterisk-Users] patch for chan_capi to compile with latest CVS
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@stratatel.com.au -----Original Message----- From: Frank Sautter [mailto:asterisk@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.5against> > current CVS-HEAD of asterisk.> If I remove the -2.95 from the CC declaration I get a very largenumber> of errors, the same ones I get when trying to compile without thepatch. 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@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
Frank Sautter
2005-Mar-04 15:37 UTC
[Asterisk-Users] patch for chan_capi to compile with latest CVS
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