Not Such file or directory, Installing asterisk-addons 1.2

Hi to all,
I need help on addons-1.2
I’ve been trying to install asterik-addons-1.2, to get cdr_mysql call record to mysql database.

[[email protected] src]# cd asterisk-addons-1.2
[[email protected] asterisk-addons-1.2]# make clean
rm -f *.so *.o .depend
make -C format_mp3 clean
make[1]: Entering directory /usr/src/asterisk-addons-1.2/format_mp3' rm -f *.o *.so *~ make[1]: Leaving directory/usr/src/asterisk-addons-1.2/format_mp3’
[[email protected] asterisk-addons-1.2]# make
./mkdep -fPIC -I…/asterisk -D_GNU_SOURCE -I/usr/include/mysql ls *.c
app_addon_sql_mysql.c:25:27: error: asterisk/file.h: No such file or directory
app_addon_sql_mysql.c:26:29: error: asterisk/logger.h: No such file or directory
app_addon_sql_mysql.c:27:30: error: asterisk/channel.h: No such file or director y
app_addon_sql_mysql.c:28:26: error: asterisk/pbx.h: No such file or directory
app_addon_sql_mysql.c:29:29: error: asterisk/module.h: No such file or directory
app_addon_sql_mysql.c:30:34: error: asterisk/linkedlists.h: No such file or directory
app_addon_sql_mysql.c:31:31: error: asterisk/chanvars.h: No such file or directory
app_addon_sql_mysql.c:32:27: error: asterisk/lock.h: No such file or directory

It is a long list of: No such file or directory

I need some urgent help please!!