I have been having the following problem with 1.3.x of Zabbix and had the same problem with the most recently released 1.3.8 version as well.
I am installing it on Fedora 6.
The problems are:
First problem
1). shell> ./configure --enable-server --with-mysql --with-net-snmp
When i start with the configure command, no matter which argument for net-snmp i supply, it always give me an error:
configure: error: Invalid NET-SNMP directory - unable to find net-snmp-config
My installation of snmp has this file under the directory : /usr/local/snmp/
I tried giving the following paramters :
1). /usr/local/snmp
2). /usr/local/snmp/bin/net-snmp-config
3). /usr/local/snmp/include/net-snmp/net-snmp-config.h
But all in vain, the installation would always halt.
I cant even make out of the code in configure file.
Second problem
I then tried installing it wihtout snmp Support.
It then gives me the following error :
make[3]: Entering directory `/root/extract/zabbix-1.3.8/src/libs/zbxdb'
if gcc -DHAVE_CONFIG_H -I. -I. -I../../../include -g -O2 -MT db.o -MD -MP -MF ".deps/db.Tpo" -c -o db.o db.c; \
then mv -f ".deps/db.Tpo" ".deps/db.Po"; else rm -f ".deps/db.Tpo"; exit 1; fi
In file included from ../../../include/db.h:28,
from db.c:22:
../../../include/zbxdb.h:31:20: error: mysql.h: No such file or directory
../../../include/zbxdb.h:32:21: error: errmsg.h: No such file or directory
../../../include/zbxdb.h:33:27: error: mysqld_error.h: No such file or directory
In file included from ../../../include/db.h:28,
from db.c:22:
../../../include/zbxdb.h:35: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
../../../include/zbxdb.h:122: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
../../../include/zbxdb.h:123: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
../../../include/zbxdb.h:124: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘zbx_db_fetch’
In file included from db.c:22:
../../../include/db.h:436: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
../../../include/db.h:437: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
../../../include/db.h:438: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘DBfetch’
../../../include/db.h:474: error: expected declaration specifiers or ‘...’ before ‘MYSQL_ROW’
db.c:34: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
db.c: In function ‘zbx_db_close’:
db.c:48: error: ‘conn’ undeclared (first use in this function)
db.c:48: error: (Each undeclared identifier is reported only once
db.c:48: error: for each function it appears in.)
db.c: In function ‘zbx_db_connect’:
db.c:80: error: ‘conn’ undeclared (first use in this function)
db.c:114: error: ‘CR_SERVER_GONE_ERROR’ undeclared (first use in this function)
db.c:115: error: ‘CR_CONNECTION_ERROR’ undeclared (first use in this function)
db.c:116: error: ‘CR_SERVER_LOST’ undeclared (first use in this function)
db.c:117: error: ‘ER_SERVER_SHUTDOWN’ undeclared (first use in this function)
db.c:118: error: ‘ER_UNKNOWN_ERROR’ undeclared (first use in this function)
db.c: At top level:
db.c:200: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
db.c: In function ‘zbx_db_vexecute’:
db.c:353: error: ‘conn’ undeclared (first use in this function)
db.c:365: error: ‘CR_SERVER_GONE_ERROR’ undeclared (first use in this function)
db.c:366: error: ‘CR_CONNECTION_ERROR’ undeclared (first use in this function)
db.c:367: error: ‘CR_SERVER_LOST’ undeclared (first use in this function)
db.c:368: error: ‘ER_SERVER_SHUTDOWN’ undeclared (first use in this function)
db.c:369: error: ‘ER_UNKNOWN_ERROR’ undeclared (first use in this function)
db.c: At top level:
db.c:497: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘zbx_db_fetch’
db.c:580: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
db.c: In function ‘zbx_db_insert_id’:
db.c:716: error: ‘conn’ undeclared (first use in this function)
db.c: At top level:
db.c:770: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
make[3]: *** [db.o] Error 1
make[3]: Leaving directory `/root/extract/zabbix-1.3.8/src/libs/zbxdb'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/root/extract/zabbix-1.3.8/src/libs'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/extract/zabbix-1.3.8/src'
make: *** [all-recursive] Error 1
Any Clue Guys ???
I am installing it on Fedora 6.
The problems are:
First problem
1). shell> ./configure --enable-server --with-mysql --with-net-snmp
When i start with the configure command, no matter which argument for net-snmp i supply, it always give me an error:
configure: error: Invalid NET-SNMP directory - unable to find net-snmp-config
My installation of snmp has this file under the directory : /usr/local/snmp/
I tried giving the following paramters :
1). /usr/local/snmp
2). /usr/local/snmp/bin/net-snmp-config
3). /usr/local/snmp/include/net-snmp/net-snmp-config.h
But all in vain, the installation would always halt.
I cant even make out of the code in configure file.
Second problem
I then tried installing it wihtout snmp Support.
It then gives me the following error :
make[3]: Entering directory `/root/extract/zabbix-1.3.8/src/libs/zbxdb'
if gcc -DHAVE_CONFIG_H -I. -I. -I../../../include -g -O2 -MT db.o -MD -MP -MF ".deps/db.Tpo" -c -o db.o db.c; \
then mv -f ".deps/db.Tpo" ".deps/db.Po"; else rm -f ".deps/db.Tpo"; exit 1; fi
In file included from ../../../include/db.h:28,
from db.c:22:
../../../include/zbxdb.h:31:20: error: mysql.h: No such file or directory
../../../include/zbxdb.h:32:21: error: errmsg.h: No such file or directory
../../../include/zbxdb.h:33:27: error: mysqld_error.h: No such file or directory
In file included from ../../../include/db.h:28,
from db.c:22:
../../../include/zbxdb.h:35: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
../../../include/zbxdb.h:122: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
../../../include/zbxdb.h:123: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
../../../include/zbxdb.h:124: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘zbx_db_fetch’
In file included from db.c:22:
../../../include/db.h:436: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
../../../include/db.h:437: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
../../../include/db.h:438: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘DBfetch’
../../../include/db.h:474: error: expected declaration specifiers or ‘...’ before ‘MYSQL_ROW’
db.c:34: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
db.c: In function ‘zbx_db_close’:
db.c:48: error: ‘conn’ undeclared (first use in this function)
db.c:48: error: (Each undeclared identifier is reported only once
db.c:48: error: for each function it appears in.)
db.c: In function ‘zbx_db_connect’:
db.c:80: error: ‘conn’ undeclared (first use in this function)
db.c:114: error: ‘CR_SERVER_GONE_ERROR’ undeclared (first use in this function)
db.c:115: error: ‘CR_CONNECTION_ERROR’ undeclared (first use in this function)
db.c:116: error: ‘CR_SERVER_LOST’ undeclared (first use in this function)
db.c:117: error: ‘ER_SERVER_SHUTDOWN’ undeclared (first use in this function)
db.c:118: error: ‘ER_UNKNOWN_ERROR’ undeclared (first use in this function)
db.c: At top level:
db.c:200: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
db.c: In function ‘zbx_db_vexecute’:
db.c:353: error: ‘conn’ undeclared (first use in this function)
db.c:365: error: ‘CR_SERVER_GONE_ERROR’ undeclared (first use in this function)
db.c:366: error: ‘CR_CONNECTION_ERROR’ undeclared (first use in this function)
db.c:367: error: ‘CR_SERVER_LOST’ undeclared (first use in this function)
db.c:368: error: ‘ER_SERVER_SHUTDOWN’ undeclared (first use in this function)
db.c:369: error: ‘ER_UNKNOWN_ERROR’ undeclared (first use in this function)
db.c: At top level:
db.c:497: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘zbx_db_fetch’
db.c:580: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
db.c: In function ‘zbx_db_insert_id’:
db.c:716: error: ‘conn’ undeclared (first use in this function)
db.c: At top level:
db.c:770: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
make[3]: *** [db.o] Error 1
make[3]: Leaving directory `/root/extract/zabbix-1.3.8/src/libs/zbxdb'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/root/extract/zabbix-1.3.8/src/libs'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/extract/zabbix-1.3.8/src'
make: *** [all-recursive] Error 1
Comment