[Asterisk-Users] Re: problem in compiling asterisk-addons
Matthew Boehm
mboehm at cytelcom.com
Thu Feb 3 07:19:20 MST 2005
How come you didn't 'cvs update' your /usr/src/asterisk/ ?
What is the version of your asterisk source?
-Matthew
----- Original Message -----
From: "Kamran Ahmad" <p_kami at yahoo.com>
To: <asterisk-users at lists.digium.com>
Sent: Thursday, February 03, 2005 2:24 AM
Subject: [Asterisk-Users] Re: problem in compiling asterisk-addons
> prbolem still there
> first of all i have these two(asterisk,
> asterisk-addons) working on my system i got these
> packages from asterisk.org
>
> then i recompiled asterisk-addons because i want
> res_config_mysql.so module for real time database
> i got this addon by following command
> ----------------------------------------------------
> cvs -d :pserver:anoncvs at cvs.digium.com:/usr/cvsroot
> login (password is 'anoncvs')
> cvs -d :pserver:anoncvs at cvs.digium.com:/usr/cvsroot co
> asterisk-addons
> ------------------------------------------------------
>
> when i recompiled this code i got these following
> errors
> ------------------------------------------------------
> [root at localhost asterisk-addons]# make
> ./mkdep -fPIC -I../asterisk -D_GNU_SOURCE
> -I/usr/include/mysql `ls *.c`
> app_addon_sql_mysql.c:164:64: macro "AST_LIST_REMOVE"
> requires 4 arguments, but only 3 given
> make -C format_mp3 all
> make[1]: Entering directory
> `/asterisk-addons/format_mp3'
> gcc -pipe -fPIC -Wall -Wstrict-prototypes
> -Wmissing-prototypes -Wmissing-declarations
> -D_REENTRANT -D_GNU_SOURCE -O6 -c -o common.o
> common.c
> gcc -pipe -fPIC -Wall -Wstrict-prototypes
> -Wmissing-prototypes -Wmissing-declarations
> -D_REENTRANT -D_GNU_SOURCE -O6 -c -o dct64_i386.o
> dct64_i386.c
> gcc -pipe -fPIC -Wall -Wstrict-prototypes
> -Wmissing-prototypes -Wmissing-declarations
> -D_REENTRANT -D_GNU_SOURCE -O6 -c -o decode_ntom.o
> decode_ntom.c
> gcc -pipe -fPIC -Wall -Wstrict-prototypes
> -Wmissing-prototypes -Wmissing-declarations
> -D_REENTRANT -D_GNU_SOURCE -O6 -c -o layer3.o
> layer3.c
> gcc -pipe -fPIC -Wall -Wstrict-prototypes
> -Wmissing-prototypes -Wmissing-declarations
> -D_REENTRANT -D_GNU_SOURCE -O6 -c -o tabinit.o
> tabinit.c
> gcc -pipe -fPIC -Wall -Wstrict-prototypes
> -Wmissing-prototypes -Wmissing-declarations
> -D_REENTRANT -D_GNU_SOURCE -O6 -c -o interface.o
> interface.c
> gcc -pipe -fPIC -Wall -Wstrict-prototypes
> -Wmissing-prototypes -Wmissing-declarations
> -D_REENTRANT -D_GNU_SOURCE -O6 -c -o format_mp3.o
> format_mp3.c
> format_mp3.c: In function `load_module':
> format_mp3.c:335: warning: passing arg 5 of
> `ast_format_register' from incompatible pointer type
> gcc -pipe -fPIC -Wall -Wstrict-prototypes
> -Wmissing-prototypes -Wmissing-declarations
> -D_REENTRANT -D_GNU_SOURCE -O6 -shared -Xlinker -x
> -o format_mp3.so common.o dct64_i386.o decode_ntom.o
> layer3.o tabinit.o interface.o format_mp3.o
> make[1]: Leaving directory
> `/asterisk-addons/format_mp3'
> cc -fPIC -I../asterisk -D_GNU_SOURCE
> -I/usr/include/mysql -c -o app_saycountpl.o
> app_saycountpl.c
> cc -shared -Xlinker -x -o app_saycountpl.so
> app_saycountpl.o
> cc -fPIC -I../asterisk -D_GNU_SOURCE
> -I/usr/include/mysql -c -o cdr_addon_mysql.o
> cdr_addon_mysql.c
> cdr_addon_mysql.c: In function `my_load_module':
> cdr_addon_mysql.c:269: warning: assignment makes
> pointer from integer without a cast
> cc -shared -Xlinker -x -o cdr_addon_mysql.so
> cdr_addon_mysql.o -lmysqlclient -lz -L/usr/lib/mysql
> cc -fPIC -I../asterisk -D_GNU_SOURCE
> -I/usr/include/mysql -c -o app_addon_sql_mysql.o
> app_addon_sql_mysql.c
> app_addon_sql_mysql.c:164:64: macro "AST_LIST_REMOVE"
> requires 4 arguments, but only 3 given
> app_addon_sql_mysql.c: In function `del_identifier':
> app_addon_sql_mysql.c:164: error: `AST_LIST_REMOVE'
> undeclared (first use in this function)
> app_addon_sql_mysql.c:164: error: (Each undeclared
> identifier is reported only once
> app_addon_sql_mysql.c:164: error: for each function it
> appears in.)
> make: *** [app_addon_sql_mysql.o] Error 1
> rm app_saycountpl.o
> [root at localhost asterisk-addons]# ls
> -------------------------------------------------------
>
> i have recompiled these two packages but same result
> any on have fixed this problem kindly answer me i have
> checked the code of app_addon_sql_mysql.c and fixed
> the function 'AST_LIST_REMOVE' call then again
> execute make
>
> now this error
> -------------------------------------------------------
> [root at localhost asterisk-addons]# make
> cc -fPIC -I../asterisk -D_GNU_SOURCE
> -I/usr/include/mysql -c -o app_saycountpl.o
> app_saycountpl.c
> cc -shared -Xlinker -x -o app_saycountpl.so
> app_saycountpl.o
> cc -fPIC -I../asterisk -D_GNU_SOURCE
> -I/usr/include/mysql -c -o app_addon_sql_mysql.o
> app_addon_sql_mysql.c
> cc -shared -Xlinker -x -o app_addon_sql_mysql.so
> app_addon_sql_mysql.o -lmysqlclient -lz
> -L/usr/lib/mysql
> cc -fPIC -I../asterisk -D_GNU_SOURCE
> -I/usr/include/mysql -c -o res_config_mysql.o
> res_config_mysql.c
> res_config_mysql.c: In function `realtime_mysql':
> res_config_mysql.c:142: warning: passing arg 1 of
> `ast_strlen_zero' makes pointer from integer without a
> cast
> res_config_mysql.c:144: warning: assignment makes
> pointer from integer without a cast
> res_config_mysql.c:149: warning: assignment makes
> pointer from integer without a cast
> res_config_mysql.c: In function
> `realtime_multi_mysql':
> res_config_mysql.c:177: error: storage size of `ra'
> isn't known
> res_config_mysql.c:189: warning: assignment makes
> pointer from integer without a cast
> res_config_mysql.c:250: warning: assignment makes
> pointer from integer without a cast
> res_config_mysql.c:259: warning: passing arg 1 of
> `ast_strlen_zero' makes pointer from integer without a
> cast
> res_config_mysql.c:263: warning: assignment makes
> pointer from integer without a cast
> res_config_mysql.c: In function `config_mysql':
> res_config_mysql.c:396: warning: assignment makes
> pointer from integer without a cast
> res_config_mysql.c:405: warning: assignment makes
> pointer from integer without a cast
> res_config_mysql.c: At top level:
> res_config_mysql.c:418: error: variable `mysql_engine'
> has initializer but incomplete type
> res_config_mysql.c:419: error: unknown field `name'
> specified in initializer
> res_config_mysql.c:419: warning: excess elements in
> struct initializer
> res_config_mysql.c:419: warning: (near initialization
> for `mysql_engine')
> res_config_mysql.c:420: error: unknown field
> `load_func' specified in initializer
> res_config_mysql.c:420: warning: excess elements in
> struct initializer
> res_config_mysql.c:420: warning: (near initialization
> for `mysql_engine')
> res_config_mysql.c:421: error: unknown field
> `realtime_func' specified in initializer
> res_config_mysql.c:421: warning: excess elements in
> struct initializer
> res_config_mysql.c:421: warning: (near initialization
> for `mysql_engine')
> res_config_mysql.c:422: error: unknown field
> `realtime_multi_func' specified in initializer
> res_config_mysql.c:422: warning: excess elements in
> struct initializer
> res_config_mysql.c:422: warning: (near initialization
> for `mysql_engine')
> res_config_mysql.c:423: error: unknown field
> `update_func' specified in initializer
> res_config_mysql.c:424: warning: excess elements in
> struct initializer
> res_config_mysql.c:424: warning: (near initialization
> for `mysql_engine')
> res_config_mysql.c: In function `parse_config':
> res_config_mysql.c:491: warning: assignment makes
> pointer from integer without a cast
> /usr/include/asterisk/utils.h: At top level:
> res_config_mysql.c:418: error: storage size of
> `mysql_engine' isn't known
> make: *** [res_config_mysql.o] Error 1
> [root at localhost asterisk-addons]#
> -------------------------------------------------------
>
> i want to check this res_config_mysql.c
> for error in 'mysql_engine' but i am not able to find
> the actual struct for this 'static struct
> ast_config_engine mysql_engine' at line 418 in
> res_config_mysql.c
>
> any one fixed this kindly contact me
>
> thanks
>
>
>
> __________________________________
> Do you Yahoo!?
> Take Yahoo! Mail with you! Get it on your mobile phone.
> http://mobile.yahoo.com/maildemo
> _______________________________________________
> 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