PDA

View Full Version : SuSE 9.3 Compilation Error / netsnmp


dennis
04-07-2005, 10:14
I get an error during make:

Making all in src/zabbix_sucker
make[1]: Entering directory `/usr/local/src/zabbix-1.0/src/zabbix_sucker'
gcc -o ../../bin/zabbix_suckerd -static -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 -L/usr/lib/mysql -lmysqlclient -lm -L/usr/lib -lnetsnmp -lcrypto
/usr/lib/gcc-lib/i586-suse-linux/3.3.4/../../../../i586-suse-linux/bin/ld: cannot find -lnetsnmp
collect2: ld returned 1 exit status
make[1]: *** [all] Error 1
make[1]: Leaving directory `/usr/local/src/zabbix-1.0/src/zabbix_sucker'
make: *** [all] Error 1

The following Packages are installed:

net-snmp-5.1.2-3
net-snmp-devel-5.1.2-3.1

mconigliaro
05-07-2005, 21:33
are you trying to compile static binaries? im pretty sure i had the same problem when compiling static binaries on sles9, but i never found the fix...

riegersteve
07-07-2005, 04:52
is you root

mconigliaro
12-08-2005, 21:14
i just tried again on alpha12, and im having the same problem. someone reported that installing 'libsnmp5-dev' was the fix, but that package doesnt exist on sles9.

as far as i can tell, this only happens when using --enable-static.

primos
16-08-2005, 10:00
I lik ezabbix very much and tried to help somebody else, but almost everybody are more experienced then I , but I run SLES 9, migrated from SLES 8,I can be of some help to you. Zabbix works on both of them , just on sles 8 I was only able to compile snmp UCD. Just I had to migrate the DB because in 4.0x I could not make Innodb, SLES 9 binaries are available at mysql.com.

Static or no static, both works for me, but sometimes bad things happen(strange erros), so work with fresh extracted files and there shouldn't be a problem!


#rpm -qa | grep snmp

net-snmp-devel-5.1-80.11
php4-snmp-4.3.4-43.8
evlog-snmp-1.6.0-35.20
net-snmp-5.1-80.1