[Asterisk-Users] chan_capi compilation problems

Tomasz Chmielewski mangoo at mch.one.pl
Tue Nov 30 07:26:10 MST 2004


Hello,

I can't compile chan_capi-0.3.5 (also tried with 0.3.4b).

I tried compiling it on two systems with very similar (unsuccessful) 
results:
1) SuSE 9.1 on 2.6.5 kernel,
2) Mandrake 10.1 with kernels 2.6.8.1 and 2.4.27, using gcc 3.3.4 and 
gcc 3.4.1

I'm getting the following errors (similar on SuSE and Mandrake):

# make
gcc -pipe -Wall -Wmissing-prototypes -Wmissing-declarations -g 
-I/usr/include/asterisk -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/i586-mandrake-linux-gnu/3.4.1/include/stddef.h:213: 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"
/usr/include/time.h:191: error: syntax error before "__THROW"
/usr/include/time.h:199: error: syntax error before "__THROW"
/usr/include/time.h:226: error: syntax error before "__BEGIN_NAMESPACE_STD"
/usr/include/time.h:229: error: syntax error before "extern"
/usr/include/time.h:229: error: syntax error before "__THROW"
/usr/include/time.h:233: error: syntax error before "__THROW"
/usr/include/time.h:248: error: syntax error before "__BEGIN_NAMESPACE_STD"
/usr/include/time.h:251: error: syntax error before "extern"
/usr/include/time.h:251: error: syntax error before "__THROW"
/usr/include/time.h:254: error: syntax error before "__THROW"
/usr/include/time.h:272: error: syntax error before "extern"
In file included from /usr/include/pthread.h:24,
                  from /usr/include/asterisk/lock.h:17,
                  from chan_capi.c:14:
/usr/include/signal.h:31: error: syntax error before "__BEGIN_DECLS"
In file included from /usr/include/signal.h:33,
                  from /usr/include/pthread.h:24,
                  from /usr/include/asterisk/lock.h:17,
                  from chan_capi.c:14:
/usr/include/bits/sigset.h:23: error: syntax error before "typedef"
In file included from /usr/include/bits/pthreadtypes.h:23,
                  from /usr/include/pthread.h:25,
                  from /usr/include/asterisk/lock.h:17,
                  from chan_capi.c:14:
/usr/include/bits/sched.h:83: error: syntax error before "struct"
In file included from /usr/include/asterisk/lock.h:17,
                  from chan_capi.c:14:
/usr/include/pthread.h:59: error: syntax error before "enum"
/usr/include/pthread.h:166: error: syntax error before "__THROW"
/usr/include/pthread.h:169: error: syntax error before "__THROW"
/usr/include/pthread.h:172: error: syntax error before "__THROW"
/usr/include/pthread.h:186: error: syntax error before "__THROW"
/usr/include/pthread.h:194: error: syntax error before "__THROW"
/usr/include/pthread.h:197: error: syntax error before "__THROW"
/usr/include/pthread.h:201: error: syntax error before "__THROW"
/usr/include/pthread.h:205: error: syntax error before "__THROW"
/usr/include/pthread.h:210: error: syntax error before "__THROW"
/usr/include/pthread.h:216: error: syntax error before "__THROW"
/usr/include/pthread.h:220: error: syntax error before "__THROW"
/usr/include/pthread.h:225: error: syntax error before "__THROW"
/usr/include/pthread.h:229: error: syntax error before "__THROW"
/usr/include/pthread.h:234: error: syntax error before "__THROW"
/usr/include/pthread.h:238: error: syntax error before "__THROW"
/usr/include/pthread.h:242: error: syntax error before "__THROW"
/usr/include/pthread.h:260: error: syntax error before "__THROW"
/usr/include/pthread.h:265: error: syntax error before "__THROW"
/usr/include/pthread.h:284: error: syntax error before "__THROW"
/usr/include/pthread.h:289: error: syntax error before "__THROW"
/usr/include/pthread.h:304: error: syntax error before "__THROW"
/usr/include/pthread.h:310: error: syntax error before "__THROW"
/usr/include/pthread.h:334: error: syntax error before "__THROW"
/usr/include/pthread.h:337: error: syntax error before "__THROW"
/usr/include/pthread.h:340: error: syntax error before "__THROW"
/usr/include/pthread.h:343: error: syntax error before "__THROW"
/usr/include/pthread.h:353: error: syntax error before "__THROW"
/usr/include/pthread.h:360: error: syntax error before "__THROW"
/usr/include/pthread.h:363: error: syntax error before "__THROW"
/usr/include/pthread.h:368: error: syntax error before "__THROW"
/usr/include/pthread.h:372: error: syntax error before "__THROW"
/usr/include/pthread.h:393: error: syntax error before "__THROW"
/usr/include/pthread.h:396: error: syntax error before "__THROW"
/usr/include/pthread.h:399: error: syntax error before "__THROW"
/usr/include/pthread.h:402: error: syntax error before "__THROW"
/usr/include/pthread.h:421: error: syntax error before "__THROW"
/usr/include/pthread.h:424: error: syntax error before "__THROW"
/usr/include/pthread.h:429: error: syntax error before "__THROW"
/usr/include/pthread.h:433: error: syntax error before "__THROW"
/usr/include/pthread.h:558: error: syntax error before "__THROW"
/usr/include/pthread.h:561: error: syntax error before "__THROW"
/usr/include/pthread.h:565: error: syntax error before "__THROW"
/usr/include/pthread.h:568: error: syntax error before "__THROW"
/usr/include/pthread.h:578: error: syntax error before "__THROW"
/usr/include/pthread.h:613: error: syntax error before "__THROW"
/usr/include/pthread.h:622: error: syntax error before "__THROW"
In file included from /usr/include/pthread.h:656,
                  from /usr/include/asterisk/lock.h:17,
                  from chan_capi.c:14:
/usr/include/bits/sigthread.h:33: error: syntax error before "__THROW"
/usr/include/bits/sigthread.h:36: error: syntax error before "__THROW"
In file included from /usr/include/asterisk/lock.h:17,
                  from chan_capi.c:14:
/usr/include/pthread.h:674: error: syntax error before "__THROW"
/usr/include/pthread.h:679: error: syntax error before "__THROW"


ctrl + C



More information about the asterisk-users mailing list