|
From: Michael R. <mi...@mh...> - 2007-12-03 15:24:16
|
Trying to build 2.2.2 with asterisk 1.2.24 => make cc -pipe -I/usr/include/mysql -L/usr/lib/mysql -fPIC -I/usr/src/asterisk -D_GNU_SOURCE -I/usr/include/mysql -c -o app_cbmysql.o app_cbmysql.c app_cbmysql.c:14:22: error: asterisk.h: No such file or directory app_cbmysql.c:25:33: error: asterisk/autoconfig.h: No such file or directory app_cbmysql.c: In function ‘checkMax’: app_cbmysql.c:106: error: too few arguments to function ‘pbx_exec’ app_cbmysql.c: In function ‘enterConf’: app_cbmysql.c:374: error: too few arguments to function ‘pbx_exec’ app_cbmysql.c: At top level: app_cbmysql.c:843: error: static declaration of ‘unload_module’ follows non-static declaration /usr/include/asterisk/module.h:57: error: previous declaration of ‘unload_module’ was here app_cbmysql.c:855: error: static declaration of ‘load_module’ follows non-static declaration /usr/include/asterisk/module.h:46: error: previous declaration of ‘load_module’ was here app_cbmysql.c: In function ‘load_module’: app_cbmysql.c:859: error: ‘AST_MODULE_LOAD_DECLINE’ undeclared (first use in this function) app_cbmysql.c:859: error: (Each undeclared identifier is reported only once app_cbmysql.c:859: error: for each function it appears in.) app_cbmysql.c: At top level: app_cbmysql.c:868: error: static declaration of ‘reload’ follows non-static declaration /usr/include/asterisk/module.h:102: error: previous declaration of ‘reload’ was here app_cbmysql.c:874: error: expected declaration specifiers or ‘...’ before string constant app_cbmysql.c:874: error: expected declaration specifiers or ‘...’ before ‘AST_MODFLAG_DEFAULT’ app_cbmysql.c:874: error: expected declaration specifiers or ‘...’ before string constant app_cbmysql.c:875: error: expected declaration specifiers or ‘...’ before ‘.’ token app_cbmysql.c:876: error: expected declaration specifiers or ‘...’ before ‘.’ token app_cbmysql.c:877: error: expected declaration specifiers or ‘...’ before ‘.’ token app_cbmysql.c:878: error: expected declaration specifiers or ‘...’ before ‘)’ token app_cbmysql.c:878: warning: data definition has no type or storage class make: *** [app_cbmysql.o] Error 1 I tried adding asterisk.h into the dir but the asterisk source doesnt even contain asterisk/autoconfig.h so I have no idea where to obtain it.. Any tips on how to get this built? -- Michael Rice Systems Administrator Office: 210-366-2500 Ext. : 231 Direct: 210-293-6231 McClelland and Hine, Inc. |