vm7 기반 Fedora10 에서 net-snmp 5.4.2.1 설치시 에러

bakdorazi의 이미지

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 이던데 혹시 커널 버젼하고 뭐가 안맞아서 그런건 아닐까요?

댓글 달기

Filtered HTML

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

BBCode

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param>
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

Textile

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • You can use Textile markup to format text.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Markdown

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • Quick Tips:
    • Two or more spaces at a line's end = Line break
    • Double returns = Paragraph
    • *Single asterisks* or _single underscores_ = Emphasis
    • **Double** or __double__ = Strong
    • This is [a link](http://the.link.example.com "The optional title text")
    For complete details on the Markdown syntax, see the Markdown documentation and Markdown Extra documentation for tables, footnotes, and more.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Plain text

  • HTML 태그를 사용할 수 없습니다.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 줄과 단락은 자동으로 분리됩니다.
댓글 첨부 파일
이 댓글에 이미지나 파일을 업로드 합니다.
파일 크기는 8 MB보다 작아야 합니다.
허용할 파일 형식: txt pdf doc xls gif jpg jpeg mp3 png rar zip.
CAPTCHA
이것은 자동으로 스팸을 올리는 것을 막기 위해서 제공됩니다.