Hello!
I have tried to compile the capi module
(http://www.junghanns.net/asterisk/downloads/chan_capi.0.3.5.tar.gz) on
fedora2 today.
----------- MAKEFILE --------------
..EXPORT_ALL_VARIABLES:
INSTALL_PREFIX#ASTERISK_HEADER_DIR=$(INSTALL_PREFIX)/usr/include
ASTERISK_HEADER_DIR=/usr/include/asterisk
#MODULES_DIR=$(INSTALL_PREFIX)/usr/lib/asterisk/modules
MODULES_DIR=/usr/lib/asterisk/modules/
PROC=$(shell uname -m)
----------- MAKEFILE SNIP END--------------
Make Error:
-------------------------------------------
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/i386-redhat-linux/3.3.3/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"
In file included from /usr/include/netinet/in.h:23,
from /usr/include/netdb.h:28,
from /usr/include/asterisk/lock.h:18,
from chan_capi.c:14:
/usr/include/stdint.h:37: error: syntax error before "typedef"
In file included from /usr/include/sys/uio.h:24,
from /usr/include/sys/socket.h:27,
from /usr/include/netinet/in.h:24,
from /usr/include/netdb.h:28,
from /usr/include/asterisk/lock.h:18,
from chan_capi.c:14:
/usr/include/sys/types.h:29: error: syntax error before
"__BEGIN_DECLS"
/usr/include/sys/types.h:46: error: syntax error before "typedef"
In file included from /usr/include/sys/uio.h:24,
from /usr/include/sys/socket.h:27,
from /usr/include/netinet/in.h:24,
from /usr/include/netdb.h:28,
from /usr/include/asterisk/lock.h:18,
from chan_capi.c:14:
/usr/include/sys/types.h:158:20: missing binary operator before token
"("
In file included from /usr/include/sys/socket.h:27,
from /usr/include/netinet/in.h:24,
from /usr/include/netdb.h:28,
from /usr/include/asterisk/lock.h:18,
from chan_capi.c:14:
/usr/include/sys/uio.h:26: error: syntax error before "__BEGIN_DECLS"
In file included from /usr/include/sys/uio.h:29,
from /usr/include/sys/socket.h:27,
from /usr/include/netinet/in.h:24,
from /usr/include/netdb.h:28,
from /usr/include/asterisk/lock.h:18,
from chan_capi.c:14:
/usr/include/bits/uio.h:42: error: syntax error before "struct"
In file included from /usr/include/sys/socket.h:35,
from /usr/include/netinet/in.h:24,
from /usr/include/netdb.h:28,
from /usr/include/asterisk/lock.h:18,
from chan_capi.c:14:
/usr/include/bits/socket.h:36: error: syntax error before "typedef"
In file included from /usr/include/sys/socket.h:35,
from /usr/include/netinet/in.h:24,
from /usr/include/netdb.h:28,
from /usr/include/asterisk/lock.h:18,
from chan_capi.c:14:
/usr/include/bits/socket.h:237: error: syntax error before "__flexarr"
/usr/include/bits/socket.h:258: error: syntax error before "__THROW"
In file included from /usr/include/netinet/in.h:24,
from /usr/include/netdb.h:28,
from /usr/include/asterisk/lock.h:18,
from chan_capi.c:14:
/usr/include/sys/socket.h:65:43: missing binary operator before token
"("
In file included from /usr/include/netinet/in.h:24,
from /usr/include/netdb.h:28,
from /usr/include/asterisk/lock.h:18,
from chan_capi.c:14:
/usr/include/sys/socket.h:100: error: syntax error before "__THROW"
/usr/include/sys/socket.h:107: error: syntax error before "__THROW"
/usr/include/sys/socket.h:111: error: syntax error before "__THROW"
/usr/include/sys/socket.h:115: error: syntax error before "__THROW"
/usr/include/sys/socket.h:129: error: syntax error before "__THROW"
/usr/include/sys/socket.h:187: error: syntax error before "__THROW"
/usr/include/sys/socket.h:193: error: syntax error before "__THROW"
/usr/include/sys/socket.h:199: error: syntax error before "__THROW"
/usr/include/sys/socket.h:218: error: syntax error before "__THROW"
In file included from /usr/include/netdb.h:28,
from /usr/include/asterisk/lock.h:18,
from chan_capi.c:14:
/usr/include/netinet/in.h:28: error: syntax error before
"__BEGIN_DECLS"
/usr/include/netinet/in.h:31: error: syntax error before "enum"
In file included from /usr/include/netdb.h:28,
from /usr/include/asterisk/lock.h:18,
from chan_capi.c:14:
/usr/include/netinet/in.h:262: error: syntax error before "__THROW"
/usr/include/netinet/in.h:264: error: syntax error before "__THROW"
/usr/include/netinet/in.h:266: error: syntax error before "__THROW"
/usr/include/netinet/in.h:268: error: syntax error before "__THROW"
In file included from /usr/include/netdb.h:28,
from /usr/include/asterisk/lock.h:18,
from chan_capi.c:14:
/usr/include/netinet/in.h:336: error: syntax error before "__THROW"
/usr/include/netinet/in.h:340: error: syntax error before "__THROW"
In file included from /usr/include/netdb.h:43,
from /usr/include/asterisk/lock.h:18,
from chan_capi.c:14:
/usr/include/bits/netdb.h:27: error: syntax error before "struct"
In file included from /usr/include/asterisk/lock.h:18,
from chan_capi.c:14:
/usr/include/bits/netdb.h:27: error: syntax error before "struct"
In file included from /usr/include/asterisk/lock.h:18,
from chan_capi.c:14:
/usr/include/netdb.h:61: error: syntax error before "extern"
/usr/include/netdb.h:61: error: syntax error before "__THROW"
/usr/include/netdb.h:88: error: syntax error before "__THROW"
/usr/include/netdb.h:91: error: syntax error before "__THROW"
In file included from /usr/include/asm/param.h:4,
from /usr/include/linux/param.h:4,
from /usr/include/sys/param.h:24,
from /usr/include/asterisk/lock.h:20,
from chan_capi.c:14:
/usr/include/unistd.h:28: error: syntax error before "__BEGIN_DECLS"
In file included from /usr/include/asm/param.h:4,
from /usr/include/linux/param.h:4,
from /usr/include/sys/param.h:24,
from /usr/include/asterisk/lock.h:20,
from chan_capi.c:14:
/usr/include/unistd.h:256: error: syntax error before "extern"
/usr/include/unistd.h:256: error: syntax error before "__THROW"
/usr/include/unistd.h:286: error: syntax error before "__THROW"
/usr/include/unistd.h:369: error: syntax error before "__THROW"
/usr/include/unistd.h:378: error: syntax error before "__THROW"
/usr/include/unistd.h:419: error: syntax error before "__THROW"
/usr/include/unistd.h:434: error: syntax error before "__THROW"
/usr/include/unistd.h:448: error: syntax error before "__THROW"
/usr/include/unistd.h:466: error: syntax error before "__THROW"
/usr/include/unistd.h:469: error: syntax error before "__THROW"
/usr/include/unistd.h:481: error: syntax error before "__THROW"
/usr/include/unistd.h:492: error: syntax error before "__THROW"
/usr/include/unistd.h:496: error: syntax error before "__THROW"
/usr/include/unistd.h:500: error: syntax error before "__THROW"
/usr/include/unistd.h:504: error: syntax error before "__THROW"
/usr/include/unistd.h:509: error: syntax error before "__THROW"
In file included from /usr/include/asm/param.h:4,
from /usr/include/linux/param.h:4,
from /usr/include/sys/param.h:24,
from /usr/include/asterisk/lock.h:20,
from chan_capi.c:14:
/usr/include/unistd.h:528: error: syntax error before "__THROW"
/usr/include/unistd.h:531: error: syntax error before "__THROW"
/usr/include/unistd.h:534: error: syntax error before "__THROW"
/usr/include/unistd.h:543: error: syntax error before "__THROW"
/usr/include/unistd.h:546: error: syntax error before "__THROW"
/usr/include/unistd.h:551: error: syntax error before "__THROW"
/usr/include/unistd.h:561: error: syntax error before "__THROW"
/usr/include/unistd.h:570: error: syntax error before "__THROW"
/usr/include/unistd.h:605: error: syntax error before "__THROW"
/usr/include/unistd.h:613: error: syntax error before "__THROW"
/usr/include/unistd.h:616: error: syntax error before "__THROW"
/usr/include/unistd.h:619: error: syntax error before "__THROW"
/usr/include/unistd.h:622: error: syntax error before "__THROW"
/usr/include/unistd.h:627: error: syntax error before "__THROW"
/usr/include/unistd.h:638: error: syntax error before "__THROW"
/usr/include/unistd.h:655: error: syntax error before "__THROW"
/usr/include/unistd.h:690: error: syntax error before "__THROW"
/usr/include/unistd.h:703: error: syntax error before "__THROW"
/usr/include/unistd.h:707: error: syntax error before "__THROW"
/usr/include/unistd.h:711: error: syntax error before "__THROW"
/usr/include/unistd.h:722: error: syntax error before "__THROW"
/usr/include/unistd.h:736: error: syntax error before "__THROW"
/usr/include/unistd.h:739: error: syntax error before "__THROW"
/usr/include/unistd.h:743: error: syntax error before "__THROW"
/usr/include/unistd.h:746: error: syntax error before "__THROW"
In file included from chan_capi.c:14:
/usr/include/asterisk/lock.h:294: error: syntax error before "typedef"
/usr/include/asterisk/lock.h: In function `ast_mutex_init':
/usr/include/asterisk/lock.h:300: error: `PTHREAD_MUTEX_RECURSIVE'
undeclared (first use in this function)/usr/include/asterisk/lock.h:300:
error:(Each undeclared identifier is
reported only once/usr/include/asterisk/lock.h:300: error: for each
function itappears in.)
In file included from /usr/include/sys/time.h:30,
from /usr/include/asterisk/frame.h:24,
from chan_capi.c:15:
/usr/include/sys/select.h: At top level:
/usr/include/sys/select.h:109: error: syntax error before "extern"
In file included from /usr/include/asterisk/frame.h:24,
from chan_capi.c:15:
/usr/include/sys/time.h:38: error: syntax error before "__BEGIN_DECLS"
/usr/include/sys/time.h:64: error: syntax error before "typedef"
/usr/include/sys/time.h:73: error: syntax error before "__THROW"
/usr/include/sys/time.h:126: error: syntax error before "__THROW"
/usr/include/sys/time.h:133: error: syntax error before "__THROW"
/usr/include/sys/time.h:139: error: syntax error before "__THROW"
In file included from chan_capi.c:15:
/usr/include/asterisk/frame.h:64: error: syntax error before "struct"
In file included from /usr/include/setjmp.h:30,
from /usr/include/asterisk/channel.h:21,
from chan_capi.c:16:
/usr/include/bits/setjmp.h:38: error: syntax error before "typedef"
In file included from /usr/include/asterisk/channel.h:21,
from chan_capi.c:16:
/usr/include/setjmp.h:36: error: syntax error before "typedef"
/usr/include/setjmp.h:50: error: syntax error before "__THROW"
/usr/include/setjmp.h:53: error: syntax error before
"__USING_NAMESPACE_STD"
/usr/include/setjmp.h: In function `__USING_NAMESPACE_STD':
/usr/include/setjmp.h:58: error: storage class specified for parameter
`__sigsetjmp'/usr/include/setjmp.h:58: error: syntax error before
"__THROW"
/usr/include/setjmp.h:63: error: storage class specified for parameter
`_setjmp'/usr/include/setjmp.h:63: error: syntax error before
"__THROW"
In file included from /usr/include/asterisk/channel.h:22,
from chan_capi.c:16:
/usr/include/sys/poll.h:41: error: syntax error before "__BEGIN_DECLS"
In file included from /usr/include/asterisk/channel.h:33,
from chan_capi.c:16:
/usr/include/asterisk/cdr.h:84: error: storage class specified for
parameter `ast_cdrbe'/usr/include/asterisk/cdr.h:90: error: storage class
specified forparameter `ast_cdr_alloc'/usr/include/asterisk/cdr.h:96: error:
storage class
specified for
parameter `ast_cdr_free'/usr/include/asterisk/cdr.h:105: error: storage
class
specified for
parameter `ast_cdr_init'/usr/include/asterisk/cdr.h:114: error: storage
class
specified for
parameter `ast_cdr_setcid'/usr/include/asterisk/cdr.h:124: error: syntax
errorbefore "ast_cdrbe"
/usr/include/asterisk/cdr.h:124: error: storage class specified for
parameter `ast_cdr_register'/usr/include/asterisk/cdr.h:131: error:
storage classspecified for
parameter `ast_cdr_unregister'/usr/include/asterisk/cdr.h:139: error:
storage classspecified for
parameter `ast_cdr_start'/usr/include/asterisk/cdr.h:146: error: storage
classspecified for
parameter `ast_cdr_answer'/usr/include/asterisk/cdr.h:153: error: storage
classspecified for
parameter `ast_cdr_busy'/usr/include/asterisk/cdr.h:160: error: storage
class
specified for
parameter `ast_cdr_failed'/usr/include/asterisk/cdr.h:168: error: storage
classspecified for
parameter `ast_cdr_disposition'/usr/include/asterisk/cdr.h:176: error:
storage classspecified for
parameter `ast_cdr_end'/usr/include/asterisk/cdr.h:184: error: storage class
specified for
parameter `ast_cdr_post'/usr/include/asterisk/cdr.h:192: error: storage
class
specified for
parameter `ast_cdr_setdestchan'/usr/include/asterisk/cdr.h:202: error:
storage classspecified for
parameter `ast_cdr_setapp'/usr/include/asterisk/cdr.h:210: error: storage
classspecified for
parameter `ast_cdr_amaflags2int'/usr/include/asterisk/cdr.h:218: error:
storageclass specified for
parameter `ast_cdr_disp2str'/usr/include/asterisk/cdr.h:225: error:
storage classspecified for
parameter `ast_cdr_reset'/usr/include/asterisk/cdr.h:233: error: storage
classspecified for
parameter `ast_cdr_flags2str'/usr/include/asterisk/cdr.h:235: error:
storage classspecified for
parameter `ast_cdr_setaccount'/usr/include/asterisk/cdr.h:236: error:
storage classspecified for
parameter `ast_cdr_setamaflags'/usr/include/asterisk/cdr.h:239: error:
storage classspecified for
parameter `ast_cdr_setuserfield'/usr/include/asterisk/cdr.h:240: error:
storageclass specified for
parameter `ast_cdr_appenduserfield'/usr/include/asterisk/cdr.h:244: error:
storageclass specified for
parameter `ast_cdr_update'/usr/include/asterisk/cdr.h:247: error: storage
classspecified for
parameter `ast_default_amaflags'/usr/include/asterisk/cdr.h:249: error:
storageclass specified for
parameter `ast_default_accountcode'/usr/include/asterisk/cdr.h:255: error:
storageclass specified for
parameter `ast_cdr_append'In file included from
/usr/include/asterisk/monitor.h:4, from
/usr/include/asterisk/channel.h:34,
from chan_capi.c:16:
/usr/include/stdio.h:30: error: syntax error before "__BEGIN_DECLS"
In file included from /usr/include/_G_config.h:14,
from /usr/include/libio.h:32,
from /usr/include/stdio.h:72,
from /usr/include/asterisk/monitor.h:4,
from /usr/include/asterisk/channel.h:34,
from chan_capi.c:16:
/usr/lib/gcc-lib/i386-redhat-linux/3.3.3/include/stddef.h:325: error:
storage class specified for parameter
`wchar_t'/usr/lib/gcc-lib/i386-redhat-linux/3.3.3/include/stddef.h:354:
error:storage class specified for parameter `wint_t'In file included from
/usr/include/_G_config.h:24,
from /usr/include/libio.h:32,
from /usr/include/stdio.h:72,
from /usr/include/asterisk/monitor.h:4,
from /usr/include/asterisk/channel.h:34,
from chan_capi.c:16:
/usr/include/wchar.h:81: error: syntax error before "wint_t"
/usr/include/wchar.h:83: error: syntax error before '}' token
In file included from /usr/include/libio.h:32,
from /usr/include/stdio.h:72,
from /usr/include/asterisk/monitor.h:4,
from /usr/include/asterisk/channel.h:34,
from chan_capi.c:16:
/usr/include/_G_config.h:29: error: syntax error before "__mbstate_t"
/usr/include/_G_config.h:34: error: syntax error before "__mbstate_t"
In file included from /usr/include/_G_config.h:44,
from /usr/include/libio.h:32,
from /usr/include/stdio.h:72,
from /usr/include/asterisk/monitor.h:4,
from /usr/include/asterisk/channel.h:34,
from chan_capi.c:16:
/usr/include/gconv.h:72: error: storage class specified for parameter
`__gconv_fct'/usr/include/gconv.h:75: error: syntax error before '*'
token
/usr/include/gconv.h:75: error: storage class specified for parameter
`wint_t'/usr/include/gconv.h:75: error: `wint_t' declared as function
returning afunction/usr/include/gconv.h:75: error: conflicting types for
`wint_t'
/usr/lib/gcc-lib/i386-redhat-linux/3.3.3/include/stddef.h:354: error:
previous declaration of `wint_t'/usr/include/gconv.h:78: error: storage
class
specified for parameter
`__gconv_init_fct'/usr/include/gconv.h:79: error: storage class specified
for parameter`__gconv_end_fct'/usr/include/gconv.h:88: error: storage class
specified
for parameter`__gconv_trans_fct'/usr/include/gconv.h:93: error: storage
class specified
forparameter
`__gconv_trans_context_fct'/usr/include/gconv.h:97: error: storage class
specifiedfor parameter
`__gconv_trans_query_fct'/usr/include/gconv.h:100: error: storage class
specifiedfor parameter
`__gconv_trans_init_fct'/usr/include/gconv.h:101: error: storage class
specified forparameter
`__gconv_trans_end_fct'/usr/include/gconv.h:106: error: syntax error before
"__gconv_trans_fct"
/usr/include/gconv.h:111: error: syntax error before '}' token
/usr/include/gconv.h:125: error: syntax error before "__gconv_fct"
/usr/include/gconv.h:140: error: redeclaration of `__data'
/usr/include/gconv.h:109: error: `__data' previously declared here
/usr/include/gconv.h:141: error: syntax error before '}' token
/usr/include/gconv.h:162: error: syntax error before "__mbstate_t"
/usr/include/gconv.h:168: error: syntax error before '}' token
/usr/include/gconv.h:176: error: field `__data' has incomplete type
/usr/include/gconv.h:176: error: syntax error before "__flexarr"
In file included from /usr/include/libio.h:32,
from /usr/include/stdio.h:72,
from /usr/include/asterisk/monitor.h:4,
from /usr/include/asterisk/channel.h:34,
from chan_capi.c:16:
/usr/include/_G_config.h:47: error: field `__cd' has incomplete type
/usr/include/_G_config.h:50: error: field `__cd' has incomplete type
/usr/include/_G_config.h:51: error: field `__data' has incomplete type
/usr/include/_G_config.h:53: error: storage class specified for parameter
`_G_iconv_t'/usr/include/_G_config.h:55: error: storage class specified
for parameter`_G_int16_t'/usr/include/_G_config.h:56: error: storage class
specified
for parameter`_G_int32_t'/usr/include/_G_config.h:57: error: storage class
specified
for parameter`_G_uint16_t'/usr/include/_G_config.h:58: error: storage class
specified
for parameter`_G_uint32_t'In file included from /usr/include/libio.h:53,
from /usr/include/stdio.h:72,
from /usr/include/asterisk/monitor.h:4,
from /usr/include/asterisk/channel.h:34,
from chan_capi.c:16:
/usr/lib/gcc-lib/i386-redhat-linux/3.3.3/include/stdarg.h:43: error:
storage class specified for parameter `__gnuc_va_list'In file included from
/usr/include/libio.h:62,
from /usr/include/stdio.h:72,
from /usr/include/asterisk/monitor.h:4,
from /usr/include/asterisk/channel.h:34,
from chan_capi.c:16:
/usr/include/sys/cdefs.h:43:43: missing binary operator before token
"("
/usr/include/sys/cdefs.h:122:19: missing binary operator before token
"("
/usr/include/sys/cdefs.h:173:19: missing binary operator before token
"("
/usr/include/sys/cdefs.h:182:19: missing binary operator before token
"("
/usr/include/sys/cdefs.h:191:19: missing binary operator before token
"("
/usr/include/sys/cdefs.h:200:19: missing binary operator before token
"("
/usr/include/sys/cdefs.h:212:19: missing binary operator before token
"("
/usr/include/sys/cdefs.h:222:19: missing binary operator before token
"("
/usr/include/sys/cdefs.h:233:20: missing binary operator before token
"("
/usr/include/sys/cdefs.h:238:20: missing binary operator before token
"("
/usr/include/sys/cdefs.h:245:19: missing binary operator before token
"("
In file included from /usr/include/stdio.h:72,
from /usr/include/asterisk/monitor.h:4,
from /usr/include/asterisk/channel.h:34,
from chan_capi.c:16:
/usr/include/libio.h:173: error: storage class specified for parameter
`_IO_lock_t'/usr/include/libio.h:303: error: syntax error before
"_IO_lock_t"
/usr/include/libio.h:325: error: syntax error before '}' token
/usr/include/libio.h:328: error: storage class specified for parameter
`_IO_FILE'/usr/include/libio.h:333: error: storage class specified for
parameter`_IO_2_1_stdin_'/usr/include/libio.h:334: error: storage class
specified
for parameter`_IO_2_1_stdout_'/usr/include/libio.h:335: error: storage class
specified
for parameter`_IO_2_1_stderr_'/usr/include/libio.h:351: error: storage class
specified
for parameter`__io_read_fn'/usr/include/libio.h:360: error: storage class
specified for
parameter`__io_write_fn'/usr/include/libio.h:368: error: storage class
specified
for parameter`__io_seek_fn'/usr/include/libio.h:371: error: storage class
specified for
parameter`__io_close_fn'/usr/include/libio.h:376: error: storage class
specified
for parameter`__io_read_fn'/usr/include/libio.h:376: error: conflicting
types for
`__io_read_fn'/usr/include/libio.h:351: error: previous declaration of
`__io_read_fn'
/usr/include/libio.h:376: error: syntax error before
"cookie_read_function_t"
/usr/include/libio.h:377: error: storage class specified for parameter
`__io_write_fn'/usr/include/libio.h:377: error: conflicting types for
`__io_write_fn'/usr/include/libio.h:360: error: previous declaration of
`__io_write_fn'
/usr/include/libio.h:377: error: syntax error before
"cookie_write_function_t"/usr/include/libio.h:378: error: storage
class
specifiedfor parameter
`__io_seek_fn'/usr/include/libio.h:378: error: conflicting types for
`__io_seek_fn'/usr/include/libio.h:368: error: previous declaration of
`__io_seek_fn'
/usr/include/libio.h:378: error: syntax error before
"cookie_seek_function_t"
/usr/include/libio.h:379: error: storage class specified for parameter
`__io_close_fn'/usr/include/libio.h:379: error: conflicting types for
`__io_close_fn'/usr/include/libio.h:371: error: previous declaration of
`__io_close_fn'
/usr/include/libio.h:379: error: syntax error before
"cookie_close_function_t"/usr/include/libio.h:384: error: syntax error
before
"__io_read_fn"
/usr/include/libio.h:389: error: storage class specified for parameter
`_IO_cookie_io_functions_t'/usr/include/libio.h:389: error: syntax error
before"cookie_io_functions_t"
/usr/include/libio.h:395: error: syntax error before
"_IO_cookie_io_functions_t"/usr/include/libio.h:395: error: storage
class
specifiedfor parameter
`_IO_cookie_init'/usr/include/libio.h:403: error: syntax error before
'*'
token/usr/include/libio.h:403: error: storage class specified for parameter
`__underflow'/usr/include/libio.h:404: error: syntax error before
'*' token
/usr/include/libio.h:404: error: storage class specified for parameter
`__uflow'/usr/include/libio.h:405: error: syntax error before '*'
token
/usr/include/libio.h:405: error: storage class specified for parameter
`__overflow'/usr/include/libio.h:406: error: storage class specified for
parameter`wint_t'/usr/include/libio.h:406: error: conflicting types for
`wint_t'
/usr/include/gconv.h:75: error: previous declaration of `wint_t'
/usr/include/libio.h:406: error: syntax error before "__wunderflow"
/usr/include/libio.h:407: error: storage class specified for parameter
`wint_t'/usr/include/libio.h:407: error: redeclaration of `wint_t'
/usr/include/libio.h:406: error: `wint_t' previously declared here
/usr/include/libio.h:407: error: syntax error before "__wuflow"
/usr/include/libio.h:408: error: storage class specified for parameter
`wint_t'/usr/include/libio.h:408: error: redeclaration of `wint_t'
/usr/include/libio.h:407: error: `wint_t' previously declared here
/usr/include/libio.h:408: error: syntax error before "__woverflow"
/usr/include/libio.h:441: error: syntax error before '*' token
/usr/include/libio.h:441: error: storage class specified for parameter
`_IO_getc'/usr/include/libio.h:442: error: syntax error before
"_IO_FILE"
/usr/include/libio.h:442: error: storage class specified for parameter
`_IO_putc'/usr/include/libio.h:443: error: syntax error before '*'
token
/usr/include/libio.h:443: error: storage class specified for parameter
`_IO_feof'/usr/include/libio.h:444: error: syntax error before '*'
token
/usr/include/libio.h:444: error: storage class specified for parameter
`_IO_ferror'/usr/include/libio.h:446: error: syntax error before '*'
token
/usr/include/libio.h:446: error: storage class specified for parameter
`_IO_peekc_locked'/usr/include/libio.h:452: error: syntax error before
'*'
token/usr/include/libio.h:452: error: storage class specified for parameter
`_IO_flockfile'/usr/include/libio.h:453: error: syntax error before
'*' token
/usr/include/libio.h:453: error: storage class specified for parameter
`_IO_funlockfile'/usr/include/libio.h:454: error: syntax error before
'*'
token/usr/include/libio.h:454: error: storage class specified for parameter
`_IO_ftrylockfile'/usr/include/libio.h:471: error: syntax error before
'*'
token/usr/include/libio.h:472: error: storage class specified for parameter
`_IO_vfscanf'/usr/include/libio.h:473: error: syntax error before
'*' token
/usr/include/libio.h:474: error: storage class specified for parameter
`_IO_vfprintf'/usr/include/libio.h:475: error: syntax error before
'*' token
/usr/include/libio.h:475: error: storage class specified for parameter
`_IO_padn'/usr/include/libio.h:476: error: syntax error before '*'
token
/usr/include/libio.h:476: error: storage class specified for parameter
`_IO_sgetn'/usr/include/libio.h:478: error: syntax error before '*'
token
/usr/include/libio.h:478: error: storage class specified for parameter
`_IO_seekoff'/usr/include/libio.h:479: error: syntax error before
'*' token
/usr/include/libio.h:479: error: storage class specified for parameter
`_IO_seekpos'/usr/include/libio.h:481: error: syntax error before
'*' token
/usr/include/libio.h:481: error: storage class specified for parameter
`_IO_free_backup_area'In file included from
/usr/include/asterisk/monitor.h:4, from
/usr/include/asterisk/channel.h:34,
from chan_capi.c:16:
/usr/include/stdio.h:88: error: storage class specified for parameter
`_G_fpos_t'/usr/include/stdio.h:88: error: syntax error before
"fpos_t"
In file included from /usr/include/asterisk/monitor.h:4,
from /usr/include/asterisk/channel.h:34,
from chan_capi.c:16:
/usr/include/stdio.h:142: error: storage class specified for parameter
`stdin'/usr/include/stdio.h:143: error: storage class specified for
parameter
`stdout'/usr/include/stdio.h:144: error: storage class specified for
parameter`stderr'/usr/include/stdio.h:154: error: storage class specified
for
parameter`remove'/usr/include/stdio.h:156: error: storage class specified
for
parameter`rename'/usr/include/stdio.h:166: error: storage class specified
for
parameter `FILE'/usr/include/stdio.h:166: error: syntax error before
'*' token
/usr/include/stdio.h:180: error: storage class specified for parameter
`tmpnam'/usr/include/stdio.h:208: error: syntax error before '*'
token
/usr/include/stdio.h:208: error: storage class specified for parameter
`fclose'/usr/include/stdio.h:213: error: syntax error before '*'
token
/usr/include/stdio.h:213: error: storage class specified for parameter
`fflush'/usr/include/stdio.h:243: error: storage class specified for
parameter `FILE'/usr/include/stdio.h:243: error: redeclaration of `FILE'
/usr/include/stdio.h:166: error: `FILE' previously declared here
/usr/include/stdio.h:243: error: syntax error before '*' token
/usr/include/stdio.h:249: error: storage class specified for parameter
`FILE'
/usr/include/stdio.h:249: error: redeclaration of `FILE'
/usr/include/stdio.h:243: error: `FILE' previously declared here
/usr/include/stdio.h:249: error: syntax error before '*' token
/usr/include/stdio.h:299: error: syntax error before '*' token
/usr/include/stdio.h:299: error: storage class specified for parameter
`setbuf'/usr/include/stdio.h:303: error: syntax error before '*'
token
/usr/include/stdio.h:304: error: storage class specified for parameter
`setvbuf'/usr/include/stdio.h:323: error: syntax error before '*'
token
/usr/include/stdio.h:324: error: storage class specified for parameter
`fprintf'/usr/include/stdio.h:329: error: storage class specified for
parameter`printf'/usr/include/stdio.h:332: error: storage class specified
for
parameter`sprintf'/usr/include/stdio.h:338: error: syntax error before
'*' token
/usr/include/stdio.h:339: error: storage class specified for parameter
`vfprintf'/usr/include/stdio.h:344: error: syntax error before
"__gnuc_va_list"/usr/include/stdio.h:344: error: storage class
specified for parameter
`vprintf'/usr/include/stdio.h:347: error: syntax error before
"__gnuc_va_list"..
..
..
chan_capi.c:2595: error: redeclaration of `txgain'
chan_capi_pvt.h:181: error: `txgain' previously declared here
chan_capi.c:2596: error: parameter `isdnmode' is initialized
chan_capi.c:2596: error: redeclaration of `isdnmode'
chan_capi_pvt.h:157: error: `isdnmode' previously declared here
chan_capi.c:2597: error: parameter `callgroup' is initialized
chan_capi.c:2597: error: redeclaration of `callgroup'
chan_capi_pvt.h:132: error: `callgroup' previously declared here
chan_capi.c:2600: error: syntax error before "cfg"
chan_capi.c:2659: error: parameter `__u' is initialized
chan_capi.c:2659: error: conflicting types for `__u'
chan_capi.c:2331: error: previous declaration of `__u'
chan_capi.c:2659: error: parameter `__c' is initialized
chan_capi.c:2659: error: redeclaration of `__c'
chan_capi.c:2331: error: `__c' previously declared here
chan_capi.c:2659: error: syntax error before "switch"
make: *** [chan_capi.o] Error 1
Any idea?
Whats my problem?
Thanks, Mario
i think your problem is above the pasted error message. i compiled chan_capi on fedora 2 just yesterday. only problem was that some isdn4k devel pkg was missing. install it and it'll probably work fine. On Thu, 26 Aug 2004 13:32:06 +0200 (CEST), asterisk@bortal.de <asterisk@bortal.de> wrote:> Hello! > > I have tried to compile the capi module > (http://www.junghanns.net/asterisk/downloads/chan_capi.0.3.5.tar.gz) on > fedora2 today. > ----------- MAKEFILE -------------- > > ...EXPORT_ALL_VARIABLES: > > INSTALL_PREFIX> #ASTERISK_HEADER_DIR=$(INSTALL_PREFIX)/usr/include > ASTERISK_HEADER_DIR=/usr/include/asterisk > > #MODULES_DIR=$(INSTALL_PREFIX)/usr/lib/asterisk/modules > MODULES_DIR=/usr/lib/asterisk/modules/ > > PROC=$(shell uname -m) > > ----------- MAKEFILE SNIP END-------------- > > Make Error: > ------------------------------------------- > > 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/i386-redhat-linux/3.3.3/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" > In file included from /usr/include/netinet/in.h:23, > from /usr/include/netdb.h:28, > from /usr/include/asterisk/lock.h:18, > from chan_capi.c:14: > /usr/include/stdint.h:37: error: syntax error before "typedef" > In file included from /usr/include/sys/uio.h:24, > from /usr/include/sys/socket.h:27, > from /usr/include/netinet/in.h:24, > from /usr/include/netdb.h:28, > from /usr/include/asterisk/lock.h:18, > from chan_capi.c:14: > /usr/include/sys/types.h:29: error: syntax error before "__BEGIN_DECLS" > /usr/include/sys/types.h:46: error: syntax error before "typedef" > In file included from /usr/include/sys/uio.h:24, > from /usr/include/sys/socket.h:27, > from /usr/include/netinet/in.h:24, > from /usr/include/netdb.h:28, > from /usr/include/asterisk/lock.h:18, > from chan_capi.c:14: > /usr/include/sys/types.h:158:20: missing binary operator before token "(" > In file included from /usr/include/sys/socket.h:27, > from /usr/include/netinet/in.h:24, > from /usr/include/netdb.h:28, > from /usr/include/asterisk/lock.h:18, > from chan_capi.c:14: > /usr/include/sys/uio.h:26: error: syntax error before "__BEGIN_DECLS" > In file included from /usr/include/sys/uio.h:29, > from /usr/include/sys/socket.h:27, > from /usr/include/netinet/in.h:24, > from /usr/include/netdb.h:28, > from /usr/include/asterisk/lock.h:18, > from chan_capi.c:14: > /usr/include/bits/uio.h:42: error: syntax error before "struct" > In file included from /usr/include/sys/socket.h:35, > from /usr/include/netinet/in.h:24, > from /usr/include/netdb.h:28, > from /usr/include/asterisk/lock.h:18, > from chan_capi.c:14: > /usr/include/bits/socket.h:36: error: syntax error before "typedef" > In file included from /usr/include/sys/socket.h:35, > from /usr/include/netinet/in.h:24, > from /usr/include/netdb.h:28, > from /usr/include/asterisk/lock.h:18, > from chan_capi.c:14: > /usr/include/bits/socket.h:237: error: syntax error before "__flexarr" > /usr/include/bits/socket.h:258: error: syntax error before "__THROW" > In file included from /usr/include/netinet/in.h:24, > from /usr/include/netdb.h:28, > from /usr/include/asterisk/lock.h:18, > from chan_capi.c:14: > /usr/include/sys/socket.h:65:43: missing binary operator before token "(" > In file included from /usr/include/netinet/in.h:24, > from /usr/include/netdb.h:28, > from /usr/include/asterisk/lock.h:18, > from chan_capi.c:14: > /usr/include/sys/socket.h:100: error: syntax error before "__THROW" > /usr/include/sys/socket.h:107: error: syntax error before "__THROW" > /usr/include/sys/socket.h:111: error: syntax error before "__THROW" > /usr/include/sys/socket.h:115: error: syntax error before "__THROW" > /usr/include/sys/socket.h:129: error: syntax error before "__THROW" > /usr/include/sys/socket.h:187: error: syntax error before "__THROW" > /usr/include/sys/socket.h:193: error: syntax error before "__THROW" > /usr/include/sys/socket.h:199: error: syntax error before "__THROW" > /usr/include/sys/socket.h:218: error: syntax error before "__THROW" > In file included from /usr/include/netdb.h:28, > from /usr/include/asterisk/lock.h:18, > from chan_capi.c:14: > /usr/include/netinet/in.h:28: error: syntax error before "__BEGIN_DECLS" > /usr/include/netinet/in.h:31: error: syntax error before "enum" > In file included from /usr/include/netdb.h:28, > from /usr/include/asterisk/lock.h:18, > from chan_capi.c:14: > /usr/include/netinet/in.h:262: error: syntax error before "__THROW" > /usr/include/netinet/in.h:264: error: syntax error before "__THROW" > /usr/include/netinet/in.h:266: error: syntax error before "__THROW" > /usr/include/netinet/in.h:268: error: syntax error before "__THROW" > In file included from /usr/include/netdb.h:28, > from /usr/include/asterisk/lock.h:18, > from chan_capi.c:14: > /usr/include/netinet/in.h:336: error: syntax error before "__THROW" > /usr/include/netinet/in.h:340: error: syntax error before "__THROW" > In file included from /usr/include/netdb.h:43, > from /usr/include/asterisk/lock.h:18, > from chan_capi.c:14: > /usr/include/bits/netdb.h:27: error: syntax error before "struct" > In file included from /usr/include/asterisk/lock.h:18, > from chan_capi.c:14: > /usr/include/bits/netdb.h:27: error: syntax error before "struct" > In file included from /usr/include/asterisk/lock.h:18, > from chan_capi.c:14: > /usr/include/netdb.h:61: error: syntax error before "extern" > /usr/include/netdb.h:61: error: syntax error before "__THROW" > /usr/include/netdb.h:88: error: syntax error before "__THROW" > /usr/include/netdb.h:91: error: syntax error before "__THROW" > In file included from /usr/include/asm/param.h:4, > from /usr/include/linux/param.h:4, > from /usr/include/sys/param.h:24, > from /usr/include/asterisk/lock.h:20, > from chan_capi.c:14: > /usr/include/unistd.h:28: error: syntax error before "__BEGIN_DECLS" > In file included from /usr/include/asm/param.h:4, > from /usr/include/linux/param.h:4, > from /usr/include/sys/param.h:24, > from /usr/include/asterisk/lock.h:20, > from chan_capi.c:14: > /usr/include/unistd.h:256: error: syntax error before "extern" > /usr/include/unistd.h:256: error: syntax error before "__THROW" > /usr/include/unistd.h:286: error: syntax error before "__THROW" > /usr/include/unistd.h:369: error: syntax error before "__THROW" > /usr/include/unistd.h:378: error: syntax error before "__THROW" > /usr/include/unistd.h:419: error: syntax error before "__THROW" > /usr/include/unistd.h:434: error: syntax error before "__THROW" > /usr/include/unistd.h:448: error: syntax error before "__THROW" > /usr/include/unistd.h:466: error: syntax error before "__THROW" > /usr/include/unistd.h:469: error: syntax error before "__THROW" > /usr/include/unistd.h:481: error: syntax error before "__THROW" > /usr/include/unistd.h:492: error: syntax error before "__THROW" > /usr/include/unistd.h:496: error: syntax error before "__THROW" > /usr/include/unistd.h:500: error: syntax error before "__THROW" > /usr/include/unistd.h:504: error: syntax error before "__THROW" > /usr/include/unistd.h:509: error: syntax error before "__THROW" > In file included from /usr/include/asm/param.h:4, > from /usr/include/linux/param.h:4, > from /usr/include/sys/param.h:24, > from /usr/include/asterisk/lock.h:20, > from chan_capi.c:14: > /usr/include/unistd.h:528: error: syntax error before "__THROW" > /usr/include/unistd.h:531: error: syntax error before "__THROW" > /usr/include/unistd.h:534: error: syntax error before "__THROW" > /usr/include/unistd.h:543: error: syntax error before "__THROW" > /usr/include/unistd.h:546: error: syntax error before "__THROW" > /usr/include/unistd.h:551: error: syntax error before "__THROW" > /usr/include/unistd.h:561: error: syntax error before "__THROW" > /usr/include/unistd.h:570: error: syntax error before "__THROW" > /usr/include/unistd.h:605: error: syntax error before "__THROW" > /usr/include/unistd.h:613: error: syntax error before "__THROW" > /usr/include/unistd.h:616: error: syntax error before "__THROW" > /usr/include/unistd.h:619: error: syntax error before "__THROW" > /usr/include/unistd.h:622: error: syntax error before "__THROW" > /usr/include/unistd.h:627: error: syntax error before "__THROW" > /usr/include/unistd.h:638: error: syntax error before "__THROW" > /usr/include/unistd.h:655: error: syntax error before "__THROW" > /usr/include/unistd.h:690: error: syntax error before "__THROW" > /usr/include/unistd.h:703: error: syntax error before "__THROW" > /usr/include/unistd.h:707: error: syntax error before "__THROW" > /usr/include/unistd.h:711: error: syntax error before "__THROW" > /usr/include/unistd.h:722: error: syntax error before "__THROW" > /usr/include/unistd.h:736: error: syntax error before "__THROW" > /usr/include/unistd.h:739: error: syntax error before "__THROW" > /usr/include/unistd.h:743: error: syntax error before "__THROW" > /usr/include/unistd.h:746: error: syntax error before "__THROW" > In file included from chan_capi.c:14: > /usr/include/asterisk/lock.h:294: error: syntax error before "typedef" > /usr/include/asterisk/lock.h: In function `ast_mutex_init': > /usr/include/asterisk/lock.h:300: error: `PTHREAD_MUTEX_RECURSIVE' > undeclared (first use in this function)/usr/include/asterisk/lock.h:300: > error:(Each undeclared identifier is > reported only once/usr/include/asterisk/lock.h:300: error: for each > function itappears in.) > In file included from /usr/include/sys/time.h:30, > from /usr/include/asterisk/frame.h:24, > from chan_capi.c:15: > /usr/include/sys/select.h: At top level: > /usr/include/sys/select.h:109: error: syntax error before "extern" > In file included from /usr/include/asterisk/frame.h:24, > from chan_capi.c:15: > /usr/include/sys/time.h:38: error: syntax error before "__BEGIN_DECLS" > /usr/include/sys/time.h:64: error: syntax error before "typedef" > /usr/include/sys/time.h:73: error: syntax error before "__THROW" > /usr/include/sys/time.h:126: error: syntax error before "__THROW" > /usr/include/sys/time.h:133: error: syntax error before "__THROW" > /usr/include/sys/time.h:139: error: syntax error before "__THROW" > In file included from chan_capi.c:15: > /usr/include/asterisk/frame.h:64: error: syntax error before "struct" > In file included from /usr/include/setjmp.h:30, > from /usr/include/asterisk/channel.h:21, > from chan_capi.c:16: > /usr/include/bits/setjmp.h:38: error: syntax error before "typedef" > In file included from /usr/include/asterisk/channel.h:21, > from chan_capi.c:16: > /usr/include/setjmp.h:36: error: syntax error before "typedef" > /usr/include/setjmp.h:50: error: syntax error before "__THROW" > /usr/include/setjmp.h:53: error: syntax error before "__USING_NAMESPACE_STD" > /usr/include/setjmp.h: In function `__USING_NAMESPACE_STD': > /usr/include/setjmp.h:58: error: storage class specified for parameter > `__sigsetjmp'/usr/include/setjmp.h:58: error: syntax error before "__THROW" > /usr/include/setjmp.h:63: error: storage class specified for parameter > `_setjmp'/usr/include/setjmp.h:63: error: syntax error before "__THROW" > In file included from /usr/include/asterisk/channel.h:22, > from chan_capi.c:16: > /usr/include/sys/poll.h:41: error: syntax error before "__BEGIN_DECLS" > In file included from /usr/include/asterisk/channel.h:33, > from chan_capi.c:16: > /usr/include/asterisk/cdr.h:84: error: storage class specified for > parameter `ast_cdrbe'/usr/include/asterisk/cdr.h:90: error: storage class > specified forparameter `ast_cdr_alloc'/usr/include/asterisk/cdr.h:96: error: storage class > specified for > parameter `ast_cdr_free'/usr/include/asterisk/cdr.h:105: error: storage class > specified for > parameter `ast_cdr_init'/usr/include/asterisk/cdr.h:114: error: storage class > specified for > parameter `ast_cdr_setcid'/usr/include/asterisk/cdr.h:124: error: syntax > errorbefore "ast_cdrbe" > /usr/include/asterisk/cdr.h:124: error: storage class specified for > parameter `ast_cdr_register'/usr/include/asterisk/cdr.h:131: error: > storage classspecified for > parameter `ast_cdr_unregister'/usr/include/asterisk/cdr.h:139: error: > storage classspecified for > parameter `ast_cdr_start'/usr/include/asterisk/cdr.h:146: error: storage > classspecified for > parameter `ast_cdr_answer'/usr/include/asterisk/cdr.h:153: error: storage > classspecified for > parameter `ast_cdr_busy'/usr/include/asterisk/cdr.h:160: error: storage class > specified for > parameter `ast_cdr_failed'/usr/include/asterisk/cdr.h:168: error: storage > classspecified for > parameter `ast_cdr_disposition'/usr/include/asterisk/cdr.h:176: error: > storage classspecified for > parameter `ast_cdr_end'/usr/include/asterisk/cdr.h:184: error: storage class > specified for > parameter `ast_cdr_post'/usr/include/asterisk/cdr.h:192: error: storage class > specified for > parameter `ast_cdr_setdestchan'/usr/include/asterisk/cdr.h:202: error: > storage classspecified for > parameter `ast_cdr_setapp'/usr/include/asterisk/cdr.h:210: error: storage > classspecified for > parameter `ast_cdr_amaflags2int'/usr/include/asterisk/cdr.h:218: error: > storageclass specified for > parameter `ast_cdr_disp2str'/usr/include/asterisk/cdr.h:225: error: > storage classspecified for > parameter `ast_cdr_reset'/usr/include/asterisk/cdr.h:233: error: storage > classspecified for > parameter `ast_cdr_flags2str'/usr/include/asterisk/cdr.h:235: error: > storage classspecified for > parameter `ast_cdr_setaccount'/usr/include/asterisk/cdr.h:236: error: > storage classspecified for > parameter `ast_cdr_setamaflags'/usr/include/asterisk/cdr.h:239: error: > storage classspecified for > parameter `ast_cdr_setuserfield'/usr/include/asterisk/cdr.h:240: error: > storageclass specified for > parameter `ast_cdr_appenduserfield'/usr/include/asterisk/cdr.h:244: error: > storageclass specified for > parameter `ast_cdr_update'/usr/include/asterisk/cdr.h:247: error: storage > classspecified for > parameter `ast_default_amaflags'/usr/include/asterisk/cdr.h:249: error: > storageclass specified for > parameter `ast_default_accountcode'/usr/include/asterisk/cdr.h:255: error: > storageclass specified for > parameter `ast_cdr_append'In file included from > /usr/include/asterisk/monitor.h:4, from /usr/include/asterisk/channel.h:34, > from chan_capi.c:16: > /usr/include/stdio.h:30: error: syntax error before "__BEGIN_DECLS" > In file included from /usr/include/_G_config.h:14, > from /usr/include/libio.h:32, > from /usr/include/stdio.h:72, > from /usr/include/asterisk/monitor.h:4, > from /usr/include/asterisk/channel.h:34, > from chan_capi.c:16: > /usr/lib/gcc-lib/i386-redhat-linux/3.3.3/include/stddef.h:325: error: > storage class specified for parameter > `wchar_t'/usr/lib/gcc-lib/i386-redhat-linux/3.3.3/include/stddef.h:354: > error:storage class specified for parameter `wint_t'In file included from > /usr/include/_G_config.h:24, > from /usr/include/libio.h:32, > from /usr/include/stdio.h:72, > from /usr/include/asterisk/monitor.h:4, > from /usr/include/asterisk/channel.h:34, > from chan_capi.c:16: > /usr/include/wchar.h:81: error: syntax error before "wint_t" > /usr/include/wchar.h:83: error: syntax error before '}' token > In file included from /usr/include/libio.h:32, > from /usr/include/stdio.h:72, > from /usr/include/asterisk/monitor.h:4, > from /usr/include/asterisk/channel.h:34, > from chan_capi.c:16: > /usr/include/_G_config.h:29: error: syntax error before "__mbstate_t" > /usr/include/_G_config.h:34: error: syntax error before "__mbstate_t" > In file included from /usr/include/_G_config.h:44, > from /usr/include/libio.h:32, > from /usr/include/stdio.h:72, > from /usr/include/asterisk/monitor.h:4, > from /usr/include/asterisk/channel.h:34, > from chan_capi.c:16: > /usr/include/gconv.h:72: error: storage class specified for parameter > `__gconv_fct'/usr/include/gconv.h:75: error: syntax error before '*' token > /usr/include/gconv.h:75: error: storage class specified for parameter > `wint_t'/usr/include/gconv.h:75: error: `wint_t' declared as function > returning afunction/usr/include/gconv.h:75: error: conflicting types for `wint_t' > /usr/lib/gcc-lib/i386-redhat-linux/3.3.3/include/stddef.h:354: error: > previous declaration of `wint_t'/usr/include/gconv.h:78: error: storage class > specified for parameter > `__gconv_init_fct'/usr/include/gconv.h:79: error: storage class specified > for parameter`__gconv_end_fct'/usr/include/gconv.h:88: error: storage class specified > for parameter`__gconv_trans_fct'/usr/include/gconv.h:93: error: storage class specified > forparameter > `__gconv_trans_context_fct'/usr/include/gconv.h:97: error: storage class > specifiedfor parameter > `__gconv_trans_query_fct'/usr/include/gconv.h:100: error: storage class > specifiedfor parameter > `__gconv_trans_init_fct'/usr/include/gconv.h:101: error: storage class > specified forparameter > `__gconv_trans_end_fct'/usr/include/gconv.h:106: error: syntax error before > "__gconv_trans_fct" > /usr/include/gconv.h:111: error: syntax error before '}' token > /usr/include/gconv.h:125: error: syntax error before "__gconv_fct" > /usr/include/gconv.h:140: error: redeclaration of `__data' > /usr/include/gconv.h:109: error: `__data' previously declared here > /usr/include/gconv.h:141: error: syntax error before '}' token > /usr/include/gconv.h:162: error: syntax error before "__mbstate_t" > /usr/include/gconv.h:168: error: syntax error before '}' token > /usr/include/gconv.h:176: error: field `__data' has incomplete type > /usr/include/gconv.h:176: error: syntax error before "__flexarr" > In file included from /usr/include/libio.h:32, > from /usr/include/stdio.h:72, > from /usr/include/asterisk/monitor.h:4, > from /usr/include/asterisk/channel.h:34, > from chan_capi.c:16: > /usr/include/_G_config.h:47: error: field `__cd' has incomplete type > /usr/include/_G_config.h:50: error: field `__cd' has incomplete type > /usr/include/_G_config.h:51: error: field `__data' has incomplete type > /usr/include/_G_config.h:53: error: storage class specified for parameter > `_G_iconv_t'/usr/include/_G_config.h:55: error: storage class specified > for parameter`_G_int16_t'/usr/include/_G_config.h:56: error: storage class specified > for parameter`_G_int32_t'/usr/include/_G_config.h:57: error: storage class specified > for parameter`_G_uint16_t'/usr/include/_G_config.h:58: error: storage class specified > for parameter`_G_uint32_t'In file included from /usr/include/libio.h:53, > from /usr/include/stdio.h:72, > from /usr/include/asterisk/monitor.h:4, > from /usr/include/asterisk/channel.h:34, > from chan_capi.c:16: > /usr/lib/gcc-lib/i386-redhat-linux/3.3.3/include/stdarg.h:43: error: > storage class specified for parameter `__gnuc_va_list'In file included from > /usr/include/libio.h:62, > from /usr/include/stdio.h:72, > from /usr/include/asterisk/monitor.h:4, > from /usr/include/asterisk/channel.h:34, > from chan_capi.c:16: > /usr/include/sys/cdefs.h:43:43: missing binary operator before token "(" > /usr/include/sys/cdefs.h:122:19: missing binary operator before token "(" > /usr/include/sys/cdefs.h:173:19: missing binary operator before token "(" > /usr/include/sys/cdefs.h:182:19: missing binary operator before token "(" > /usr/include/sys/cdefs.h:191:19: missing binary operator before token "(" > /usr/include/sys/cdefs.h:200:19: missing binary operator before token "(" > /usr/include/sys/cdefs.h:212:19: missing binary operator before token "(" > /usr/include/sys/cdefs.h:222:19: missing binary operator before token "(" > /usr/include/sys/cdefs.h:233:20: missing binary operator before token "(" > /usr/include/sys/cdefs.h:238:20: missing binary operator before token "(" > /usr/include/sys/cdefs.h:245:19: missing binary operator before token "(" > In file included from /usr/include/stdio.h:72, > from /usr/include/asterisk/monitor.h:4, > from /usr/include/asterisk/channel.h:34, > from chan_capi.c:16: > /usr/include/libio.h:173: error: storage class specified for parameter > `_IO_lock_t'/usr/include/libio.h:303: error: syntax error before "_IO_lock_t" > /usr/include/libio.h:325: error: syntax error before '}' token > /usr/include/libio.h:328: error: storage class specified for parameter > `_IO_FILE'/usr/include/libio.h:333: error: storage class specified for > parameter`_IO_2_1_stdin_'/usr/include/libio.h:334: error: storage class specified > for parameter`_IO_2_1_stdout_'/usr/include/libio.h:335: error: storage class specified > for parameter`_IO_2_1_stderr_'/usr/include/libio.h:351: error: storage class specified > for parameter`__io_read_fn'/usr/include/libio.h:360: error: storage class specified for > parameter`__io_write_fn'/usr/include/libio.h:368: error: storage class specified > for parameter`__io_seek_fn'/usr/include/libio.h:371: error: storage class specified for > parameter`__io_close_fn'/usr/include/libio.h:376: error: storage class specified > for parameter`__io_read_fn'/usr/include/libio.h:376: error: conflicting types for > `__io_read_fn'/usr/include/libio.h:351: error: previous declaration of `__io_read_fn' > /usr/include/libio.h:376: error: syntax error before "cookie_read_function_t" > /usr/include/libio.h:377: error: storage class specified for parameter > `__io_write_fn'/usr/include/libio.h:377: error: conflicting types for > `__io_write_fn'/usr/include/libio.h:360: error: previous declaration of `__io_write_fn' > /usr/include/libio.h:377: error: syntax error before > "cookie_write_function_t"/usr/include/libio.h:378: error: storage class > specifiedfor parameter > `__io_seek_fn'/usr/include/libio.h:378: error: conflicting types for > `__io_seek_fn'/usr/include/libio.h:368: error: previous declaration of `__io_seek_fn' > /usr/include/libio.h:378: error: syntax error before "cookie_seek_function_t" > /usr/include/libio.h:379: error: storage class specified for parameter > `__io_close_fn'/usr/include/libio.h:379: error: conflicting types for > `__io_close_fn'/usr/include/libio.h:371: error: previous declaration of `__io_close_fn' > /usr/include/libio.h:379: error: syntax error before > "cookie_close_function_t"/usr/include/libio.h:384: error: syntax error before > "__io_read_fn" > /usr/include/libio.h:389: error: storage class specified for parameter > `_IO_cookie_io_functions_t'/usr/include/libio.h:389: error: syntax error > before"cookie_io_functions_t" > /usr/include/libio.h:395: error: syntax error before > "_IO_cookie_io_functions_t"/usr/include/libio.h:395: error: storage class > specifiedfor parameter > `_IO_cookie_init'/usr/include/libio.h:403: error: syntax error before '*' > token/usr/include/libio.h:403: error: storage class specified for parameter > `__underflow'/usr/include/libio.h:404: error: syntax error before '*' token > /usr/include/libio.h:404: error: storage class specified for parameter > `__uflow'/usr/include/libio.h:405: error: syntax error before '*' token > /usr/include/libio.h:405: error: storage class specified for parameter > `__overflow'/usr/include/libio.h:406: error: storage class specified for > parameter`wint_t'/usr/include/libio.h:406: error: conflicting types for `wint_t' > /usr/include/gconv.h:75: error: previous declaration of `wint_t' > /usr/include/libio.h:406: error: syntax error before "__wunderflow" > /usr/include/libio.h:407: error: storage class specified for parameter > `wint_t'/usr/include/libio.h:407: error: redeclaration of `wint_t' > /usr/include/libio.h:406: error: `wint_t' previously declared here > /usr/include/libio.h:407: error: syntax error before "__wuflow" > /usr/include/libio.h:408: error: storage class specified for parameter > `wint_t'/usr/include/libio.h:408: error: redeclaration of `wint_t' > /usr/include/libio.h:407: error: `wint_t' previously declared here > /usr/include/libio.h:408: error: syntax error before "__woverflow" > /usr/include/libio.h:441: error: syntax error before '*' token > /usr/include/libio.h:441: error: storage class specified for parameter > `_IO_getc'/usr/include/libio.h:442: error: syntax error before "_IO_FILE" > /usr/include/libio.h:442: error: storage class specified for parameter > `_IO_putc'/usr/include/libio.h:443: error: syntax error before '*' token > /usr/include/libio.h:443: error: storage class specified for parameter > `_IO_feof'/usr/include/libio.h:444: error: syntax error before '*' token > /usr/include/libio.h:444: error: storage class specified for parameter > `_IO_ferror'/usr/include/libio.h:446: error: syntax error before '*' token > /usr/include/libio.h:446: error: storage class specified for parameter > `_IO_peekc_locked'/usr/include/libio.h:452: error: syntax error before '*' > token/usr/include/libio.h:452: error: storage class specified for parameter > `_IO_flockfile'/usr/include/libio.h:453: error: syntax error before '*' token > /usr/include/libio.h:453: error: storage class specified for parameter > `_IO_funlockfile'/usr/include/libio.h:454: error: syntax error before '*' > token/usr/include/libio.h:454: error: storage class specified for parameter > `_IO_ftrylockfile'/usr/include/libio.h:471: error: syntax error before '*' > token/usr/include/libio.h:472: error: storage class specified for parameter > `_IO_vfscanf'/usr/include/libio.h:473: error: syntax error before '*' token > /usr/include/libio.h:474: error: storage class specified for parameter > `_IO_vfprintf'/usr/include/libio.h:475: error: syntax error before '*' token > /usr/include/libio.h:475: error: storage class specified for parameter > `_IO_padn'/usr/include/libio.h:476: error: syntax error before '*' token > /usr/include/libio.h:476: error: storage class specified for parameter > `_IO_sgetn'/usr/include/libio.h:478: error: syntax error before '*' token > /usr/include/libio.h:478: error: storage class specified for parameter > `_IO_seekoff'/usr/include/libio.h:479: error: syntax error before '*' token > /usr/include/libio.h:479: error: storage class specified for parameter > `_IO_seekpos'/usr/include/libio.h:481: error: syntax error before '*' token > /usr/include/libio.h:481: error: storage class specified for parameter > `_IO_free_backup_area'In file included from > /usr/include/asterisk/monitor.h:4, from /usr/include/asterisk/channel.h:34, > from chan_capi.c:16: > /usr/include/stdio.h:88: error: storage class specified for parameter > `_G_fpos_t'/usr/include/stdio.h:88: error: syntax error before "fpos_t" > In file included from /usr/include/asterisk/monitor.h:4, > from /usr/include/asterisk/channel.h:34, > from chan_capi.c:16: > /usr/include/stdio.h:142: error: storage class specified for parameter > `stdin'/usr/include/stdio.h:143: error: storage class specified for parameter > `stdout'/usr/include/stdio.h:144: error: storage class specified for > parameter`stderr'/usr/include/stdio.h:154: error: storage class specified for > parameter`remove'/usr/include/stdio.h:156: error: storage class specified for > parameter`rename'/usr/include/stdio.h:166: error: storage class specified for > parameter `FILE'/usr/include/stdio.h:166: error: syntax error before '*' token > /usr/include/stdio.h:180: error: storage class specified for parameter > `tmpnam'/usr/include/stdio.h:208: error: syntax error before '*' token > /usr/include/stdio.h:208: error: storage class specified for parameter > `fclose'/usr/include/stdio.h:213: error: syntax error before '*' token > /usr/include/stdio.h:213: error: storage class specified for parameter > `fflush'/usr/include/stdio.h:243: error: storage class specified for > parameter `FILE'/usr/include/stdio.h:243: error: redeclaration of `FILE' > /usr/include/stdio.h:166: error: `FILE' previously declared here > /usr/include/stdio.h:243: error: syntax error before '*' token > /usr/include/stdio.h:249: error: storage class specified for parameter `FILE' > /usr/include/stdio.h:249: error: redeclaration of `FILE' > /usr/include/stdio.h:243: error: `FILE' previously declared here > /usr/include/stdio.h:249: error: syntax error before '*' token > /usr/include/stdio.h:299: error: syntax error before '*' token > /usr/include/stdio.h:299: error: storage class specified for parameter > `setbuf'/usr/include/stdio.h:303: error: syntax error before '*' token > /usr/include/stdio.h:304: error: storage class specified for parameter > `setvbuf'/usr/include/stdio.h:323: error: syntax error before '*' token > /usr/include/stdio.h:324: error: storage class specified for parameter > `fprintf'/usr/include/stdio.h:329: error: storage class specified for > parameter`printf'/usr/include/stdio.h:332: error: storage class specified for > parameter`sprintf'/usr/include/stdio.h:338: error: syntax error before '*' token > /usr/include/stdio.h:339: error: storage class specified for parameter > `vfprintf'/usr/include/stdio.h:344: error: syntax error before > "__gnuc_va_list"/usr/include/stdio.h:344: error: storage class specified for parameter > `vprintf'/usr/include/stdio.h:347: error: syntax error before > "__gnuc_va_list".. > ... > ... > chan_capi.c:2595: error: redeclaration of `txgain' > chan_capi_pvt.h:181: error: `txgain' previously declared here > chan_capi.c:2596: error: parameter `isdnmode' is initialized > chan_capi.c:2596: error: redeclaration of `isdnmode' > chan_capi_pvt.h:157: error: `isdnmode' previously declared here > chan_capi.c:2597: error: parameter `callgroup' is initialized > chan_capi.c:2597: error: redeclaration of `callgroup' > chan_capi_pvt.h:132: error: `callgroup' previously declared here > chan_capi.c:2600: error: syntax error before "cfg" > chan_capi.c:2659: error: parameter `__u' is initialized > chan_capi.c:2659: error: conflicting types for `__u' > chan_capi.c:2331: error: previous declaration of `__u' > chan_capi.c:2659: error: parameter `__c' is initialized > chan_capi.c:2659: error: redeclaration of `__c' > chan_capi.c:2331: error: `__c' previously declared here > chan_capi.c:2659: error: syntax error before "switch" > make: *** [chan_capi.o] Error 1 > > Any idea? > Whats my problem? > > Thanks, Mario > > _______________________________________________ > 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 >
Hi! I am trying to start Asterisk 1.0-RC1 with chan_capi. Here the error: --- Parsing '/etc/asterisk/modem.conf': Found == Loading modem driver chan_modem_chan_capi.soSep 13 22:14:08 WARNING[1076968064]: loader.c:242 ast_load_resource: /usr/lib/asterisk/modules/chan_modem_chan_capi.so: cannot open shared object file: No such file or directorySep 13 22:14:08 ERROR[1076968064]: chan_modem.c:954 load_module: Failed to load driver chan_modem_chan_capi.so == Unregistered channel type 'Modem' Sep 13 22:14:08 WARNING[1076968064]: loader.c:328 ast_load_resource: chan_modem.so: load_module failed, returning -1 == Unregistered channel type 'Modem' Sep 13 22:14:08 WARNING[1076968064]: loader.c:374 load_modules: Loading module chan_modem.so failed!--- I dont have a chan_modem_chan_capi.so module, only a chan_modem.o. I am using chan_capi from: http://www.junghanns.net/asterisk/downloads/chan_capi.0.3.5.tar.gz My modem.conf: --- [interfaces] context=remote driver=chan_capi stripmsd=0 dialtype=tone mode=immediate group=1 Capiinfo: --- 02 (49.18) Serial Number: 1000001 BChannels: 2 Global Options: 0x00000039 internal controller supported DTMF supported Supplementary Services supported channel allocation supported (leased lines) B1 protocols support: 0x4000011f 64 kbit/s with HDLC framing 64 kbit/s bit-transparent operation V.110 asynconous operation with start/stop byte framing V.110 synconous operation with HDLC framing T.30 modem for fax group 3 Modem asyncronous operation with start/stop byte framing B2 protocols support: 0x00000b1b ISO 7776 (X.75 SLP) Transparent LAPD with Q.921 for D channel X.25 (SAPI 16) T.30 for fax group 3 ISO 7776 (X.75 SLP) with V.42bis compression V.120 asyncronous mode V.120 bit-transparent mode B3 protocols support: 0x800000bf Transparent T.90NL, T.70NL, T.90 ISO 8208 (X.25 DTE-DTE) X.25 DCE T.30 for fax group 3 T.30 for fax group 3 with extensions Modem 0100 0200 39000000 1f010040 1b0b0000 bf000080 00000000 00000000 00000000 00000000 00000000 00000000 01000001 00020000 00000000 00000000 00000000 Supplementary services support: 0x000003ff Hold / Retrieve Terminal Portability ECT 3PTY Call Forwarding Call Deflection MCID CCBS Any help/hints/tips would be great! Thanks! Mario
On Mon, 2004-09-13 at 22:22 +0200, asterisk@bortal.de wrote:> I dont have a chan_modem_chan_capi.so module, only a chan_modem.o. > I am using chan_capi from: > http://www.junghanns.net/asterisk/downloads/chan_capi.0.3.5.tar.gz > My modem.conf: > --- > [interfaces] > context=remote > driver=chan_capi > stripmsd=0 > dialtype=tone > mode=immediate > group=1 >And there seems to be your error chan_capi does not need anything in modem.conf. Just follow the directions in INSTALL -- Dave Cotton <dcotton@linuxautrement.com>
Go into modules.conf Comment out chan_modem.so=yes Make it look like this: [global] chan_capi.so=yes chan_modem.so=yes ;space here Hope that helps -----Original Message----- From: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of asterisk@bortal.de Sent: 13 September 2004 21:22 To: asterisk-users@lists.digium.com Subject: [Asterisk-Users] chan_capi module Hi! I am trying to start Asterisk 1.0-RC1 with chan_capi. Here the error: --- Parsing '/etc/asterisk/modem.conf': Found == Loading modem driver chan_modem_chan_capi.soSep 13 22:14:08 WARNING[1076968064]: loader.c:242 ast_load_resource: /usr/lib/asterisk/modules/chan_modem_chan_capi.so: cannot open shared object file: No such file or directorySep 13 22:14:08 ERROR[1076968064]: chan_modem.c:954 load_module: Failed to load driver chan_modem_chan_capi.so == Unregistered channel type 'Modem' Sep 13 22:14:08 WARNING[1076968064]: loader.c:328 ast_load_resource: chan_modem.so: load_module failed, returning -1 == Unregistered channel type 'Modem' Sep 13 22:14:08 WARNING[1076968064]: loader.c:374 load_modules: Loading module chan_modem.so failed!--- I dont have a chan_modem_chan_capi.so module, only a chan_modem.o. I am using chan_capi from: http://www.junghanns.net/asterisk/downloads/chan_capi.0.3.5.tar.gz My modem.conf: --- [interfaces] context=remote driver=chan_capi stripmsd=0 dialtype=tone mode=immediate group=1 Capiinfo: --- 02 (49.18) Serial Number: 1000001 BChannels: 2 Global Options: 0x00000039 internal controller supported DTMF supported Supplementary Services supported channel allocation supported (leased lines) B1 protocols support: 0x4000011f 64 kbit/s with HDLC framing 64 kbit/s bit-transparent operation V.110 asynconous operation with start/stop byte framing V.110 synconous operation with HDLC framing T.30 modem for fax group 3 Modem asyncronous operation with start/stop byte framing B2 protocols support: 0x00000b1b ISO 7776 (X.75 SLP) Transparent LAPD with Q.921 for D channel X.25 (SAPI 16) T.30 for fax group 3 ISO 7776 (X.75 SLP) with V.42bis compression V.120 asyncronous mode V.120 bit-transparent mode B3 protocols support: 0x800000bf Transparent T.90NL, T.70NL, T.90 ISO 8208 (X.25 DTE-DTE) X.25 DCE T.30 for fax group 3 T.30 for fax group 3 with extensions Modem 0100 0200 39000000 1f010040 1b0b0000 bf000080 00000000 00000000 00000000 00000000 00000000 00000000 01000001 00020000 00000000 00000000 00000000 Supplementary services support: 0x000003ff Hold / Retrieve Terminal Portability ECT 3PTY Call Forwarding Call Deflection MCID CCBS Any help/hints/tips would be great! Thanks! Mario _______________________________________________ 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
Sorry, I cant help, but I do have the exact same problem with compiling chan_capi module under RH 9.0. Anybody any Idea? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20040925/061af1ed/attachment.htm
Hello everybody,
i have the same problem compiling the chan_capi under RH 9.0.
make starts with the error like this:
[root@mypbx 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=i686
-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/i386-redhat-linux/3.2.2/include/stddef.h:213: 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: syntax error before "typedef"
/usr/include/time.h:74: parse error before "__BEGIN_NAMESPACE_STD"
then hundred of errors follow.
Does anybody have an idea?
Thank you very much
Dirk Rennekamp
D - 21266 Jesteburg
dirk@rennekamp.de
[Asterisk-Users] chan_capi module
asterisk at bortal.de asterisk
<mailto:asterisk-users%40lists.digium.com?Subject=%5BAsterisk-Users%5D%2
0chan_capi%20module&In-Reply-To=4a07a94d04082605206a70ae6c%40mail.gmail.
com> at bortal.de
Thu Aug 26 07:44:33 CDT 2004
* Previous message: [Asterisk-Users]
<http://lists.digium.com/pipermail/asterisk-users/2004-August/060130.htm
l> chan_capi module
* Next message: [Asterisk-Users]
<http://lists.digium.com/pipermail/asterisk-users/2004-August/060128.htm
l> Overhead Paging
* Messages sorted by: [
<http://lists.digium.com/pipermail/asterisk-users/2004-August/date.html#
60132> date ] [
<http://lists.digium.com/pipermail/asterisk-users/2004-August/thread.htm
l#60132> thread ] [
<http://lists.digium.com/pipermail/asterisk-users/2004-August/subject.ht
ml#60132> subject ] [
<http://lists.digium.com/pipermail/asterisk-users/2004-August/author.htm
l#60132> author ]
_____
> i think your problem is above the pasted error message.
> i compiled chan_capi on fedora 2 just yesterday.
> only problem was that some isdn4k devel pkg was missing.
> install it and it'll probably work fine.
I have just installed them:
rpm -Uvh fedora-core2-full/Fedora/RPMS/isdn4k*
and ran
ldconfig
afterwards.
Still the same error.
Which other libs or devel package could be missing?
>
> On Thu, 26 Aug 2004 13:32:06 +0200 (CEST), asterisk at bortal.de
<http://lists.digium.com/mailman/listinfo/asterisk-users>
> <asterisk at bortal.de
<http://lists.digium.com/mailman/listinfo/asterisk-users> > wrote:
>> Hello!
>>
>> I have tried to compile the capi module
>> (http://www.junghanns.net/asterisk/downloads/chan_capi.0.3.5.tar.gz)
>> on fedora2 today.
>> ----------- MAKEFILE --------------
>>
>> ...EXPORT_ALL_VARIABLES:
>>
>> INSTALL_PREFIX
>> #ASTERISK_HEADER_DIR=$(INSTALL_PREFIX)/usr/include
>> ASTERISK_HEADER_DIR=/usr/include/asterisk
>>
>> #MODULES_DIR=$(INSTALL_PREFIX)/usr/lib/asterisk/modules
>> MODULES_DIR=/usr/lib/asterisk/modules/
>>
>> PROC=$(shell uname -m)
>>
>> ----------- MAKEFILE SNIP END--------------
>>
>> Make Error:
>> -------------------------------------------
>>
>> 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/i386-redhat-linux/3.3.3/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:
.... cut here...
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://lists.digium.com/pipermail/asterisk-users/attachments/20041003/0504b1e9/attachment.htm