[Asterisk-Users] chan_capi compile error on FC3

Hidehiko Hiwada hhiwada at m2.pbc.ne.jp
Mon Feb 28 21:17:53 MST 2005


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




More information about the asterisk-users mailing list