Any help with this will be greatly appreciated. When re-compiling * to include voicemail access from a MySQL database, I recieve the follwing error. Anybody know how I can fix this? Am I missing packages somewhere? app_voicemail.c:44:25: mysql/mysql.h: No such file or directory In file included from app_voicemail.c:247: mysql-vm-routines.h:7: parse error before '*' token mysql-vm-routines.h:7: warning: type defaults to `int' in declaration of `dbhandler' mysql-vm-routines.h:7: warning: data definition has no type or storage class mysql-vm-routines.h: In function `mysql_login': mysql-vm-routines.h:18: warning: implicit declaration of function `mysql_init' mysql-vm-routines.h:18: warning: assignment makes pointer from integer without a cast mysql-vm-routines.h:19: warning: implicit declaration of function `mysql_real_connect' mysql-vm-routines.h: In function `mysql_logout': mysql-vm-routines.h:29: warning: implicit declaration of function `mysql_close' mysql-vm-routines.h: In function `find_user': mysql-vm-routines.h:35: `MYSQL_RES' undeclared (first use in this function) mysql-vm-routines.h:35: (Each undeclared identifier is reported only once mysql-vm-routines.h:35: for each function it appears in.) mysql-vm-routines.h:35: `result' undeclared (first use in this function) mysql-vm-routines.h:36: `MYSQL_ROW' undeclared (first use in this function) mysql-vm-routines.h:36: parse error before "rowval" mysql-vm-routines.h:37: `MYSQL_FIELD' undeclared (first use in this function) mysql-vm-routines.h:37: `fields' undeclared (first use in this function) mysql-vm-routines.h:69: warning: implicit declaration of function `mysql_query' mysql-vm-routines.h:70: warning: implicit declaration of function `mysql_store_result' mysql-vm-routines.h:71: `rowval' undeclared (first use in this function) mysql-vm-routines.h:71: warning: implicit declaration of function `mysql_fetch_row' mysql-vm-routines.h:72: warning: implicit declaration of function `mysql_num_fields' mysql-vm-routines.h:73: warning: implicit declaration of function `mysql_fetch_fields' mysql-vm-routines.h:90: warning: implicit declaration of function `mysql_free_result' make[1]: *** [app_voicemail.o] Error 1 make[1]: Leaving directory `/usr/src/asterisk/apps' make: *** [subdirs] Error 1 AJ Grinnell Network Operations Technician CRT/ Arialink Broadband 1223 Turner Street, Suite A Lansing, MI 48906 517.346.5041 517.492.1321 direct
On Monday 12 April 2004 13:29, AJ Grinnell wrote:> Any help with this will be greatly appreciated. When re-compiling * > to include voicemail access from a MySQL database, I recieve the > follwing error. Anybody know how I can fix this? Am I missing > packages somewhere? > > app_voicemail.c:44:25: mysql/mysql.h: No such file or directory > In file included from app_voicemail.c:247:Hmmm, it can't find a header file? Could it be that you've forgotten to install the headers? -Tilghman