[Asterisk-Users] chan_capi
Dimitris Kounalakis
dcoun at medsite.info
Thu Feb 24 02:42:12 MST 2005
Hello,
I have installed asterisk but it is impossible to get compiled the
chan_capi 0.3.5.
I am using slackware 10.1 (kernel 2.4.29) and I am getting the following
when I issue gcc -v
Reading specs from /usr/lib/gcc-lib/i486-slackware-linux/3.3.4/specs
Configured with: ../gcc-3.3.4/configure --prefix=/usr --enable-shared
--enable-threads=posix --enable-__cxa_atexit --disable-checking
--with-gnu-ld --verbose --target=i486-slackware-linux
--host=i486-slackware-linux
Thread model: posix
gcc version 3.3.4
The same happened also with Slackware 9.1 but I do not have anymore an
installation to send info.
I am getting the following errors and in the end of this message I have
part of the file stddef.h.
Any suggestion is welcomed.
Thank you in advance,
Dimitris Kounalakis
----------------------------------------------
root at asterias:~/chan_capi-0.3.5# make
gcc -pipe -Wall -Wmissing-prototypes -Wmissing-declarations -g
-I/usr/include/asterisk -D_REENTRANT -D_GNU_SOURCE -O6 -march=athlon
-DCAPI_ES -DCAPI_GAIN -DCAPI_SYNC -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-lib/i486-slackware-linux/3.3.4/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: parse error before "__BEGIN_NAMESPACE_STD"
/usr/include/time.h:76: error: syntax error before "typedef"
/usr/include/time.h:129: error: parse error before "__BEGIN_NAMESPACE_STD"
/usr/include/time.h:131: error: syntax error before "struct"
/usr/include/time.h:178: error: parse error before "__BEGIN_NAMESPACE_STD"
/usr/include/time.h:181: error: syntax error before "extern"
/usr/include/time.h:181: error: parse error before "__THROW"
/usr/include/time.h:184: error: parse error before "__THROW"
/usr/include/time.h:188: error: parse error before "__THROW"
/usr/include/time.h:191: error: parse error before "__THROW"
/usr/include/time.h:199: error: parse error before "__THROW"
/usr/include/time.h:226: error: parse error before "__BEGIN_NAMESPACE_STD"
/usr/include/time.h:229: error: syntax error before "extern"
/usr/include/time.h:229: error: parse error before "__THROW"
/usr/include/time.h:233: error: parse error before "__THROW"
/usr/include/time.h:248: error: parse error before "__BEGIN_NAMESPACE_STD"
/usr/include/time.h:251: error: syntax error before "extern"
/usr/include/time.h:251: error: parse error before "__THROW"
/usr/include/time.h:254: error: parse 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: parse 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:
...............
------------------------------------------------------------------------------------
File: stddef.h
209: #ifndef __SIZE_TYPE__
210: #define __SIZE_TYPE__ long unsigned int
211: #endif
212: #if !(defined (__GNUG__) && defined (size_t))
213: typedef __SIZE_TYPE__ size_t;
214: #ifdef __BEOS__
215: typedef long ssize_t;
216: #endif /* __BEOS__ */
More information about the asterisk-users
mailing list