Compiling ndoutils: error: expected specifier-qualifier-lis
Posted: Mon Jan 20, 2014 3:05 am
Hi all,
I experienced following error while compiling ndoutils 1.5.2
However, I can not find the definition of MYSQL in ndoutils source code.
Could any one give me a suggestion?
Many thanks,
Giang.
I experienced following error while compiling ndoutils 1.5.2
Here is the use of MYSQL in ndo2db.hgcc -g -O2 -I/usr/include/mysql -DHAVE_CONFIG_H -c -o db.o db.c
In file included from db.c:17:
../include/ndo2db.h:58: error: expected specifier-qualifier-list before ‘MYSQL’
db.c: In function ‘ndo2db_db_init’:
db.c:128: error: ‘ndo2db_dbconninfo’ has no member named ‘instance_id’
db.c:129: error: ‘ndo2db_dbconninfo’ has no member named ‘conninfo_id’
db.c:130: error: ‘ndo2db_dbconninfo’ has no member named ‘latest_program_status_time’
Code: Select all
typedef struct ndo2db_dbconninfo_struct{
int server_type;
int connected;
int error;
#ifdef USE_MYSQL
MYSQL mysql_conn;
MYSQL_RES *mysql_result;
MYSQL_ROW mysql_row;
#endif
#ifdef USE_PGSQL
PGconn *pgsql_conn;
PGresult *pgsql_result;
#endif
unsigned long instance_id;
unsigned long conninfo_id;
However, I can not find the definition of MYSQL in ndoutils source code.
Could any one give me a suggestion?
Many thanks,
Giang.