Could somebody help me to install app_conference?

Hi everybody!
I download app_conference but I’ve big problems during installation. I modify make file like in http://www.voip-info.org/wiki/view/Asterisk+cmd+Conference article but I’ve got many errors and the process terminate not correctly. Please help me! Thank you very much!

Hi

What are the errors what OS and what version of asterisk , they are just questions to start with.

Ian

Hi, thank you!!
So… the asterisk version is the 1.6.2.7 and the appconference version is the 2.0.1 and I install it on Ubuntu 8.04.
My makefile is:

[code]# $Id: Makefile 889 2007-08-09 14:42:48Z sbalea $

Makefile, based on the Asterisk Makefile, Coypright © 1999, Mark Spencer

Copyright © 2002,2003 Junghanns.NET GmbH

Klaus-Peter Junghanns kapejod@ns1.jnetdns.de

This program is free software and may be modified and

distributed under the terms of the GNU Public License.

.EXPORT_ALL_VARIABLES:

app_conference defines which can be passed on the command-line

INSTALL_PREFIX := /usr
INSTALL_MODULES_DIR := $(INSTALL_PREFIX)/lib/asterisk/modules

ASTERISK_INCLUDE_DIR := /usr/include/asterisk

REVISION = $(shell svnversion -n .)

turn app_conference debugging on or off ( 0 == OFF, 1 == ON )

APP_CONFERENCE_DEBUG ?= 0

0 = OFF 1 = astdsp 2 = speex

SILDET := 2

app_conference objects to build

OBJS = app_conference.o conference.o member.o frame.o cli.o
TARGET = app_conference.so

standard compile settings

PROC = $(shell uname -m)
INSTALL = install

INCLUDE = -I$(ASTERISK_INCLUDE_DIR)
DEBUG := -g

CFLAGS = -pipe -Wall -Wmissing-prototypes -Wmissing-declarations -MD -MP $(DEBUG)
CPPFLAGS = $(INCLUDE) -D_REENTRANT -D_GNU_SOURCE -DREVISION="$(REVISION)"
#CFLAGS += -O2
#CFLAGS += -O3 -march=pentium3 -msse -mfpmath=sse,387 -ffast-math

PERF: below is 10% faster than -O2 or -O3 alone.

#CFLAGS += -O3 -ffast-math -funroll-loops

below is another 5% faster or so.

#CFLAGS += -O3 -ffast-math -funroll-all-loops -fsingle-precision-constant
#CFLAGS += -mcpu=7450 -faltivec -mabi=altivec -mdynamic-no-pic

adding -msse -mfpmath=sse has little effect.

#CFLAGS += -O3 -msse -mfpmath=sse
#CFLAGS += $(shell if $(CC) -march=$(PROC) -S -o /dev/null -xc /dev/null >/dev/null 2>&1; then echo “-march=$(PROC)”; fi)
CFLAGS += $(shell if uname -m | grep -q ppc; then echo “-fsigned-char”; fi)
CFLAGS += -fPIC
CPPFLAGS += -DCRYPTO

Uncomment this if you want G.729A support (need to have the actual codec installed

CPPFLAGS += -DAC_USE_G729A

ifeq ($(APP_CONFERENCE_DEBUG), 1)
CPPFLAGS += -DAPP_CONFERENCE_DEBUG
endif

additional flag values for silence detection

ifeq ($(SILDET), 2)
OBJS += libspeex/preprocess.o libspeex/misc.o libspeex/smallft.o
CPPFLAGS += -Ilibspeex -DSILDET=2
endif

ifeq ($(SILDET), 1)
CPPFLAGS += -DSILDET=1
endif

OSARCH=$(shell uname -s)
ifeq (${OSARCH},Darwin)
SOLINK=-dynamic -bundle -undefined suppress -force_flat_namespace
else
SOLINK=-shared -Xlinker -x
endif

DEPS += $(subst .o,.d,$(OBJS))

targets

all: $(TARGET)

.PHONY: clean
clean:
$(RM) $(OBJS) $(DEPS)

.PHONY: distclean
distclean: clean
$(RM) $(TARGET)

$(TARGET): $(OBJS)
$(CC) -pg $(SOLINK) -o $@ $(OBJS)

vad_test: vad_test.o libspeex/preprocess.o libspeex/misc.o libspeex/smallft.o
$(CC) $(PROFILE) -o $@ $^ -lm

install: all
for x in $(SHAREDOS); do $(INSTALL) -m 755 $$x $(INSTALL_MODULES_DIR) ; done
/usr/sbin/asterisk -rx “restart now”

config: all

cp conf.conf /etc/asterisk/

-include $(DEPS)
[/code]

And I receive many errors… these are all that I can catch from my terminal, after I call the make command.

/usr/include/asterisk/channel.h:1686: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token /usr/include/asterisk/channel.h:1727: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token /usr/include/asterisk/channel.h:1754: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token /usr/include/asterisk/channel.h:1773: error: expected declaration specifiers before ‘ast_group_t’ /usr/include/asterisk/channel.h:1776: error: expected declaration specifiers or ‘...’ before ‘ast_group_t’ In file included from /usr/include/asterisk/pbx.h:27, from /usr/include/asterisk/features.h:27, from /usr/include/inttypes.h:26, from /usr/include/asterisk/compat.h:29, from /usr/include/asterisk.h:27, from app_conference.c:28: /usr/include/asterisk/devicestate.h:65: error: storage class specified for parameter ‘ast_devstate_prov_cb_type’ /usr/include/asterisk/devicestate.h:203: error: expected declaration specifiers or ‘...’ before ‘ast_devstate_prov_cb_type’ In file included from /usr/include/asterisk/pbx.h:29, from /usr/include/asterisk/features.h:27, from /usr/include/inttypes.h:26, from /usr/include/asterisk/compat.h:29, from /usr/include/asterisk.h:27, from app_conference.c:28: /usr/include/asterisk/hashtab.h:98: error: expected specifier-qualifier-list before ‘ast_rwlock_t’ In file included from /usr/include/asterisk/features.h:27, from /usr/include/inttypes.h:26, from /usr/include/asterisk/compat.h:29, from /usr/include/asterisk.h:27, from app_conference.c:28: /usr/include/asterisk/pbx.h:74: error: storage class specified for parameter ‘ast_state_cb_type’ /usr/include/asterisk/pbx.h:85: error: expected ‘:’, ‘,’, ‘;’, ‘}’ or ‘__attribute__’ before ‘synopsis’ /usr/include/asterisk/pbx.h:101: error: storage class specified for parameter ‘ast_switch_f’ /usr/include/asterisk/pbx.h:109: error: expected specifier-qualifier-list before ‘ast_switch_f’ /usr/include/asterisk/pbx.h:303: error: expected specifier-qualifier-list before ‘uint64_t’ /usr/include/asterisk/pbx.h:400: error: expected declaration specifiers or ‘...’ before ‘ast_state_cb_type’ /usr/include/asterisk/pbx.h:413: error: expected declaration specifiers or ‘...’ before ‘ast_state_cb_type’ /usr/include/asterisk/pbx.h:970: error: expected declaration specifiers or ‘...’ before ‘size_t’ /usr/include/asterisk/pbx.h:971: error: expected declaration specifiers or ‘...’ before ‘size_t’ /usr/include/asterisk/pbx.h:1058: error: expected declaration specifiers or ‘...’ before ‘size_t’ In file included from /usr/include/asterisk/compat.h:29, from /usr/include/asterisk.h:27, from app_conference.c:28: /usr/include/inttypes.h:35: error: storage class specified for parameter ‘__gwchar_t’ /usr/include/inttypes.h:292: error: storage class specified for parameter ‘imaxdiv_t’ /usr/include/inttypes.h:298: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘imaxabs’ /usr/include/inttypes.h:301: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘imaxdiv’ /usr/include/inttypes.h:305: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘strtoimax’ /usr/include/inttypes.h:309: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘strtoumax’ /usr/include/inttypes.h:313: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘wcstoimax’ /usr/include/inttypes.h:318: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘wcstoumax’ In file included from /usr/include/asterisk/compat.h:41, from /usr/include/asterisk.h:27, from app_conference.c:28: /usr/lib/gcc/i486-linux-gnu/4.2.4/include/stddef.h:152: error: storage class specified for parameter ‘ptrdiff_t’ /usr/lib/gcc/i486-linux-gnu/4.2.4/include/stddef.h:326: error: storage class specified for parameter ‘wchar_t’ In file included from /usr/include/asterisk/compat.h:52, from /usr/include/asterisk.h:27, from app_conference.c:28: /usr/lib/gcc/i486-linux-gnu/4.2.4/include/stdarg.h:43: error: storage class specified for parameter ‘__gnuc_va_list’ /usr/lib/gcc/i486-linux-gnu/4.2.4/include/stdarg.h:105: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘va_list’ In file included from /usr/include/asterisk/compat.h:55, from /usr/include/asterisk.h:27, from app_conference.c:28: /usr/include/stdlib.h:102: error: storage class specified for parameter ‘div_t’ /usr/include/stdlib.h:110: error: storage class specified for parameter ‘ldiv_t’ /usr/include/stdlib.h:140: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__ctype_get_mb_cur_max’ /usr/include/stdlib.h:146: error: storage class specified for parameter ‘atof’ /usr/include/stdlib.h:149: error: storage class specified for parameter ‘atoi’ /usr/include/stdlib.h:152: error: storage class specified for parameter ‘atol’ /usr/include/stdlib.h:167: error: storage class specified for parameter ‘strtod’ /usr/include/stdlib.h:186: error: storage class specified for parameter ‘strtol’ /usr/include/stdlib.h:190: error: storage class specified for parameter ‘strtoul’ /usr/include/stdlib.h:380: error: storage class specified for parameter ‘rand’ /usr/include/stdlib.h:382: error: storage class specified for parameter ‘srand’ /usr/include/stdlib.h:471: error: expected ‘)’ before ‘__size’ /usr/include/stdlib.h:473: error: expected ‘)’ before ‘__nmemb’ /usr/include/stdlib.h:485: error: expected declaration specifiers or ‘...’ before ‘size_t’ /usr/include/stdlib.h:486: error: storage class specified for parameter ‘realloc’ /usr/include/stdlib.h:488: error: storage class specified for parameter ‘free’ /usr/include/stdlib.h:513: error: storage class specified for parameter ‘abort’ /usr/include/stdlib.h:517: error: storage class specified for parameter ‘atexit’ /usr/include/stdlib.h:531: error: storage class specified for parameter ‘exit’ /usr/include/stdlib.h:545: error: storage class specified for parameter ‘getenv’ /usr/include/stdlib.h:551: error: storage class specified for parameter ‘__secure_getenv’ /usr/include/stdlib.h:645: error: storage class specified for parameter ‘system’ /usr/include/stdlib.h:670: error: storage class specified for parameter ‘__compar_fn_t’ /usr/include/stdlib.h:681: error: expected declaration specifiers or ‘...’ before ‘size_t’ /usr/include/stdlib.h:681: error: expected declaration specifiers or ‘...’ before ‘size_t’ /usr/include/stdlib.h:681: error: expected declaration specifiers or ‘...’ before ‘__compar_fn_t’ /usr/include/stdlib.h:682: error: storage class specified for parameter ‘bsearch’ /usr/include/stdlib.h:686: error: expected declaration specifiers or ‘...’ before ‘size_t’ /usr/include/stdlib.h:686: error: expected declaration specifiers or ‘...’ before ‘size_t’ /usr/include/stdlib.h:687: error: expected declaration specifiers or ‘...’ before ‘__compar_fn_t’ /usr/include/stdlib.h:687: error: storage class specified for parameter ‘qsort’ /usr/include/stdlib.h:691: error: storage class specified for parameter ‘abs’ /usr/include/stdlib.h:692: error: storage class specified for parameter ‘labs’ /usr/include/stdlib.h:705: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘div’ /usr/include/stdlib.h:707: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘ldiv’ /usr/include/stdlib.h:779: error: expected declaration specifiers or ‘...’ before ‘size_t’ /usr/include/stdlib.h:779: error: storage class specified for parameter ‘mblen’ /usr/include/stdlib.h:782: error: expected ‘)’ before ‘*’ token /usr/include/stdlib.h:786: error: expected declaration specifiers or ‘...’ before ‘wchar_t’ /usr/include/stdlib.h:786: error: storage class specified for parameter ‘wctomb’ /usr/include/stdlib.h:790: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘mbstowcs’ /usr/include/stdlib.h:793: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘wcstombs’ In file included from /usr/include/asterisk/compat.h:59, from /usr/include/asterisk.h:27, from app_conference.c:28: /usr/include/alloca.h:33: error: expected ‘)’ before ‘__size’ In file included from /usr/include/asterisk/compat.h:64, from /usr/include/asterisk.h:27, from app_conference.c:28: /usr/include/stdio.h:49: error: storage class specified for parameter ‘FILE’ /usr/include/stdio.h:65: error: storage class specified for parameter ‘__FILE’ In file included from /usr/include/_G_config.h:20, from /usr/include/libio.h:32, from /usr/include/stdio.h:75, from /usr/include/asterisk/compat.h:64, from /usr/include/asterisk.h:27, from app_conference.c:28: /usr/include/wchar.h:90: error: storage class specified for parameter ‘__mbstate_t’ In file included from /usr/include/libio.h:32, from /usr/include/stdio.h:75, from /usr/include/asterisk/compat.h:64, from /usr/include/asterisk.h:27, from app_conference.c:28: /usr/include/_G_config.h:25: error: expected specifier-qualifier-list before ‘__mbstate_t’ /usr/include/_G_config.h:26: error: storage class specified for parameter ‘_G_fpos_t’ /usr/include/_G_config.h:30: error: expected specifier-qualifier-list before ‘__mbstate_t’ /usr/include/_G_config.h:31: error: storage class specified for parameter ‘_G_fpos64_t’ /usr/include/_G_config.h:53: error: storage class specified for parameter ‘_G_int16_t’ /usr/include/_G_config.h:54: error: storage class specified for parameter ‘_G_int32_t’ /usr/include/_G_config.h:55: error: storage class specified for parameter ‘_G_uint16_t’ /usr/include/_G_config.h:56: error: storage class specified for parameter ‘_G_uint32_t’ In file included from /usr/include/stdio.h:75, from /usr/include/asterisk/compat.h:64, from /usr/include/asterisk.h:27, from app_conference.c:28: /usr/include/libio.h:180: error: storage class specified for parameter ‘_IO_lock_t’ /usr/include/libio.h:310: error: expected specifier-qualifier-list before ‘_IO_lock_t’ /usr/include/libio.h:341: error: storage class specified for parameter ‘_IO_FILE’ /usr/include/libio.h:346: error: storage class specified for parameter ‘_IO_2_1_stdin_’ /usr/include/libio.h:347: error: storage class specified for parameter ‘_IO_2_1_stdout_’ /usr/include/libio.h:348: error: storage class specified for parameter ‘_IO_2_1_stderr_’ /usr/include/libio.h:364: error: expected declaration specifiers or ‘...’ before ‘size_t’ /usr/include/libio.h:364: error: storage class specified for parameter ‘__io_read_fn’ /usr/include/libio.h:373: error: expected declaration specifiers or ‘...’ before ‘size_t’ /usr/include/libio.h:373: error: storage class specified for parameter ‘__io_write_fn’ /usr/include/libio.h:381: error: storage class specified for parameter ‘__io_seek_fn’ /usr/include/libio.h:384: error: storage class specified for parameter ‘__io_close_fn’ /usr/include/libio.h:389: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘cookie_read_function_t’ /usr/include/libio.h:390: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘cookie_write_function_t’ /usr/include/libio.h:391: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘cookie_seek_function_t’ /usr/include/libio.h:392: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘cookie_close_function_t’ /usr/include/libio.h:397: error: expected specifier-qualifier-list before ‘__io_read_fn’ /usr/include/libio.h:401: error: storage class specified for parameter ‘_IO_cookie_io_functions_t’ /usr/include/libio.h:402: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘cookie_io_functions_t’ /usr/include/libio.h:408: error: expected declaration specifiers or ‘...’ before ‘_IO_cookie_io_functions_t’ /usr/include/libio.h:408: error: storage class specified for parameter ‘_IO_cookie_init’ /usr/include/libio.h:416: error: expected ‘)’ before ‘*’ token /usr/include/libio.h:417: error: expected ‘)’ before ‘*’ token /usr/include/libio.h:418: error: expected ‘)’ before ‘*’ token /usr/include/libio.h:458: error: expected ‘)’ before ‘*’ token /usr/include/libio.h:459: error: expected declaration specifiers or ‘...’ before ‘_IO_FILE’ /usr/include/libio.h:459: error: storage class specified for parameter ‘_IO_putc’ /usr/include/libio.h:460: error: expected ‘)’ before ‘*’ token /usr/include/libio.h:461: error: expected ‘)’ before ‘*’ token /usr/include/libio.h:463: error: expected ‘)’ before ‘*’ token /usr/include/libio.h:469: error: expected ‘)’ before ‘*’ token /usr/include/libio.h:470: error: expected ‘)’ before ‘*’ token /usr/include/libio.h:471: error: expected ‘)’ before ‘*’ token /usr/include/libio.h:488: error: expected ‘)’ before ‘*’ token /usr/include/libio.h:490: error: expected ‘)’ before ‘*’ token /usr/include/libio.h:492: error: expected ‘)’ before ‘*’ token /usr/include/libio.h:493: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘_IO_sgetn’ /usr/include/libio.h:495: error: expected ‘)’ before ‘*’ token /usr/include/libio.h:496: error: expected ‘)’ before ‘*’ token /usr/include/libio.h:498: error: expected ‘)’ before ‘*’ token In file included from /usr/include/asterisk/compat.h:64, from /usr/include/asterisk.h:27, from app_conference.c:28: /usr/include/stdio.h:91: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘fpos_t’ In file included from /usr/include/asterisk/compat.h:64, from /usr/include/asterisk.h:27, from app_conference.c:28: /usr/include/stdio.h:145: error: storage class specified for parameter ‘stdin’ /usr/include/stdio.h:146: error: storage class specified for parameter ‘stdout’ /usr/include/stdio.h:147: error: storage class specified for parameter ‘stderr’ /usr/include/stdio.h:155: error: storage class specified for parameter ‘remove’ /usr/include/stdio.h:157: error: storage class specified for parameter ‘rename’ /usr/include/stdio.h:172: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token /usr/include/stdio.h:186: error: storage class specified for parameter ‘tmpnam’ /usr/include/stdio.h:214: error: expected ‘)’ before ‘*’ token /usr/include/stdio.h:219: error: expected ‘)’ before ‘*’ token /usr/include/stdio.h:249: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token /usr/include/stdio.h:255: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token /usr/include/stdio.h:307: error: expected ‘)’ before ‘*’ token /usr/include/stdio.h:311: error: expected ‘)’ before ‘*’ token /usr/include/stdio.h:331: error: expected ‘)’ before ‘*’ token /usr/include/stdio.h:337: error: storage class specified for parameter ‘printf’ /usr/include/stdio.h:340: error: storage class specified for parameter ‘sprintf’ /usr/include/stdio.h:346: error: expected ‘)’ before ‘*’ token /usr/include/stdio.h:352: error: expected declaration specifiers or ‘...’ before ‘__gnuc_va_list’ /usr/include/stdio.h:352: error: storage class specified for parameter ‘vprintf’ /usr/include/stdio.h:355: error: expected declaration specifiers or ‘...’ before ‘__gnuc_va_list’ /usr/include/stdio.h:355: error: storage class specified for parameter ‘vsprintf’ /usr/include/stdio.h:361: error: expected declaration specifiers or ‘...’ before ‘size_t’ /usr/include/stdio.h:363: error: storage class specified for parameter ‘snprintf’ /usr/include/stdio.h:363: error: format string argument not a string type /usr/include/stdio.h:365: error: expected declaration specifiers or ‘...’ before ‘size_t’ /usr/include/stdio.h:366: error: expected declaration specifiers or ‘...’ before ‘__gnuc_va_list’ /usr/include/stdio.h:367: error: storage class specified for parameter ‘vsnprintf’ /usr/include/stdio.h:367: error: format string argument not a string type /usr/include/stdio.h:403: error: expected ‘)’ before ‘*’ token /usr/include/stdio.h:409: error: storage class specified for parameter ‘scanf’ /usr/include/stdio.h:412: error: storage class specified for parameter ‘sscanf’ /usr/include/stdio.h:509: error: expected ‘)’ before ‘*’ token /usr/include/stdio.h:510: error: expected ‘)’ before ‘*’ token /usr/include/stdio.h:516: error: storage class specified for parameter ‘getchar’ /usr/include/stdio.h:551: error: expected declaration specifiers or ‘...’ before ‘FILE’ /usr/include/stdio.h:551: error: storage class specified for parameter ‘fputc’ /usr/include/stdio.h:552: error: expected declaration specifiers or ‘...’ before ‘FILE’ /usr/include/stdio.h:552: error: storage class specified for parameter ‘putc’ /usr/include/stdio.h:558: error: storage class specified for parameter ‘putchar’ /usr/include/stdio.h:600: error: expected declaration specifiers or ‘...’ before ‘FILE’ /usr/include/stdio.h:601: error: storage class specified for parameter ‘fgets’ /usr/include/stdio.h:608: error: storage class specified for parameter ‘gets’ /usr/include/stdio.h:658: error: expected declaration specifiers or ‘...’ before ‘FILE’ /usr/include/stdio.h:658: error: storage class specified for parameter ‘fputs’ /usr/include/stdio.h:664: error: storage class specified for parameter ‘puts’ /usr/include/stdio.h:671: error: expected declaration specifiers or ‘...’ before ‘FILE’ /usr/include/stdio.h:671: error: storage class specified for parameter ‘ungetc’ /usr/include/stdio.h:678: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘fread’ /usr/include/stdio.h:684: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘fwrite’ /usr/include/stdio.h:718: error: expected ‘)’ before ‘*’ token /usr/include/stdio.h:723: error: expected ‘)’ before ‘*’ token /usr/include/stdio.h:728: error: expected ‘)’ before ‘*’ token /usr/include/stdio.h:767: error: expected ‘)’ before ‘*’ token /usr/include/stdio.h:772: error: expected ‘)’ before ‘*’ token /usr/include/stdio.h:795: error: expected ‘)’ before ‘*’ token /usr/include/stdio.h:797: error: expected ‘)’ before ‘*’ token /usr/include/stdio.h:799: error: expected ‘)’ before ‘*’ token /usr/include/stdio.h:815: error: storage class specified for parameter ‘perror’ In file included from /usr/include/asterisk/compat.h:67, from /usr/include/asterisk.h:27, from app_conference.c:28: /usr/include/string.h:39: error: expected declaration specifiers or ‘...’ before ‘size_t’ /usr/include/string.h:40: error: storage class specified for parameter ‘memcpy’ /usr/include/string.h:43: error: expected declaration specifiers or ‘...’ before ‘size_t’ /usr/include/string.h:44: error: storage class specified for parameter ‘memmove’ /usr/include/string.h:59: error: expected declaration specifiers or ‘...’ before ‘size_t’ /usr/include/string.h:59: error: storage class specified for parameter ‘memset’ /usr/include/string.h:62: error: expected declaration specifiers or ‘...’ before ‘size_t’ /usr/include/string.h:63: error: storage class specified for parameter ‘memcmp’ /usr/include/string.h:66: error: expected declaration specifiers or ‘...’ before ‘size_t’ /usr/include/string.h:67: error: storage class specified for parameter ‘memchr’ /usr/include/string.h:85: error: storage class specified for parameter ‘strcpy’ /usr/include/string.h:88: error: expected declaration specifiers or ‘...’ before ‘size_t’ /usr/include/string.h:89: error: storage class specified for parameter ‘strncpy’ /usr/include/string.h:93: error: storage class specified for parameter ‘strcat’ /usr/include/string.h:96: error: expected declaration specifiers or ‘...’ before ‘size_t’ /usr/include/string.h:96: error: storage class specified for parameter ‘strncat’ /usr/include/string.h:100: error: storage class specified for parameter ‘strcmp’ /usr/include/string.h:102: error: expected declaration specifiers or ‘...’ before ‘size_t’ /usr/include/string.h:103: error: storage class specified for parameter ‘strncmp’ /usr/include/string.h:107: error: storage class specified for parameter ‘strcoll’ /usr/include/string.h:109: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘strxfrm’ /usr/include/string.h:168: error: storage class specified for parameter ‘strchr’ /usr/include/string.h:171: error: storage class specified for parameter ‘strrchr’ /usr/include/string.h:184: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘strcspn’ /usr/include/string.h:188: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘strspn’ /usr/include/string.h:192: error: storage class specified for parameter ‘strpbrk’ /usr/include/string.h:195: error: storage class specified for parameter ‘strstr’ /usr/include/string.h:200: error: storage class specified for parameter ‘strtok’ /usr/include/string.h:208: error: storage class specified for parameter ‘__strtok_r’ /usr/include/string.h:242: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘strlen’ /usr/include/string.h:256: error: storage class specified for parameter ‘strerror’ /usr/include/string.h:294: error: expected declaration specifiers or ‘...’ before ‘size_t’ /usr/include/string.h:294: error: storage class specified for parameter ‘__bzero’ In file included from /usr/include/asterisk.h:27, from app_conference.c:28: /usr/include/asterisk/compat.h:117: error: expected declaration specifiers before ‘size_t’ /usr/include/asterisk/compat.h:121: error: expected declaration specifiers before ‘size_t’ In file included from /usr/include/errno.h:36, from /usr/include/asterisk/compat.h:124, from /usr/include/asterisk.h:27, from app_conference.c:28: /usr/include/bits/errno.h:43: error: storage class specified for parameter ‘__errno_location’ In file included from /usr/include/asterisk/compat.h:189, from /usr/include/asterisk.h:27, from app_conference.c:28: /usr/include/glob.h:92: error: expected specifier-qualifier-list before ‘size_t’ /usr/include/glob.h:113: error: storage class specified for parameter ‘glob_t’ /usr/include/glob.h:161: error: expected declaration specifiers or ‘...’ before ‘glob_t’ /usr/include/glob.h:161: error: storage class specified for parameter ‘glob’ /usr/include/glob.h:164: error: expected ‘)’ before ‘*’ token In file included from app_conference.c:28: /usr/include/asterisk.h:194: error: expected declaration specifiers or ‘...’ before ‘uint64_t’ /usr/include/asterisk.h:195: error: expected declaration specifiers before ‘int64_t’ /usr/include/asterisk.h:196: error: expected declaration specifiers before ‘int64_t’ app_conference.c:35: error: storage class specified for parameter ‘revision’ app_conference.c:35: error: parameter ‘revision’ is initialised app_conference.c:37: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token app_conference.c:37: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token In file included from /usr/include/math.h:34, from app_conference.h:40, from app_conference.c:39: /usr/include/bits/huge_val.h:28:18: error: missing binary operator before token "(" /usr/include/bits/huge_val.h:30:20: error: missing binary operator before token "(" In file included from /usr/include/math.h:71, from app_conference.h:40, from app_conference.c:39: /usr/include/bits/mathcalls.h:55: error: storage class specified for parameter ‘acos’ /usr/include/bits/mathcalls.h:55: error: storage class specified for parameter ‘__acos’ /usr/include/bits/mathcalls.h:57: error: storage class specified for parameter ‘asin’ /usr/include/bits/mathcalls.h:57: error: storage class specified for parameter ‘__asin’ /usr/include/bits/mathcalls.h:59: error: storage class specified for parameter ‘atan’ /usr/include/bits/mathcalls.h:59: error: storage class specified for parameter ‘__atan’ /usr/include/bits/mathcalls.h:61: error: storage class specified for parameter ‘atan2’ /usr/include/bits/mathcalls.h:61: error: storage class specified for parameter ‘__atan2’ /usr/include/bits/mathcalls.h:64: error: storage class specified for parameter ‘cos’ /usr/include/bits/mathcalls.h:64: error: storage class specified for parameter ‘__cos’ /usr/include/bits/mathcalls.h:66: error: storage class specified for parameter ‘sin’ /usr/include/bits/mathcalls.h:66: error: storage class specified for parameter ‘__sin’ /usr/include/bits/mathcalls.h:68: error: storage class specified for parameter ‘tan’ /usr/include/bits/mathcalls.h:68: error: storage class specified for parameter ‘__tan’ /usr/include/bits/mathcalls.h:73: error: storage class specified for parameter ‘cosh’ /usr/include/bits/mathcalls.h:73: error: storage class specified for parameter ‘__cosh’ /usr/include/bits/mathcalls.h:75: error: storage class specified for parameter ‘sinh’ /usr/include/bits/mathcalls.h:75: error: storage class specified for parameter ‘__sinh’ /usr/include/bits/mathcalls.h:77: error: storage class specified for parameter ‘tanh’ /usr/include/bits/mathcalls.h:77: error: storage class specified for parameter ‘__tanh’ /usr/include/bits/mathcalls.h:101: error: storage class specified for parameter ‘exp’ /usr/include/bits/mathcalls.h:101: error: storage class specified for parameter ‘__exp’ /usr/include/bits/mathcalls.h:104: error: storage class specified for parameter ‘frexp’ /usr/include/bits/mathcalls.h:104: error: storage class specified for parameter ‘__frexp’ /usr/include/bits/mathcalls.h:107: error: storage class specified for parameter ‘ldexp’ /usr/include/bits/mathcalls.h:107: error: storage class specified for parameter ‘__ldexp’ /usr/include/bits/mathcalls.h:110: error: storage class specified for parameter ‘log’ /usr/include/bits/mathcalls.h:110: error: storage class specified for parameter ‘__log’ /usr/include/bits/mathcalls.h:113: error: storage class specified for parameter ‘log10’ /usr/include/bits/mathcalls.h:113: error: storage class specified for parameter ‘__log10’ /usr/include/bits/mathcalls.h:116: error: storage class specified for parameter ‘modf’ /usr/include/bits/mathcalls.h:116: error: storage class specified for parameter ‘__modf’ /usr/include/bits/mathcalls.h:154: error: storage class specified for parameter ‘pow’ /usr/include/bits/mathcalls.h:154: error: storage class specified for parameter ‘__pow’ /usr/include/bits/mathcalls.h:157: error: storage class specified for parameter ‘sqrt’ /usr/include/bits/mathcalls.h:157: error: storage class specified for parameter ‘__sqrt’ /usr/include/bits/mathcalls.h:179: error: storage class specified for parameter ‘ceil’ /usr/include/bits/mathcalls.h:179: error: storage class specified for parameter ‘__ceil’ /usr/include/bits/mathcalls.h:182: error: storage class specified for parameter ‘fabs’ /usr/include/bits/mathcalls.h:182: error: storage class specified for parameter ‘__fabs’ /usr/include/bits/mathcalls.h:185: error: storage class specified for parameter ‘floor’ /usr/include/bits/mathcalls.h:185: error: storage class specified for parameter ‘__floor’ /usr/include/bits/mathcalls.h:188: error: storage class specified for parameter ‘fmod’ /usr/include/bits/mathcalls.h:188: error: storage class specified for parameter ‘__fmod’ /usr/include/bits/mathcalls.h:193: error: storage class specified for parameter ‘__isinf’ /usr/include/bits/mathcalls.h:196: error: storage class specified for parameter ‘__finite’ /usr/include/bits/mathcalls.h:231: error: storage class specified for parameter ‘__isnan’ In file included from app_conference.h:40, from app_conference.c:39: /usr/include/math.h:392:42: error: missing binary operator before token "(" In file included from app_conference.h:49, from app_conference.c:39: /usr/include/asterisk/module.h:283: error: storage class specified for parameter ‘ast_module_info’ In file included from app_conference.h:53, from app_conference.c:39: /usr/include/asterisk/manager.h:81: error: storage class specified for parameter ‘manager_hook_t’ /usr/include/asterisk/manager.h:88: error: expected specifier-qualifier-list before ‘manager_hook_t’ /usr/include/asterisk/manager.h:162: error: expected ‘)’ before ‘ident’ /usr/include/asterisk/manager.h:171: error: expected ‘)’ before ‘ident’ /usr/include/asterisk/manager.h:209: error: expected ‘)’ before ‘ident’ In file included from /usr/include/asterisk/translate.h:36, from app_conference.h:55, from app_conference.c:39: /usr/include/asterisk/plc.h:116: error: expected specifier-qualifier-list before ‘int16_t’ /usr/include/asterisk/plc.h:119: error: storage class specified for parameter ‘plc_state_t’ /usr/include/asterisk/plc.h:132: error: expected ‘)’ before ‘*’ token /usr/include/asterisk/plc.h:140: error: expected ‘)’ before ‘*’ token /usr/include/asterisk/plc.h:146: error: expected declaration specifiers before ‘plc_state_t’ In file included from app_conference.h:55, from app_conference.c:39: /usr/include/asterisk/translate.h:147: error: expected specifier-qualifier-list before ‘int16_t’ /usr/include/asterisk/translate.h:150: error: expected specifier-qualifier-list before ‘plc_state_t’ In file included from /usr/include/asterisk/file.h:29, from app_conference.h:57, from app_conference.c:39: /usr/include/fcntl.h:76: error: storage class specified for parameter ‘fcntl’ /usr/include/fcntl.h:85: error: storage class specified for parameter ‘open’ /usr/include/fcntl.h:130: error: storage class specified for parameter ‘creat’ In file included from /usr/include/asterisk/file.h:33, from app_conference.h:57, from app_conference.c:39: /usr/include/sys/mman.h:58: error: expected declaration specifiers or ‘...’ before ‘size_t’ /usr/include/sys/mman.h:59: error: storage class specified for parameter ‘mmap’ /usr/include/sys/mman.h:77: error: expected declaration specifiers or ‘...’ before ‘size_t’ /usr/include/sys/mman.h:77: error: storage class specified for parameter ‘munmap’ /usr/include/sys/mman.h:82: error: expected declaration specifiers or ‘...’ before ‘size_t’ /usr/include/sys/mman.h:82: error: storage class specified for parameter ‘mprotect’ /usr/include/sys/mman.h:90: error: expected declaration specifiers or ‘...’ before ‘size_t’ /usr/include/sys/mman.h:90: error: storage class specified for parameter ‘msync’ /usr/include/sys/mman.h:104: error: expected declaration specifiers or ‘...’ before ‘size_t’ /usr/include/sys/mman.h:104: error: storage class specified for parameter ‘mlock’ /usr/include/sys/mman.h:107: error: expected declaration specifiers or ‘...’ before ‘size_t’ /usr/include/sys/mman.h:107: error: storage class specified for parameter ‘munlock’ /usr/include/sys/mman.h:112: error: storage class specified for parameter ‘mlockall’ /usr/include/sys/mman.h:116: error: storage class specified for parameter ‘munlockall’ /usr/include/sys/mman.h:145: error: expected declaration specifiers or ‘...’ before ‘mode_t’ /usr/include/sys/mman.h:145: error: storage class specified for parameter ‘shm_open’ /usr/include/sys/mman.h:148: error: storage class specified for parameter ‘shm_unlink’ In file included from app_conference.h:57, from app_conference.c:39: /usr/include/asterisk/file.h:185: error: expected declaration specifiers or ‘...’ before ‘mode_t’ /usr/include/asterisk/file.h:202: error: expected declaration specifiers or ‘...’ before ‘mode_t’ /usr/include/asterisk/file.h:278: error: expected declaration specifiers or ‘...’ before ‘off_t’ /usr/include/asterisk/file.h:295: error: expected declaration specifiers or ‘...’ before ‘off_t’ /usr/include/asterisk/file.h:304: error: expected declaration specifiers or ‘...’ before ‘off_t’ /usr/include/asterisk/file.h:311: error: expected declaration specifiers before ‘off_t’ In file included from app_conference.h:59, from app_conference.c:39: /usr/include/asterisk/cli.h:149: error: storage class specified for parameter ‘cli_fn’ /usr/include/asterisk/cli.h:169: error: expected specifier-qualifier-list before ‘cli_fn’ /usr/include/asterisk/cli.h:224: error: expected declaration specifiers or ‘...’ before ‘size_t’ In file included from app_conference.h:63, from app_conference.c:39: libspeex/speex_preprocess.h:39: warning: empty declaration libspeex/speex_preprocess.h:99: error: storage class specified for parameter ‘SpeexPreprocessState’ libspeex/speex_preprocess.h:102: error: expected declaration specifiers before ‘SpeexPreprocessState’ libspeex/speex_preprocess.h:105: error: expected ‘)’ before ‘*’ token libspeex/speex_preprocess.h:108: error: expected ‘)’ before ‘*’ token libspeex/speex_preprocess.h:111: error: expected ‘)’ before ‘*’ token libspeex/speex_preprocess.h:114: error: expected ‘)’ before ‘*’ token In file included from app_conference.c:39: app_conference.h:215: warning: empty declaration In file included from common.h:37, from app_conference.c:40: conf_frame.h:70: error: storage class specified for parameter ‘conf_frame’ In file included from common.h:41, from app_conference.c:40: conference.h:66: error: storage class specified for parameter ‘ast_conference_stats’ conference.h:95: error: expected specifier-qualifier-list before ‘pthread_t’ conference.h:114: warning: empty declaration In file included from conference.h:117, from common.h:41, from app_conference.c:40: member.h:51: warning: empty declaration member.h:55: error: expected specifier-qualifier-list before ‘ast_mutex_t’ member.h:243: warning: empty declaration member.h:249: warning: empty declaration member.h:266: error: expected declaration specifiers before ‘conf_frame’ member.h:267: error: expected declaration specifiers before ‘conf_frame’ member.h:268: error: expected declaration specifiers before ‘conf_frame’ member.h:273: error: expected declaration specifiers before ‘conf_frame’ member.h:276: error: expected declaration specifiers before ‘conf_frame’ member.h:279: error: expected declaration specifiers before ‘conf_frame’ member.h:280: error: expected declaration specifiers before ‘conf_frame’ member.h:302: warning: empty declaration member.h:304: error: storage class specified for parameter ‘ast_packer_new’ member.h:305: error: storage class specified for parameter ‘ast_packer_set_flags’ member.h:306: error: storage class specified for parameter ‘ast_packer_get_flags’ member.h:307: error: storage class specified for parameter ‘ast_packer_free’ member.h:308: error: storage class specified for parameter ‘ast_packer_reset’ member.h:309: error: storage class specified for parameter ‘ast_packer_feed’ member.h:310: error: storage class specified for parameter ‘ast_packer_read’ In file included from common.h:41, from app_conference.c:40: conference.h:135: error: expected declaration specifiers or ‘...’ before ‘conf_frame’ conference.h:136: error: expected declaration specifiers or ‘...’ before ‘conf_frame’ conference.h:166: error: expected ‘)’ before ‘*’ token conference.h:167: error: expected ‘)’ before ‘*’ token In file included from common.h:42, from app_conference.c:40: frame.h:46: error: expected declaration specifiers before ‘conf_frame’ frame.h:48: error: expected declaration specifiers before ‘conf_frame’ frame.h:49: error: expected declaration specifiers before ‘conf_frame’ frame.h:52: error: expected declaration specifiers before ‘conf_frame’ frame.h:53: error: expected declaration specifiers before ‘conf_frame’ frame.h:54: error: expected declaration specifiers before ‘conf_frame’ frame.h:69: error: expected declaration specifiers before ‘conf_frame’ frame.h:73: error: expected ‘)’ before ‘*’ token app_conference.c:55: error: storage class specified for parameter ‘app’ app_conference.c:55: error: parameter ‘app’ is initialised app_conference.c:56: error: storage class specified for parameter ‘synopsis’ app_conference.c:56: error: parameter ‘synopsis’ is initialised app_conference.c:57: error: storage class specified for parameter ‘descrip’ app_conference.c:57: error: parameter ‘descrip’ is initialised app_conference.c:60: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token app_conference.c:75: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token app_conference.c:86: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token app_conference.c:98: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token app_conference.c:113: error: storage class specified for parameter ‘__mod_info’ app_conference.c:113: error: parameter ‘__mod_info’ is initialised app_conference.c:113: error: ‘load_module’ undeclared (first use in this function) app_conference.c:113: error: ‘unload_module’ undeclared (first use in this function) app_conference.c:113: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token app_conference.c:113: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token app_conference.c:113: error: storage class specified for parameter ‘ast_module_info’ app_conference.c:113: error: parameter ‘ast_module_info’ is initialised app_conference.c:113: error: redefinition of parameter ‘ast_module_info’ /usr/include/asterisk/module.h:283: error: previous definition of ‘ast_module_info’ was here app_conference.c:113: error: old-style parameter declarations in prototyped function definition app_conference.c:113: error: expected ‘{’ at end of input make: *** [app_conference.o] Errore 1 root@guido-laptop:/home/guido/Scrivania/appconference-2.0.1#

What I’m doing wrong? Thank you very much for your help!

Hi Check out

sourceforge.net/projects/appconference/

the instructio on the wiki will be teribly out of date.

also check out the patches for 1.6 asterisk

Ian

Ok thank you very much by now!

Hi nobrand,
Please did you find a solution for you problem, I got the same errors and it’s quite urgent, thanks for help
:smile: