Is this a bug or what? please someone with skills reply thnx in advance for atleast the try.
gcc -g -c -fPIC -fPIC -o app_addon_sql_mysql.o app_addon_sql_mysql.c
app_addon_sql_mysql.c:15:22: asterisk.h: No such file or directory
In file included from /usr/include/asterisk/linkedlists.h:23,
from /usr/include/asterisk/chanvars.h:26,
from /usr/include/asterisk/channel.h:111,
from /usr/include/asterisk/file.h:30,
from app_addon_sql_mysql.c:27:
/usr/include/asterisk/lock.h: In function ast_mutex_init': /usr/include/asterisk/lock.h:534: error:
PTHREAD_MUTEX_RECURSIVE’ undeclared (first use in this function)
/usr/include/asterisk/lock.h:534: error: (Each undeclared identifier is reported only once
/usr/include/asterisk/lock.h:534: error: for each function it appears in.)
app_addon_sql_mysql.c: In function MYSQL_exec': app_addon_sql_mysql.c:394: warning: assignment makes pointer from integer without a cast app_addon_sql_mysql.c: At top level: app_addon_sql_mysql.c:423: warning: static declaration of 'unload_module' follows non-static declaration /usr/include/asterisk/module.h:57: warning: previous declaration of 'unload_module' was here app_addon_sql_mysql.c:429: warning: static declaration of 'load_module' follows non-static declaration /usr/include/asterisk/module.h:46: warning: previous declaration of 'load_module' was here app_addon_sql_mysql.c:435: error: syntax error before string constant app_addon_sql_mysql.c:435: warning: data definition has no type or storage class make[1]: *** [app_addon_sql_mysql.o] Error 1 make[1]: Leaving directory
/usr/src/asterisk-addons’
make: *** [all] Error 2