Asterisk-addons 1.4 unable to make

Is this a bug or what? please someone with skills reply :smile: 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

did you install Asterisk 1.4 before attempting to make Addons ? i remember having a similar issue when installing 1.4beta? on an existing 1.2 box.

hey bacon, again :smile: yes after further investigation, come to find out asterisk is dieing on its make process. you replied to my other post regarding that issue so im concentrating on that as it will resolve this problem also. thx for taking notice, i know you know what your doing!

so to be clear for other people who ran into this, my issue is that asterisk hasnt been compiled and installed yet.