Hi everybody,
I tried to run "make install" and received the following message:
Saindo do diretório `/home/zabbix/zabbix/src/libs/zbxjson'
Making all in zbxdb
make[3]: Entrando no diretório `/home/zabbix/zabbix/src/libs/zbxdb'
gcc -DHAVE_CONFIG_H -I. -I../../../include -g -O2 -I/usr/include/mysql -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -fno-strict-aliasing -fwrapv -fPIC -DUNIV_LINUX -DUNIV_LINUX -I/usr/include/rpm -I/usr/local/include -I/usr/include/gdbm -I/usr/lib64/perl5/5.10.0/x86_64-linux-thread-multi/CORE -I. -I/usr/include/net-snmp -MT db.o -MD -MP -MF .deps/db.Tpo -c -o db.o db.c
In file included from ../../../include/db.h:29,
from db.c:22:
../../../include/zbxdb.h:32:20: error: mysql.h: Arquivo ou diretório não encontrado
../../../include/zbxdb.h:33:21: error: errmsg.h: Arquivo ou diretório não encontrado
../../../include/zbxdb.h:34:27: error: mysqld_error.h: Arquivo ou diretório não encontrado
In file included from ../../../include/db.h:29,
from db.c:22:
../../../include/zbxdb.h:36: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
../../../include/zbxdb.h:147: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
../../../include/zbxdb.h:148: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
../../../include/zbxdb.h:149: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘zbx_db_fetch’
In file included from db.c:22:
../../../include/db.h:542: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
../../../include/db.h:544: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
../../../include/db.h:545: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘DBfetch’
../../../include/db.h:582: error: expected declaration specifiers or ‘...’ before ‘MYSQL_ROW’
db.c:38: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
db.c: In function ‘zbx_db_close’:
db.c:53: error: ‘conn’ undeclared (first use in this function)
db.c:53: error: (Each undeclared identifier is reported only once
db.c:53: error: for each function it appears in.)
db.c: In function ‘zbx_db_connect’:
db.c:135: error: ‘conn’ undeclared (first use in this function)
db.c:137: error: ‘CLIENT_MULTI_STATEMENTS’ undeclared (first use in this function)
db.c:161: error: ‘CR_CONN_HOST_ERROR’ undeclared (first use in this function)
db.c:162: error: ‘CR_SERVER_GONE_ERROR’ undeclared (first use in this function)
db.c:163: error: ‘CR_CONNECTION_ERROR’ undeclared (first use in this function)
db.c:164: error: ‘CR_SERVER_LOST’ undeclared (first use in this function)
db.c:165: error: ‘ER_SERVER_SHUTDOWN’ undeclared (first use in this function)
db.c:166: error: ‘ER_UNKNOWN_ERROR’ undeclared (first use in this function)
db.c: At top level:
db.c:344: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
db.c: In function ‘zbx_db_vexecute’:
db.c:540: error: ‘conn’ undeclared (first use in this function)
db.c:551: error: ‘CR_CONN_HOST_ERROR’ undeclared (first use in this function)
db.c:552: error: ‘CR_SERVER_GONE_ERROR’ undeclared (first use in this function)
db.c:553: error: ‘CR_CONNECTION_ERROR’ undeclared (first use in this function)
db.c:554: error: ‘CR_SERVER_LOST’ undeclared (first use in this function)
db.c:555: error: ‘ER_SERVER_SHUTDOWN’ undeclared (first use in this function)
db.c:556: error: ‘ER_UNKNOWN_ERROR’ undeclared (first use in this function)
db.c: At top level:
db.c:760: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘zbx_db_fetch’
db.c:845: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
db.c: In function ‘zbx_db_insert_id’:
db.c:1071: error: ‘conn’ undeclared (first use in this function)
db.c: At top level:
db.c:1125: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
make[3]: ** [db.o] Erro 1
make[3]: Saindo do diretório `/home/zabbix/zabbix/src/libs/zbxdb'
make[2]: ** [all-recursive] Erro 1
make[2]: Saindo do diretório `/home/zabbix/zabbix/src/libs'
make[1]: ** [all-recursive] Erro 1
make[1]: Saindo do diretório `/home/zabbix/zabbix/src'
make: ** [all-recursive] Erro 1
What should i do?
I tried to run "make install" and received the following message:
Saindo do diretório `/home/zabbix/zabbix/src/libs/zbxjson'
Making all in zbxdb
make[3]: Entrando no diretório `/home/zabbix/zabbix/src/libs/zbxdb'
gcc -DHAVE_CONFIG_H -I. -I../../../include -g -O2 -I/usr/include/mysql -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -fno-strict-aliasing -fwrapv -fPIC -DUNIV_LINUX -DUNIV_LINUX -I/usr/include/rpm -I/usr/local/include -I/usr/include/gdbm -I/usr/lib64/perl5/5.10.0/x86_64-linux-thread-multi/CORE -I. -I/usr/include/net-snmp -MT db.o -MD -MP -MF .deps/db.Tpo -c -o db.o db.c
In file included from ../../../include/db.h:29,
from db.c:22:
../../../include/zbxdb.h:32:20: error: mysql.h: Arquivo ou diretório não encontrado
../../../include/zbxdb.h:33:21: error: errmsg.h: Arquivo ou diretório não encontrado
../../../include/zbxdb.h:34:27: error: mysqld_error.h: Arquivo ou diretório não encontrado
In file included from ../../../include/db.h:29,
from db.c:22:
../../../include/zbxdb.h:36: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
../../../include/zbxdb.h:147: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
../../../include/zbxdb.h:148: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
../../../include/zbxdb.h:149: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘zbx_db_fetch’
In file included from db.c:22:
../../../include/db.h:542: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
../../../include/db.h:544: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
../../../include/db.h:545: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘DBfetch’
../../../include/db.h:582: error: expected declaration specifiers or ‘...’ before ‘MYSQL_ROW’
db.c:38: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
db.c: In function ‘zbx_db_close’:
db.c:53: error: ‘conn’ undeclared (first use in this function)
db.c:53: error: (Each undeclared identifier is reported only once
db.c:53: error: for each function it appears in.)
db.c: In function ‘zbx_db_connect’:
db.c:135: error: ‘conn’ undeclared (first use in this function)
db.c:137: error: ‘CLIENT_MULTI_STATEMENTS’ undeclared (first use in this function)
db.c:161: error: ‘CR_CONN_HOST_ERROR’ undeclared (first use in this function)
db.c:162: error: ‘CR_SERVER_GONE_ERROR’ undeclared (first use in this function)
db.c:163: error: ‘CR_CONNECTION_ERROR’ undeclared (first use in this function)
db.c:164: error: ‘CR_SERVER_LOST’ undeclared (first use in this function)
db.c:165: error: ‘ER_SERVER_SHUTDOWN’ undeclared (first use in this function)
db.c:166: error: ‘ER_UNKNOWN_ERROR’ undeclared (first use in this function)
db.c: At top level:
db.c:344: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
db.c: In function ‘zbx_db_vexecute’:
db.c:540: error: ‘conn’ undeclared (first use in this function)
db.c:551: error: ‘CR_CONN_HOST_ERROR’ undeclared (first use in this function)
db.c:552: error: ‘CR_SERVER_GONE_ERROR’ undeclared (first use in this function)
db.c:553: error: ‘CR_CONNECTION_ERROR’ undeclared (first use in this function)
db.c:554: error: ‘CR_SERVER_LOST’ undeclared (first use in this function)
db.c:555: error: ‘ER_SERVER_SHUTDOWN’ undeclared (first use in this function)
db.c:556: error: ‘ER_UNKNOWN_ERROR’ undeclared (first use in this function)
db.c: At top level:
db.c:760: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘zbx_db_fetch’
db.c:845: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
db.c: In function ‘zbx_db_insert_id’:
db.c:1071: error: ‘conn’ undeclared (first use in this function)
db.c: At top level:
db.c:1125: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
make[3]: ** [db.o] Erro 1
make[3]: Saindo do diretório `/home/zabbix/zabbix/src/libs/zbxdb'
make[2]: ** [all-recursive] Erro 1
make[2]: Saindo do diretório `/home/zabbix/zabbix/src/libs'
make[1]: ** [all-recursive] Erro 1
make[1]: Saindo do diretório `/home/zabbix/zabbix/src'
make: ** [all-recursive] Erro 1
What should i do?