I think that the chan_capi-0.3.5 only works with stable Asterisk, or else you
need a patch(http://www.levigo.de/VoIP/chan_capi-0.3.5-cvs-HEAD-patch.tar.bz2)
but I never got that to work.
Read more here http://www.voip-info.org/wiki-Asterisk+Linux+Fedora
Janne
> -----Ursprungligt meddelande-----
> Fr?n: asterisk-users-bounces@lists.digium.com
> [mailto:asterisk-users-bounces@lists.digium.com] F?r Hidehiko Hiwada
> Skickat: den 1 mars 2005 05:18
> Till: asterisk-users@lists.digium.com
> ?mne: [Asterisk-Users] chan_capi compile error on FC3
>
> I want to use the Diva Server BRI card with chan_capi-0.3.5.
> Unfortunately, I got following errors when I make the
> chan_capi on Fedora Core 3.
> (gcc version 3.4.2 20041017 (Red Hat 3.4.2-6.fc3),
> kernel-2.6.9-1.667) FYI, I use the CVS Asterisk.
>
> Dose anyone find the solution to fix this problem?
> BTW, is it possible to make the chan_capi by gcc 3.x???
>
> -----------------------------
> gcc -pipe -Wall -Wmissing-prototypes -Wmissing-declarations
> -g -I/usr/include/a sterisk -D_REENTRANT -D_GNU_SOURCE -O6
> -march=i686 -DCAPI_ES -DCAPI_GAIN -DCAPI _SYNC
> -DUNSTABLE_CVS -Wno-missing-prototypes
> -Wno-missing-declarations -DCRYPTO
> -c -o chan_capi.o chan_capi.c
> In file included from /usr/include/time.h:38,
> from /usr/include/pthread.h:21,
> from /usr/include/asterisk/lock.h:17,
> from chan_capi.c:14:
> /usr/lib/gcc/i386-redhat-linux/3.4.2/include/stddef.h:214:
> error: syntax error before "typedef"
> In file included from /usr/include/pthread.h:21,
> from /usr/include/asterisk/lock.h:17,
> from chan_capi.c:14:
> /usr/include/time.h:60: error: syntax error before "typedef"
> /usr/include/time.h:74: error: syntax error before
> "__BEGIN_NAMESPACE_STD"
> /usr/include/time.h:76: error: syntax error before "typedef"
> /usr/include/time.h:129: error: syntax error before
> "__BEGIN_NAMESPACE_STD"
> /usr/include/time.h:131: error: syntax error before "struct"
> /usr/include/time.h:178: error: syntax error before
> "__BEGIN_NAMESPACE_STD"
> /usr/include/time.h:181: error: syntax error before "extern"
> /usr/include/time.h:181: error: syntax error before "__THROW"
> /usr/include/time.h:184: error: syntax error before "__THROW"
> /usr/include/time.h:188: error: syntax error before "__THROW"
> :
> : (hundreds of errors...)
> -----------------------------
>
>
> Regards,
> Hiwada
>
> _______________________________________________
> 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
>