I'm trying to compile the server (been successful with the clients).
./configure --with-mysql=/usr/local/mysql
Completes OK.
# make
Making all in src/zabbix_agent
make[1]: Entering directory `/export/source/SRC/zabbix-1.1alpha7/src/zabbix_agent'
gcc -o ../../bin/zabbix_agent -I../../include zabbix_agent.c sysinfo.c ../../include/log.c ../../include/cfg.c ../../include/security.c ../../include/snprintf.c ../../include/md5.c -Wall -lnsl
../../include/snprintf.c: In function `vasprintf':
../../include/snprintf.c:823: warning: implicit declaration of function `vsnprintf'
../../include/snprintf.c: At top level:
../../include/snprintf.c:169: warning: `dopr' defined but not used
gcc -o ../../bin/zabbix_agentd -I../../include zabbix_agentd.c sysinfo.c stats.c interfaces.c diskdevices.c cpustat.c ../../include/log.c ../../include/cfg.c ../../include/security.c ../../include/pid.c ../../include/snprintf.c ../../include/md5.c -Wall -lnsl
../../include/snprintf.c: In function `vasprintf':
../../include/snprintf.c:823: warning: implicit declaration of function `vsnprintf'
../../include/snprintf.c: At top level:
../../include/snprintf.c:169: warning: `dopr' defined but not used
make[1]: Leaving directory `/export/source/SRC/zabbix-1.1alpha7/src/zabbix_agent'
Making all in src/zabbix_sender
make[1]: Entering directory `/export/source/SRC/zabbix-1.1alpha7/src/zabbix_sender'
gcc -o ../../bin/zabbix_sender -I../../include ../../include/snprintf.c zabbix_sender.c -lnsl
make[1]: Leaving directory `/export/source/SRC/zabbix-1.1alpha7/src/zabbix_sender'
Making all in src/zabbix_server
make[1]: Entering directory `/export/source/SRC/zabbix-1.1alpha7/src/zabbix_server'
gcc -o ../../bin/zabbix_server -I../../include -I/usr/local/mysql/include server.c ../../include/db.c ../../include/functions.c ../../include/expression.c ../../include/cfg.c ../../include/log.c ../../include/security.c ../../include/pid.c ../../include/email.c ../../include/snprintf.c ../zabbix_agent/sysinfo.c ../../include/md5.c ../../include/zlog.c alerter.c pinger.c housekeeper.c checks_simple.c checks_snmp.c checks_agent.c checks_internal.c -Wall -lnsl -L/usr/local/mysql/lib -lmysqlclient -lm -lz
server.c: In function `tcp_listen':
server.c:1194: warning: implicit declaration of function `bzero'
../../include/snprintf.c: In function `vasprintf':
../../include/snprintf.c:823: warning: implicit declaration of function `vsnprintf'
../../include/snprintf.c: At top level:
../../include/snprintf.c:169: warning: `dopr' defined but not used
checks_agent.c: In function `get_value_agent':
checks_agent.c:49: warning: implicit declaration of function `hstrerror'
checks_agent.c:50: warning: format argument is not a pointer (arg 4)
ld: 0711-317 ERROR: Undefined symbol: .mysql_close
ld: 0711-317 ERROR: Undefined symbol: .mysql_init
ld: 0711-317 ERROR: Undefined symbol: .mysql_real_connect
ld: 0711-317 ERROR: Undefined symbol: .mysql_error
ld: 0711-317 ERROR: Undefined symbol: .mysql_errno
ld: 0711-317 ERROR: Undefined symbol: .mysql_select_db
ld: 0711-317 ERROR: Undefined symbol: .mysql_query
ld: 0711-317 ERROR: Undefined symbol: .mysql_store_result
ld: 0711-317 ERROR: Undefined symbol: .mysql_data_seek
ld: 0711-317 ERROR: Undefined symbol: .mysql_fetch_row
ld: 0711-317 ERROR: Undefined symbol: .mysql_num_rows
ld: 0711-317 ERROR: Undefined symbol: .mysql_free_result
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
collect2: ld returned 8 exit status
make[1]: *** [all] Error 1
make[1]: Leaving directory `/export/source/SRC/zabbix-1.1alpha7/src/zabbix_server'
make: *** [all] Error 1
#
Can Zabbix use MySQL 4.1?
Thanks
./configure --with-mysql=/usr/local/mysql
Completes OK.
# make
Making all in src/zabbix_agent
make[1]: Entering directory `/export/source/SRC/zabbix-1.1alpha7/src/zabbix_agent'
gcc -o ../../bin/zabbix_agent -I../../include zabbix_agent.c sysinfo.c ../../include/log.c ../../include/cfg.c ../../include/security.c ../../include/snprintf.c ../../include/md5.c -Wall -lnsl
../../include/snprintf.c: In function `vasprintf':
../../include/snprintf.c:823: warning: implicit declaration of function `vsnprintf'
../../include/snprintf.c: At top level:
../../include/snprintf.c:169: warning: `dopr' defined but not used
gcc -o ../../bin/zabbix_agentd -I../../include zabbix_agentd.c sysinfo.c stats.c interfaces.c diskdevices.c cpustat.c ../../include/log.c ../../include/cfg.c ../../include/security.c ../../include/pid.c ../../include/snprintf.c ../../include/md5.c -Wall -lnsl
../../include/snprintf.c: In function `vasprintf':
../../include/snprintf.c:823: warning: implicit declaration of function `vsnprintf'
../../include/snprintf.c: At top level:
../../include/snprintf.c:169: warning: `dopr' defined but not used
make[1]: Leaving directory `/export/source/SRC/zabbix-1.1alpha7/src/zabbix_agent'
Making all in src/zabbix_sender
make[1]: Entering directory `/export/source/SRC/zabbix-1.1alpha7/src/zabbix_sender'
gcc -o ../../bin/zabbix_sender -I../../include ../../include/snprintf.c zabbix_sender.c -lnsl
make[1]: Leaving directory `/export/source/SRC/zabbix-1.1alpha7/src/zabbix_sender'
Making all in src/zabbix_server
make[1]: Entering directory `/export/source/SRC/zabbix-1.1alpha7/src/zabbix_server'
gcc -o ../../bin/zabbix_server -I../../include -I/usr/local/mysql/include server.c ../../include/db.c ../../include/functions.c ../../include/expression.c ../../include/cfg.c ../../include/log.c ../../include/security.c ../../include/pid.c ../../include/email.c ../../include/snprintf.c ../zabbix_agent/sysinfo.c ../../include/md5.c ../../include/zlog.c alerter.c pinger.c housekeeper.c checks_simple.c checks_snmp.c checks_agent.c checks_internal.c -Wall -lnsl -L/usr/local/mysql/lib -lmysqlclient -lm -lz
server.c: In function `tcp_listen':
server.c:1194: warning: implicit declaration of function `bzero'
../../include/snprintf.c: In function `vasprintf':
../../include/snprintf.c:823: warning: implicit declaration of function `vsnprintf'
../../include/snprintf.c: At top level:
../../include/snprintf.c:169: warning: `dopr' defined but not used
checks_agent.c: In function `get_value_agent':
checks_agent.c:49: warning: implicit declaration of function `hstrerror'
checks_agent.c:50: warning: format argument is not a pointer (arg 4)
ld: 0711-317 ERROR: Undefined symbol: .mysql_close
ld: 0711-317 ERROR: Undefined symbol: .mysql_init
ld: 0711-317 ERROR: Undefined symbol: .mysql_real_connect
ld: 0711-317 ERROR: Undefined symbol: .mysql_error
ld: 0711-317 ERROR: Undefined symbol: .mysql_errno
ld: 0711-317 ERROR: Undefined symbol: .mysql_select_db
ld: 0711-317 ERROR: Undefined symbol: .mysql_query
ld: 0711-317 ERROR: Undefined symbol: .mysql_store_result
ld: 0711-317 ERROR: Undefined symbol: .mysql_data_seek
ld: 0711-317 ERROR: Undefined symbol: .mysql_fetch_row
ld: 0711-317 ERROR: Undefined symbol: .mysql_num_rows
ld: 0711-317 ERROR: Undefined symbol: .mysql_free_result
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
collect2: ld returned 8 exit status
make[1]: *** [all] Error 1
make[1]: Leaving directory `/export/source/SRC/zabbix-1.1alpha7/src/zabbix_server'
make: *** [all] Error 1
#
Can Zabbix use MySQL 4.1?
Thanks
Comment