[Asterisk-bsd] chan_capi doesn't compile in FreeBSD
Jan Stocker
Jan.Stocker at t-online.de
Fri Mar 18 00:00:39 CST 2005
You must also use my chan_capi port !!!!
Jan
On Thu, 2005-03-17 at 20:58 +0100, Claudius Zingerli wrote:
> Dear Guys,
>
> Has anyone ever been able to get the chan_capi running in FreeBSD and
> integrating into Asterisk?
> I successfully installed C4B (capi4bsd) and am also able the make calls
> with "capitest -s ...".
> As Jan Stocker previously explained (February 27 2005) on this
> mailinglist I also installed his LibLinuxCapi. When I try to compile
> chan_capi-0.3.5 it says something about missing headers (linux/capi.h)
> and about six pages of gmake errors (variables undeclared)
>
> My System:
> FreeBSD 5.3-RELEASE
> Asterisk 1.0.6 (from ports)
> c4b 0.93 (with some manual patches: Start scripts were not installed)
> LibLinuxCapi (also with some manual patches: Prefix, Moved to ports
> tree, downloaded isdn4k-utils-CVS-2005-02-01.tar.bz2 manually)
>
> Errors building chan_capi:
> asterisk# gmake
> gcc -pipe -Wall -Wmissing-prototypes -Wmissing-declarations -g
> -I/usr/local/include -D_REENTRANT -D_GNU_SOURCE -O6 -march=i386
> -DCAPI_ES -DCAPI_GAIN -DCAPI_SYNC -DUNSTABLE_CVS -Wno-missing-prototypes
> -Wno-missing-declarations -DCRYPTO -c -o chan_capi.o chan_capi.c
> chan_capi.c:35:24: linux/capi.h: No such file or directory
> In file included from chan_capi.c:39:
> chan_capi_pvt.h:92: error: syntax error before "_cword"
> chan_capi.c:42: error: syntax error before "ast_capi_MessageNumber"
> chan_capi.c:42: warning: type defaults to `int' in declaration of
> `ast_capi_MessageNumber'
> chan_capi.c:42: warning: data definition has no type or storage class
> chan_capi.c:86: warning: initialization makes pointer from integer
> without a cast
> chan_capi.c:104: error: syntax error before "_capi_put_cmsg"
> chan_capi.c:104: error: syntax error before '*' token
> chan_capi.c:104: warning: return type defaults to `int'
> chan_capi.c: In function `_capi_put_cmsg':
> chan_capi.c:105: error: syntax error before "error"
> chan_capi.c:110: error: `error' undeclared (first use in this function)
> chan_capi.c:110: error: (Each undeclared identifier is reported only once
> chan_capi.c:110: error: for each function it appears in.)
> chan_capi.c:110: warning: implicit declaration of function `capi20_put_cmsg'
> chan_capi.c:110: error: `CMSG' undeclared (first use in this function)
> chan_capi.c: At top level:
> chan_capi.c:119: error: syntax error before "check_wait_get_cmsg"
> chan_capi.c:119: error: syntax error before '*' token
> chan_capi.c:119: warning: return type defaults to `int'
> chan_capi.c: In function `check_wait_get_cmsg':
> chan_capi.c:120: error: syntax error before "Info"
> chan_capi.c:124: error: `Info' undeclared (first use in this function)
> chan_capi.c:124: warning: implicit declaration of function
> `capi20_waitformessage'
> chan_capi.c:131: warning: implicit declaration of function `capi_get_cmsg'
> chan_capi.c:131: error: `CMSG' undeclared (first use in this function)
> chan_capi.c: In function `ListenOnController':
> chan_capi.c:138: error: syntax error before "error"
> chan_capi.c:141: warning: implicit declaration of function
> `LISTEN_REQ_HEADER'
> chan_capi.c:141: error: `CMSG' undeclared (first use in this function)
>
> [...]
>
> Yours
>
> Claudius
>
>
> _______________________________________________
> Asterisk-BSD mailing list
> Asterisk-BSD at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-bsd
>
>
More information about the Asterisk-BSD
mailing list