Problem compiling addons, mysql components

im doing
make clean
./configure
make install

this system has a 1.2.14 working install with 1.25 addons. here my output, im at a loss, please lend a hand

make[1]: Entering directory /usr/src/asterisk-addons/menuselect' make[2]: Entering directory/usr/src/asterisk-addons/menuselect’
make[2]: menuselect' is up to date. make[2]: Leaving directory/usr/src/asterisk-addons/menuselect’
make[1]: Leaving directory /usr/src/asterisk-addons/menuselect' make[1]: Entering directory/usr/src/asterisk-addons’
make[2]: Entering directory /usr/src/asterisk-addons/menuselect' make[3]: Entering directory/usr/src/asterisk-addons/menuselect’
make[3]: menuselect' is up to date. make[3]: Leaving directory/usr/src/asterisk-addons/menuselect’
make[2]: Leaving directory /usr/src/asterisk-addons/menuselect' 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 functionast_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 functionMYSQL_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