vm7 기반 Fedora10 에서 net-snmp 5.4.2.1 설치시 에러
1. 환경 : VMware7, Fedora10(Vmnet8 NAT)
2. 설치 : net-snmp 5.4.2.1 설치시 아래와 같은 에러가 납니다.
일단 ./configure 에서는 에러가 안나구요..
그 다음 make & make install 에서 에러가 납니다.
아래는 에러 메시지 입니다.
Net-snmp 5.4.2.1 Make Error
host/hr_swinst.c: In function ‘init_hr_swinst’:
host/hr_swinst.c:210: warning: assignment makes pointer from integer without a cast
host/hr_swinst.c: In function ‘var_hrswinst’:
host/hr_swinst.c:480: error: ‘int_32’ undeclared (first use in this function)
host/hr_swinst.c:480: error: (Each undeclared identifier is reported only once
host/hr_swinst.c:480: error: for each function it appears in.)
host/hr_swinst.c:480: error: ‘rpm_data’ undeclared (first use in this function)
make[2]: *** [host/hr_swinst.lo] 오류 1
make[2]: Leaving directory `/usr/local/src/net-snmp-5.4.2.1/agent/mibgroup'
make[1]: *** [subdirs] 오류 1
make[1]: Leaving directory `/usr/local/src/net-snmp-5.4.2.1/agent'
make: *** [subdirs] 오류 1
Make Install Error
mibgroup/host/hr_swinst.c: In function ‘init_hr_swinst’:
mibgroup/host/hr_swinst.c:210: warning: assignment makes pointer from integer without a cast
mibgroup/host/hr_swinst.c: In function ‘var_hrswinst’:
mibgroup/host/hr_swinst.c:480: error: ‘int_32’ undeclared (first use in this function)
mibgroup/host/hr_swinst.c:480: error: (Each undeclared identifier is reported only once
mibgroup/host/hr_swinst.c:480: error: for each function it appears in.)
mibgroup/host/hr_swinst.c:480: error: ‘rpm_data’ undeclared (first use in this function)
make[1]: *** [mibgroup/host/hr_swinst.lo] 오류 1
make[1]: Leaving directory `/usr/local/src/net-snmp-5.4.2.1/agent'
make: *** [installsubdirlibs] 오류 1
위의 에러가 난 부분의 경로는 다음과 같습니다.
/usr/local/src/net-snmp5.4.2.1/agent/mibgroup/host/hr_swinst.c
에러가 난 부분의 소스는 다음과 같습니다.
#ifdef HAVE_LIBRPM
#include " rpm/rpmlib.n"
#include " rpm/header.h"
#include " fcntl.h"
#ifdef HAVE_LIBRPM
int_32 *rpm_data;
if ( headerGetEntry(swi->swi_h, RPMTAG_INSTALLTIME, NULL, (void **) &rpm_data, NULL) ) {
time_t installTime = *rpm_data;
ret = date_n_time(&installTime, var_len);
} else {
ret = date_n_time(0, var_len);
}
yum -y install rpm 명령으로 rpmlib를 모두 다운받아 설치하였구요.
yum -y install fcntl 명령으로 fcntl을 다운받으려 하였으나 nothing to do라는 메시지만 출력하더군요.
설치 진행상황은 단지
1. ./configure
2. make
3. make install
이 3가지만 진행하였습니다.
이런 에러날때 어떡해야 하는 지 아시는 분..도움을 부탁드립니다.
ps> make clean/make uninstall/make distclean 하고 다시 깔아도 위와 같은 메시지가 나옵니다.
현재 네트워크는 잘되고 있는 상황이구요. 위의 에러에도 불구하고 localhost에 snmpget 명령을 내리면 TIME OUT 걸립니다.
그리고 netstat -a|grep udp 해보면 udp port 161이 열려 있지 않습니다.
위의 에러 때문에 SNMP가 안깔린 것 확실한데요... 아시는 분 도움을 좀 주세요..
페도라10 커널 버젼이 kernel-2.6.27.5-117.fc10.i686 이던데 혹시 커널 버젼하고 뭐가 안맞아서 그런건 아닐까요?
댓글 달기