PDA

View Full Version : compile error with net-snmp


cnicules
27-06-2005, 15:08
hi,

i want to user snmp so i do "./configure -with-mysql -with-net-snmp", and at compile time i get:

gcc -o ../../bin/zabbix_server -g -O2 -I../../include -I/usr/include/mysql -I/usr/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 trapper.c -Wall -lnsl -L/usr/lib/mysql -lmysqlclient -lm -lz -L/usr/lib -lnetsnmp
../../include/snprintf.c:169: warning: 'dopr' defined but not used
/usr/lib/libnetsnmp.so: undefined reference to `EVP_DigestInit'
/usr/lib/libnetsnmp.so: undefined reference to `EVP_DigestFinal'
/usr/lib/libnetsnmp.so: undefined reference to `EVP_DigestFinal_ex'
/usr/lib/libnetsnmp.so: undefined reference to `AES_set_encrypt_key'
/usr/lib/libnetsnmp.so: undefined reference to `EVP_md5'

in fact i didn't get, if to monitor a device with snmp i need this, or its for geting info out of zabbix by snmp.

i use a CentOS 4.1, with mysql and on both zabbix 1.0 and 1.1alpha i get the error

thanks for help

c

Alexei
27-06-2005, 16:18
My guess is that openssl-dev is missing.

MerCury
28-06-2005, 09:12
I have the same error too.

[root@lk112 /home/tmp/zabbix1.1a]# rpm -qa | grep openssl
openssl096-0.9.6-6
openssl-devel-0.9.6b-18
openssl-0.9.6b-18
openssl095a-0.9.5a-11
openssl-perl-0.9.6b-18


I searched the forums and it was said by one user that it could be because the net-snmp was installed without openssl support.

i tried reinstalling net-snmp but the error is still the same.
anybody can advise how to install net-snmp with openssl support?

cnicules
28-06-2005, 14:52
My guess is that openssl-dev is missing.

yup thats it thx