[Asterisk-Users] chan_capi module

Fabian Stelzer fabeman at gmail.com
Thu Aug 26 05:20:00 MST 2004


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 at bortal.de
<asterisk at 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 at 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
>



More information about the asterisk-users mailing list