All pastes #137921 Raw Edit

Anonymous

public text v1 · immutable
#137921 ·published 2006-08-18 20:01 UTC
rendered paste body
plugins]# cd check_snmp-1.4
[root@nms check_snmp-1.4]# ./configure
checking for a BSD-compatible install... /usr/bin//install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking whether gcc and cc understand -c and -o together... yes
checking for net-snmp-config... /usr/bin//net-snmp-config
checking for init_snmp in -lnetsnmp... yes
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking getopt.h usability... yes
checking getopt.h presence... yes
checking for getopt.h... yes
checking regex.h usability... yes
checking regex.h presence... yes
checking for regex.h... yes
checking net-snmp-config.h usability... no
checking net-snmp-config.h presence... no
checking for net-snmp-config.h... no
checking for an ANSI C-conforming const... yes
checking for size_t... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking for memset... yes
checking for isspace... yes
checking for regcomp... yes
checking for getopt_long... yes
checking for strtol... yes
checking for strchr... yes
checking for strstr... yes
checking for strcasestr... yes
checking for regcomp... (cached) yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating inc/config.h
config.status: inc/config.h is unchanged
config.status: executing depfiles commands
[root@nms check_snmp-1.4]# make
depbase=`echo src/check_snmp.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`; \
if gcc -DHAVE_CONFIG_H -I. -I. -I./inc  -I./inc -O2 -g -pipe -m32 -march=i386 -mtune=pentium4 -Dlinux -I/usr/include/rpm -I/usr/include  -g -O2 -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:
./inc/check_snmp.h:107: warning: "struct variable_list" declared inside parameter list
./inc/check_snmp.h:107: warning: its scope is only this definition or declaration, which is probably not what you want
./inc/check_snmp.h:108: warning: "struct variable_list" declared inside parameter list
./inc/check_snmp.h:109: warning: "struct variable_list" declared inside parameter list
./inc/check_snmp.h:110: warning: "struct variable_list" declared inside parameter list
./inc/check_snmp.h:111: warning: "struct variable_list" declared inside parameter list
src/check_snmp.c:28: warning: "struct snmp_pdu" declared inside parameter list
src/check_snmp.c: In function `check_snmp':
src/check_snmp.c:61: error: storage size of 'init' isn't known
src/check_snmp.c:63: error: `oid' undeclared (first use in this function)
src/check_snmp.c:63: error: (Each undeclared identifier is reported only once
src/check_snmp.c:63: error: for each function it appears in.)
src/check_snmp.c:63: error: `o' undeclared (first use in this function)
src/check_snmp.c:63: error: `objid' undeclared (first use in this function)
src/check_snmp.c:63: error: `MAX_OID_LEN' undeclared (first use in this function)
src/check_snmp.c:73: error: `SNMP_VERSION_2c' undeclared (first use in this function)
src/check_snmp.c:81: warning: assignment makes pointer from integer without a cast
src/check_snmp.c:89: error: `SNMP_MSG_GETNEXT' undeclared (first use in this function)
src/check_snmp.c:89: error: `SNMP_MSG_GET' undeclared (first use in this function)
src/check_snmp.c:89: warning: assignment makes pointer from integer without a cast
src/check_snmp.c:95: error: `snmp_errno' undeclared (first use in this function)
src/check_snmp.c:104: error: `STAT_SUCCESS' undeclared (first use in this function)
src/check_snmp.c:105: error: dereferencing pointer to incomplete type
src/check_snmp.c:106: error: `SNMP_ERR_NOERROR' undeclared (first use in this function)
src/check_snmp.c:112: error: dereferencing pointer to incomplete type
src/check_snmp.c:117: error: `STAT_ERROR' undeclared (first use in this function)
src/check_snmp.c:122: error: `STAT_TIMEOUT' undeclared (first use in this function)
src/check_snmp.c: At top level:
src/check_snmp.c:164: warning: "struct snmp_pdu" declared inside parameter list
src/check_snmp.c:165: error: conflicting types for 'check_snmp_response'
src/check_snmp.c:28: error: previous declaration of 'check_snmp_response' was here
src/check_snmp.c:165: error: conflicting types for 'check_snmp_response'
src/check_snmp.c:28: error: previous declaration of 'check_snmp_response' was here
src/check_snmp.c: In function `check_snmp_response':
src/check_snmp.c:167: error: dereferencing pointer to incomplete type
src/check_snmp.c: At top level:
src/check_snmp.c:186: warning: "struct variable_list" declared inside parameter list
src/check_snmp.c:187: error: conflicting types for 'check_snmp_var_type'
./inc/check_snmp.h:107: error: previous declaration of 'check_snmp_var_type' was here
src/check_snmp.c:187: error: conflicting types for 'check_snmp_var_type'
./inc/check_snmp.h:107: error: previous declaration of 'check_snmp_var_type' was here
src/check_snmp.c: In function `check_snmp_var_type':
src/check_snmp.c:188: error: dereferencing pointer to incomplete type
src/check_snmp.c:189: error: `SNMP_NOSUCHOBJECT' undeclared (first use in this function)
src/check_snmp.c:190: error: `SNMP_NOSUCHINSTANCE' undeclared (first use in this function)
src/check_snmp.c: In function `check_snmp_get_value':
src/check_snmp.c:203: error: `ASN_APPLICATION' undeclared (first use in this function)
make: *** [src/check_snmp.o] Error 1