Ad Widget

Collapse

zabbix server installation error

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • akansh
    Junior Member
    • Mar 2013
    • 1

    #1

    zabbix server installation error

    I tried running the command-
    ./configure --enable-server --enable-agent --with-mysql --enable-ipv6 --with-net-snmp --with-libcurl
    but got the below error -

    checking for net-snmp-config... no
    configure: error: Invalid NET-SNMP directory - unable to find net-snmp-config

    Then, I removed the --with-net-snmp and it ran fine.

    Now , I am getting the following error message while executing the command "make install".
    ./../../include/zbxdb.h:168: error: syntax error before '*' token ../../../include/zbxdb.h:168: warning: data definition has no type or storage class ../../../include/zbxdb.h:169: error: syntax error before '*' token ../../../include/zbxdb.h:169: warning: data definition has no type or storage class ../../../include/zbxdb.h:171: error: syntax error before "zbx_db_fetch" ../../../include/zbxdb.h:171: error: syntax error before '*' token ../../../include/zbxdb.h:171: warning: data definition has no type or storage class In file included from db.c:22: ../../../include/db.h:520: error: syntax error before '*' token ../../../include/db.h:520: warning: data definition has no type or storage class ../../../include/db.h:521: error: syntax error before '*' token ../../../include/db.h:521: warning: data definition has no type or storage class ../../../include/db.h:523: error: syntax error before '*' token ../../../include/db.h:523: warning: data definition has no type or storage class ../../../include/db.h:524: error: syntax error before "DBfetch" ../../../include/db.h:524: error: syntax error before '*' token ../../../include/db.h:524: warning: data definition has no type or storage class ../../../include/db.h:557: error: syntax error before "MYSQL_ROW" db.c:33: error: syntax error before '*' token db.c:33: warning: data definition has no type or storage class db.c: In function `zbx_db_connect': db.c:177: warning: assignment makes pointer from integer without a cast db.c:179: error: `CLIENT_MULTI_STATEMENTS' undeclared (first use in this function) db.c:179: error: (Each undeclared identifier is reported only once db.c:179: error: for each function it appears in.) db.c:203: error: `CR_CONN_HOST_ERROR' undeclared (first use in this function) db.c:204: error: `CR_SERVER_GONE_ERROR' undeclared (first use in this function) db.c:205: error: `CR_CONNECTION_ERROR' undeclared (first use in this function) db.c:206: error: `CR_SERVER_LOST' undeclared (first use in this function) db.c:207: error: `ER_SERVER_SHUTDOWN' undeclared (first use in this function) db.c:208: error: `ER_ACCESS_DENIED_ERROR' undeclared (first use in this function) db.c:209: error: `ER_ILLEGAL_GRANT_FOR_TABLE' undeclared (first use in this function) db.c:210: error: `ER_TABLEACCESS_DENIED_ERROR' undeclared (first use in this function) db.c:211: error: `ER_UNKNOWN_ERROR' undeclared (first use in this function) db.c: At top level: db.c:481: error: syntax error before '*' token db.c: In function `__zbx_zbx_db_select': db.c:484: error: `MYSQL_RES' undeclared (first use in this function) db.c:484: error: `result' undeclared (first use in this function) db.c: In function `zbx_db_vexecute': db.c:758: error: `CR_CONN_HOST_ERROR' undeclared (first use in this function) db.c:759: error: `CR_SERVER_GONE_ERROR' undeclared (first use in this function) db.c:760: error: `CR_CONNECTION_ERROR' undeclared (first use in this function) db.c:761: error: `CR_SERVER_LOST' undeclared (first use in this function) db.c:762: error: `ER_SERVER_SHUTDOWN' undeclared (first use in this function) db.c:763: error: `ER_ACCESS_DENIED_ERROR' undeclared (first use in this function) db.c:764: error: `ER_ILLEGAL_GRANT_FOR_TABLE' undeclared (first use in this function) db.c:765: error: `ER_TABLEACCESS_DENIED_ERROR' undeclared (first use in this function) db.c:766: error: `ER_UNKNOWN_ERROR' undeclared (first use in this function) db.c: At top level: db.c:918: error: syntax error before '*' token db.c: In function `zbx_db_vselect': db.c:921: error: `MYSQL_RES' undeclared (first use in this function) db.c:921: error: `result' undeclared (first use in this function) db.c:1019: error: `CR_CONN_HOST_ERROR' undeclared (first use in this function) db.c:1020: error: `CR_SERVER_GONE_ERROR' undeclared (first use in this function) db.c:1021: error: `CR_CONNECTION_ERROR' undeclared (first use in this function) db.c:1022: error: `CR_SERVER_LOST' undeclared (first use in this function) db.c:1023: error: `ER_SERVER_SHUTDOWN' undeclared (first use in this function) db.c:1024: error: `ER_ACCESS_DENIED_ERROR' undeclared (first use in this function) db.c:1025: error: `ER_ILLEGAL_GRANT_FOR_TABLE' undeclared (first use in this function) db.c:1026: error: `ER_TABLEACCESS_DENIED_ERROR' undeclared (first use in this function) db.c:1027: error: `ER_UNKNOWN_ERROR' undeclared (first use in this function) db.c:1028: error: syntax error before ')' token db.c: At top level: db.c:1215: error: syntax error before '*' token db.c:1230: error: syntax error before "zbx_db_fetch" db.c:1230: error: syntax error before '*' token db.c: In function `zbx_db_fetch': db.c:1240: error: `result' undeclared (first use in this function) db.c:1241: warning: return makes integer from pointer without a cast make[3]: *** [db.o] Error 1 make[3]: Leaving directory `/opt/zabbix-1.8.16/src/libs/zbxdb' make[2]: *** [install-recursive] Error 1 make[2]: Leaving directory `/opt/zabbix-1.8.16/src/libs' make[1]: *** [install-recursive] Error 1 make[1]: Leaving directory `/opt/zabbix-1.8.16/src' make: *** [install-recursive] Error 1

    Can you please provide me a solution for this. Thanks in advance.
Working...