Hi
I have on my mandrake 10 linux box:
./configure --with-mysql --with-net-snmp and it works fine.
But when I make I get problems: see bellow... Also i have tried with the -lz in configure and also with static in comple. I need help!! BTW is 1.1 good to use in production enviroment? I have tried both versions with the same result.
[root@ns1 zabbix-1.0]# make
Making all in src/zabbix_agent
make[1]: Entering directory `/root/zabbix-1.0/src/zabbix_agent'
gcc -o ../../bin/zabbix_agent -g -O2 -I../../include zabbix_agent.c sysinfo.c ../../include/log.c ../../include/cfg.c ../../include/security.c ../../include/snprintf.c -Wall -lnsl
gcc -o ../../bin/zabbix_agentd -g -O2 -I../../include zabbix_agentd.c sysinfo.c stats.c interfaces.c diskdevices.c ../../include/log.c ../../include/cfg.c ../../include/security.c ../../include/pid.c ../../include/snprintf.c -Wall -lnsl
make[1]: Leaving directory `/root/zabbix-1.0/src/zabbix_agent'
Making all in src/zabbix_sender
make[1]: Entering directory `/root/zabbix-1.0/src/zabbix_sender'
gcc -o ../../bin/zabbix_sender -g -O2 -I../../include ../../include/snprintf.c zabbix_sender.c -lnsl
make[1]: Leaving directory `/root/zabbix-1.0/src/zabbix_sender'
Making all in src/zabbix_sucker
make[1]: Entering directory `/root/zabbix-1.0/src/zabbix_sucker'
gcc -o ../../bin/zabbix_suckerd -g -O2 -I../../include -I/usr/include/mysql -I/usr/include zabbix_sucker.c ../../include/db.c ../../include/functions.c ../../include/expression.c ../../include/cfg.c ../../include/log.c ../../include/security.c ../../include/pid.c ../../include/snprintf.c ../zabbix_agent/sysinfo.c alerter.c pinger.c housekeeper.c -Wall -lnsl -L/usr/lib/mysql -lmysqlclient -lm -L/usr/lib -lnetsnmp -lcrypto
In file included from ../../include/db.h:26,
from zabbix_sucker.c:59:
../../include/config.h:223:1: warning: "PACKAGE_BUGREPORT" redefined
In file included from zabbix_sucker.c:46:
/usr/include/net-snmp/net-snmp-config.h:851:1: warning: this is the location of the previous definition
In file included from ../../include/db.h:26,
from zabbix_sucker.c:59:
../../include/config.h:226:1: warning: "PACKAGE_NAME" redefined
In file included from zabbix_sucker.c:46:
/usr/include/net-snmp/net-snmp-config.h:854:1: warning: this is the location of the previous definition
In file included from ../../include/db.h:26,
from zabbix_sucker.c:59:
../../include/config.h:229:1: warning: "PACKAGE_STRING" redefined
In file included from zabbix_sucker.c:46:
/usr/include/net-snmp/net-snmp-config.h:857:1: warning: this is the location of the previous definition
In file included from ../../include/db.h:26,
from zabbix_sucker.c:59:
../../include/config.h:232:1: warning: "PACKAGE_TARNAME" redefined
In file included from zabbix_sucker.c:46:
/usr/include/net-snmp/net-snmp-config.h:860:1: warning: this is the location of the previous definition
In file included from ../../include/db.h:26,
from zabbix_sucker.c:59:
../../include/config.h:235:1: warning: "PACKAGE_VERSION" redefined
In file included from zabbix_sucker.c:46:
/usr/include/net-snmp/net-snmp-config.h:863:1: warning: this is the location of the previous definition
/usr/lib/mysql/libmysqlclient.a(my_compress.o)(.text+0xbc): In function `my_compress_alloc':
: undefined reference to `compress'
/usr/lib/mysql/libmysqlclient.a(my_compress.o)(.text+0x13a): In function `my_uncompress':
: undefined reference to `uncompress'
collect2: ld returned 1 exit status
make[1]: *** [all] Fel 1
make[1]: Leaving directory `/root/zabbix-1.0/src/zabbix_sucker'
make: *** [all] Fel 1
[root@ns1 zabbix-1.0]#
I have on my mandrake 10 linux box:
./configure --with-mysql --with-net-snmp and it works fine.
But when I make I get problems: see bellow... Also i have tried with the -lz in configure and also with static in comple. I need help!! BTW is 1.1 good to use in production enviroment? I have tried both versions with the same result.
[root@ns1 zabbix-1.0]# make
Making all in src/zabbix_agent
make[1]: Entering directory `/root/zabbix-1.0/src/zabbix_agent'
gcc -o ../../bin/zabbix_agent -g -O2 -I../../include zabbix_agent.c sysinfo.c ../../include/log.c ../../include/cfg.c ../../include/security.c ../../include/snprintf.c -Wall -lnsl
gcc -o ../../bin/zabbix_agentd -g -O2 -I../../include zabbix_agentd.c sysinfo.c stats.c interfaces.c diskdevices.c ../../include/log.c ../../include/cfg.c ../../include/security.c ../../include/pid.c ../../include/snprintf.c -Wall -lnsl
make[1]: Leaving directory `/root/zabbix-1.0/src/zabbix_agent'
Making all in src/zabbix_sender
make[1]: Entering directory `/root/zabbix-1.0/src/zabbix_sender'
gcc -o ../../bin/zabbix_sender -g -O2 -I../../include ../../include/snprintf.c zabbix_sender.c -lnsl
make[1]: Leaving directory `/root/zabbix-1.0/src/zabbix_sender'
Making all in src/zabbix_sucker
make[1]: Entering directory `/root/zabbix-1.0/src/zabbix_sucker'
gcc -o ../../bin/zabbix_suckerd -g -O2 -I../../include -I/usr/include/mysql -I/usr/include zabbix_sucker.c ../../include/db.c ../../include/functions.c ../../include/expression.c ../../include/cfg.c ../../include/log.c ../../include/security.c ../../include/pid.c ../../include/snprintf.c ../zabbix_agent/sysinfo.c alerter.c pinger.c housekeeper.c -Wall -lnsl -L/usr/lib/mysql -lmysqlclient -lm -L/usr/lib -lnetsnmp -lcrypto
In file included from ../../include/db.h:26,
from zabbix_sucker.c:59:
../../include/config.h:223:1: warning: "PACKAGE_BUGREPORT" redefined
In file included from zabbix_sucker.c:46:
/usr/include/net-snmp/net-snmp-config.h:851:1: warning: this is the location of the previous definition
In file included from ../../include/db.h:26,
from zabbix_sucker.c:59:
../../include/config.h:226:1: warning: "PACKAGE_NAME" redefined
In file included from zabbix_sucker.c:46:
/usr/include/net-snmp/net-snmp-config.h:854:1: warning: this is the location of the previous definition
In file included from ../../include/db.h:26,
from zabbix_sucker.c:59:
../../include/config.h:229:1: warning: "PACKAGE_STRING" redefined
In file included from zabbix_sucker.c:46:
/usr/include/net-snmp/net-snmp-config.h:857:1: warning: this is the location of the previous definition
In file included from ../../include/db.h:26,
from zabbix_sucker.c:59:
../../include/config.h:232:1: warning: "PACKAGE_TARNAME" redefined
In file included from zabbix_sucker.c:46:
/usr/include/net-snmp/net-snmp-config.h:860:1: warning: this is the location of the previous definition
In file included from ../../include/db.h:26,
from zabbix_sucker.c:59:
../../include/config.h:235:1: warning: "PACKAGE_VERSION" redefined
In file included from zabbix_sucker.c:46:
/usr/include/net-snmp/net-snmp-config.h:863:1: warning: this is the location of the previous definition
/usr/lib/mysql/libmysqlclient.a(my_compress.o)(.text+0xbc): In function `my_compress_alloc':
: undefined reference to `compress'
/usr/lib/mysql/libmysqlclient.a(my_compress.o)(.text+0x13a): In function `my_uncompress':
: undefined reference to `uncompress'
collect2: ld returned 1 exit status
make[1]: *** [all] Fel 1
make[1]: Leaving directory `/root/zabbix-1.0/src/zabbix_sucker'
make: *** [all] Fel 1
[root@ns1 zabbix-1.0]#

Comment