?
Solved

nagios package error

Posted on 2011-10-24
2
Medium Priority
?
613 Views
Last Modified: 2012-05-12
Hi

I have made nagios, when i am compiling SNMP dependecey i am getting this error, below is the link  from where i am doing.

http://bigunix.blogspot.com/2009/07/how-to-monitor-bandwidht-using-mrtg-and.html

[root@localhost check_snmp-1.1]# make
depbase=`echo src/check_snmp.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`; \
if gcc -DHAVE_CONFIG_H -I. -I. -I./inc     -g -O2 -DNETSNMP_ENABLE_IPV6 -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables -D_RPM_4_4_COMPAT -Ulinux -Dlinux=linux -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/lib/perl5/CORE -I/usr/include -MT src/check_snmp.o -MD -MP -MF "$depbase.Tpo" -c -o src/check_snmp.o src/check_snmp.c; \
then mv -f "$depbase.Tpo" "$depbase.Po"; else rm -f "$depbase.Tpo"; exit 1; fi
In file included from src/check_snmp.c:24:0:
./inc/check_snmp.h:104:32: warning: ‘struct variable_list’ declared inside parameter list [enabled by default]
./inc/check_snmp.h:104:32: warning: its scope is only this definition or declaration, which is probably not what you want [enabled by default]
./inc/check_snmp.h:105:62: warning: ‘struct variable_list’ declared inside parameter list [enabled by default]
./inc/check_snmp.h:106:60: warning: ‘struct variable_list’ declared inside parameter list [enabled by default]
./inc/check_snmp.h:107:60: warning: ‘struct variable_list’ declared inside parameter list [enabled by default]
./inc/check_snmp.h:108:59: warning: ‘struct variable_list’ declared inside parameter list [enabled by default]
src/check_snmp.c:28:68: warning: ‘struct snmp_pdu’ declared inside parameter list [enabled by default]
src/check_snmp.c: In function ‘check_snmp’:
src/check_snmp.c:61:25: error: storage size of ‘init’ isn’t known
src/check_snmp.c:63:5: error: unknown type name ‘oid’
src/check_snmp.c:63:19: error: ‘MAX_OID_LEN’ undeclared (first use in this function)
src/check_snmp.c:63:19: note: each undeclared identifier is reported only once for each function it appears in
src/check_snmp.c:66:5: warning: implicit declaration of function ‘snmp_disable_log’ [-Wimplicit-function-declaration]
src/check_snmp.c:68:9: warning: implicit declaration of function ‘snmp_enable_stderrlog’ [-Wimplicit-function-declaration]
src/check_snmp.c:69:5: warning: implicit declaration of function ‘init_snmp’ [-Wimplicit-function-declaration]
src/check_snmp.c:70:5: warning: implicit declaration of function ‘snmp_sess_init’ [-Wimplicit-function-declaration]
src/check_snmp.c:73:20: error: ‘SNMP_VERSION_2c’ undeclared (first use in this function)
src/check_snmp.c:81:5: warning: implicit declaration of function ‘snmp_open’ [-Wimplicit-function-declaration]
src/check_snmp.c:84:17: warning: implicit declaration of function ‘snmp_api_errstring’ [-Wimplicit-function-declaration]
src/check_snmp.c:89:5: warning: implicit declaration of function ‘snmp_pdu_create’ [-Wimplicit-function-declaration]
src/check_snmp.c:89:27: error: ‘SNMP_MSG_GET’ undeclared (first use in this function)
src/check_snmp.c:92:9: warning: implicit declaration of function ‘snmp_parse_oid’ [-Wimplicit-function-declaration]
src/check_snmp.c:95:60: error: ‘snmp_errno’ undeclared (first use in this function)
src/check_snmp.c:99:9: warning: implicit declaration of function ‘snmp_add_null_var’ [-Wimplicit-function-declaration]
src/check_snmp.c:102:5: warning: implicit declaration of function ‘snmp_synch_response’ [-Wimplicit-function-declaration]
src/check_snmp.c:104:14: error: ‘STAT_SUCCESS’ undeclared (first use in this function)
src/check_snmp.c:105:29: error: dereferencing pointer to incomplete type
src/check_snmp.c:106:22: error: ‘SNMP_ERR_NOERROR’ undeclared (first use in this function)
src/check_snmp.c:107:21: warning: passing argument 2 of ‘check_snmp_response’ from incompatible pointer type [enabled by default]
src/check_snmp.c:28:12: note: expected ‘struct snmp_pdu *’ but argument is of type ‘struct snmp_pdu *’
src/check_snmp.c:112:56: error: dereferencing pointer to incomplete type
src/check_snmp.c:117:14: error: ‘STAT_ERROR’ undeclared (first use in this function)
src/check_snmp.c:122:14: error: ‘STAT_TIMEOUT’ undeclared (first use in this function)
src/check_snmp.c:134:9: warning: implicit declaration of function ‘snmp_free_pdu’ [-Wimplicit-function-declaration]
src/check_snmp.c:135:5: warning: implicit declaration of function ‘snmp_close’ [-Wimplicit-function-declaration]
src/check_snmp.c:63:13: warning: unused variable ‘objid’ [-Wunused-variable]
src/check_snmp.c:61:25: warning: unused variable ‘init’ [-Wunused-variable]
src/check_snmp.c: At top level:
src/check_snmp.c:164:61: warning: ‘struct snmp_pdu’ declared inside parameter list [enabled by default]
src/check_snmp.c:164:1: error: conflicting types for ‘check_snmp_response’
src/check_snmp.c:28:12: note: previous declaration of ‘check_snmp_response’ was here
src/check_snmp.c: In function ‘check_snmp_response’:
src/check_snmp.c:167:42: error: dereferencing pointer to incomplete type
src/check_snmp.c:170:13: warning: passing argument 2 of ‘check_snmp_intervals’ from incompatible pointer type [enabled by default]
./inc/check_snmp.h:105:5: note: expected ‘struct variable_list *’ but argument is of type ‘struct variable_list *’
src/check_snmp.c:173:13: warning: passing argument 2 of ‘check_snmp_strings’ from incompatible pointer type [enabled by default]
./inc/check_snmp.h:106:5: note: expected ‘struct variable_list *’ but argument is of type ‘struct variable_list *’
src/check_snmp.c:176:13: warning: passing argument 2 of ‘check_snmp_regexes’ from incompatible pointer type [enabled by default]
./inc/check_snmp.h:107:5: note: expected ‘struct variable_list *’ but argument is of type ‘struct variable_list *’
src/check_snmp.c:179:13: warning: passing argument 2 of ‘check_snmp_simple’ from incompatible pointer type [enabled by default]
./inc/check_snmp.h:108:5: note: expected ‘struct variable_list *’ but argument is of type ‘struct variable_list *’
src/check_snmp.c: At top level:
src/check_snmp.c:186:28: warning: ‘struct variable_list’ declared inside parameter list [enabled by default]
src/check_snmp.c:186:1: error: conflicting types for ‘check_snmp_var_type’
./inc/check_snmp.h:104:5: note: previous declaration of ‘check_snmp_var_type’ was here
src/check_snmp.c: In function ‘check_snmp_var_type’:
src/check_snmp.c:188:14: error: dereferencing pointer to incomplete type
src/check_snmp.c:189:14: error: ‘SNMP_NOSUCHOBJECT’ undeclared (first use in this function)
src/check_snmp.c:190:14: error: ‘SNMP_NOSUCHINSTANCE’ undeclared (first use in this function)
src/check_snmp.c: In function ‘check_snmp_get_value’:
src/check_snmp.c:203:16: error: ‘ASN_APPLICATION’ undeclared (first use in this function)
src/check_snmp.c: At top level:
src/check_snmp.c:28:12: warning: ‘check_snmp_response’ used but never defined [enabled by default]
src/check_snmp.c:164:1: warning: ‘check_snmp_response’ defined but not used [-Wunused-function]
src/check_snmp.c: In function ‘check_snmp_var_type’:
src/check_snmp.c:195:1: warning: control reaches end of non-void function [-Wreturn-type]
make: *** [src/check_snmp.o] Error 1
[root@localhost check_snmp-1.1]#
0
Comment
Question by:Mbhushan
2 Comments
 
LVL 3

Author Comment

by:Mbhushan
ID: 37018469
[root@localhost ~]# rpm -qa | grep snmp
net-snmp-libs-5.6.1-7.fc15.i686
net-snmp-devel-5.6.1-7.fc15.i686
snmp++-devel-3.2.25-1.fc15.i686
net-snmp-5.6.1-7.fc15.i686
snmp++-3.2.25-1.fc15.i686
net-snmp-utils-5.6.1-7.fc15.i686
0
 
LVL 38

Accepted Solution

by:
wesly_chen earned 2000 total points
ID: 37021703
Did you have those installed?
beecrypt-devel, elfutils-devel, elfutils-devel-static, lm_sensors

rpm -qa |egrep -i 'beecrypt|elfutils|lm_sensors'

What Linux distribution do you have? RedHat/Fedora/CentOS 5.x, SuSE 11.x?
0

Featured Post

A Cyber Security RX to Protect Your Organization

Join us on December 13th for a webinar to learn how medical providers can defend against malware with a cyber security "Rx" that supports a healthy technology adoption plan for every healthcare organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Fine Tune your automatic Updates for Ubuntu / Debian
Often times it's very very easy to extend a volume on a Linux instance in AWS, but impossible to shrink it. I wanted to contribute to the experts-exchange community a way of providing a procedure that works on an AWS instance. It can also be used on…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
Suggested Courses
Course of the Month15 days, 6 hours left to enroll

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question