PDA

View Full Version : "make" problem


imza72
27-10-2004, 06:19
i've problem when i issued the "make" command. at the beginning it's look fine but at the end, this is the error msg:-

zabbix_sucker.c:406: warning: implicit declaration of function `snmp_errstring'
zabbix_sucker.c:406: dereferencing pointer to incomplete type
zabbix_sucker.c:407: dereferencing pointer to incomplete type
zabbix_sucker.c:407: `SNMP_ERR_NOSUCHNAME' undeclared (first use in this function)
zabbix_sucker.c:416: `STAT_TIMEOUT' undeclared (first use in this function)
zabbix_sucker.c:420: warning: implicit declaration of function `snmp_sess_perror'
zabbix_sucker.c:434: warning: implicit declaration of function `snmp_free_pdu'
zabbix_sucker.c:436: warning: implicit declaration of function `snmp_close'
zabbix_sucker.c:269: warning: unused variable `session'
zabbix_sucker.c: In function `get_value':
zabbix_sucker.c:703: `SNMP_VERSION_1' undeclared (first use in this function)
zabbix_sucker.c:712: `SNMP_VERSION_2c' undeclared (first use in this function)
zabbix_sucker.c: In function `main':
zabbix_sucker.c:1201: warning: implicit declaration of function `init_snmp'
make[1]: *** [all] Error 1
make[1]: Leaving directory `/home/downloads/zabbix-1.0/src/zabbix_sucker'
make: *** [all] Error 1

hope someone will help me. yhanks in adv.

cooper
27-10-2004, 06:21
what switches/options did you pass to ./configure prior to make?

imza72
27-10-2004, 06:26
i don't get what u mean. i just follow the manual for zabbix-1.0. ok...sorry...i know what u mean....

here is the switches that i passed....

./configure --with-mysql -with-net-snmp # for MySQL

cooper
27-10-2004, 06:31
Ok, so i am guessing you are trying to build the server. What you probably did after un-taring the source was

./configure -with-mysql –with-net-snmp

This tells the program to attempt to build in support for snmp. It looks from the errors that you dont have snmp, or at least the libs, installed. This is not a problem. I dont use snmp on my install.

Just start over and use

./configure -with-mysql

instead. make should then complete, assuming it doesnt have any other errors.

imza72
27-10-2004, 06:44
i believe that i've installed the module....

# rpm -qa | grep net-snmp
net-snmp-devel-5.1.2-1.rh9
net-snmp-5.1.2-1.rh9

any other ideas...??

TQ

cooper
27-10-2004, 16:08
yes, it does look like you have it. It seems that make cannot find your snmp-libs. They may be in an non-standard place. Check this thread 11 The 1st couple posts might help.

Puchacz
28-10-2004, 23:38
Hi everyone,
I have similar problem, but not the same (another warning messages and stop by Error). On Slackware 10.0 but also with net-snmp 5.1.2 package.

I don't know where is the problem, but with net-snmp 5.0.9 work fine.
Try previous version of snmp.