[완료]net-snmp에서 perl 깔기
페도라10에 net-snmp5.3.3을 깔았습니다.
net-snmp에서 기본으로 제공하는 example MIB인 NET-SNMP-EXAMPLE-MIB.txt를 mib2c로 컴파일하는 중에 아래와 같은 에러가 났습니다.
[root@localhost mibs]# mib2c netSnmpExamples
ERROR: You don't have the SNMP perl module installed. Please obtain
this by getting the latest source release of the net-snmp toolkit from
http://www.net-snmp.org/download/ . Once you download the source and
unpack it, the perl module is contained in the perl/SNMP directory.
See the README file there for instructions.
perl이 안깔렸다는 소린거 같아서
[root@localhost mibs]# yum -y install net-snmp-perl
[root@localhost mibs]# yum -y install net-snmp-libs
등을 깔았습니다. 최신 버젼이 깔려서 더 이상 깔게 없다는 메시지가 나오더군요..
할 수 없이
net-snmp의 perl 디렉토리로 가서 net-snmp perl모듈을 깔아주기로 했습니다.
아래는 그 과정입니다.
[root@localhost mibs]# cd /usr/local/src/net-snmp-5.3.3/perl
[root@localhost perl]# perl Makefile.PL
Writing Makefile for NetSNMP::default_store
Writing Makefile for NetSNMP::ASN
Writing Makefile for NetSNMP::OID
Writing Makefile for NetSNMP::agent::default_store
Writing Makefile for NetSNMP::agent
Writing Makefile for SNMP
Warning: prerequisite NetSNMP::OID 5.02 not found.
Writing Makefile for NetSNMP::TrapReceiver
Writing Makefile for Bundle::NetSNMP
[root@localhost perl]# make
make[1]: Entering directory `/usr/local/src/net-snmp-5.3.3/perl/default_store'
gcc -c -g -O2 -Dlinux -I/usr/include/rpm -I. -I/usr/local/include -D_REENTRANT -D_GNU_SOURCE -DPERL_USE_SAFE_PUTENV -DDEBUGGING -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -DVERSION=\"5.0303\" -DXS_VERSION=\"5.0303\" -fPIC "-I/usr/lib/perl5/5.10.0/i386-linux-thread-multi/CORE" default_store.c
default_store.xs: In function ‘constant_NETSNMP_DS_S’:
default_store.xs:50: warning: label ‘not_there’ defined but not used
default_store.xs: In function ‘constant_NETSNMP_DS_LIB_N’:
default_store.xs:79: warning: label ‘not_there’ defined but not used
default_store.xs: In function ‘constant_NETSNMP_DS_LIB_O’:
default_store.xs:108: warning: label ‘not_there’ defined but not used
default_store.xs: In function ‘constant_NETSNMP_DS_LIB_PRINT_N’:
default_store.xs:141: warning: label ‘not_there’ defined but not used
default_store.xs: In function ‘constant_NETSNMP_DS_LIB_PRIN’:
default_store.xs:202: warning: label ‘not_there’ defined but not used
default_store.xs: In function ‘constant_NETSNMP_DS_LIB_PR’:
default_store.xs:231: warning: label ‘not_there’ defined but not used
default_store.xs: In function ‘constant_NETSNMP_DS_LIB_P’:
default_store.xs:262: warning: label ‘not_there’ defined but not used
default_store.xs: In function ‘constant_NETSNMP_DS_LIB_Q’:
default_store.xs:295: warning: label ‘not_there’ defined but not used
default_store.xs: In function ‘constant_NETSNMP_DS_LIB_A’:
default_store.xs:332: warning: label ‘not_there’ defined but not used
default_store.xs: In function ‘constant_NETSNMP_DS_LIB_RE’:
default_store.xs:369: warning: label ‘not_there’ defined but not used
default_store.xs: In function ‘constant_NETSNMP_DS_LIB_R’:
default_store.xs:392: warning: label ‘not_there’ defined but not used
default_store.xs: In function ‘constant_NETSNMP_DS_LIB_SE’:
default_store.xs:433: warning: label ‘not_there’ defined but not used
default_store.xs: In function ‘constant_NETSNMP_DS_LIB_S’:
default_store.xs:464: warning: label ‘not_there’ defined but not used
default_store.xs: In function ‘constant_NETSNMP_DS_LIB_CON’:
default_store.xs:493: warning: label ‘not_there’ defined but not used
default_store.xs: In function ‘constant_NETSNMP_DS_LIB_C’:
default_store.xs:522: warning: label ‘not_there’ defined but not used
default_store.xs: In function ‘constant_NETSNMP_DS_LIB_DO’:
default_store.xs:563: warning: label ‘not_there’ defined but not used
default_store.xs: In function ‘constant_NETSNMP_DS_LIB_D’:
default_store.xs:594: warning: label ‘not_there’ defined but not used
default_store.xs: In function ‘constant_NETSNMP_DS_LIB_E’:
default_store.xs:623: warning: label ‘not_there’ defined but not used
default_store.xs: In function ‘constant_NETSNMP_DS_LIB_H’:
default_store.xs:656: warning: label ‘not_there’ defined but not used
default_store.xs: In function ‘constant_NETSNMP_DS_LIB_MIB_’:
default_store.xs:709: warning: label ‘not_there’ defined but not used
default_store.xs: In function ‘constant_NETSNMP_DS_LIB_M’:
default_store.xs:738: warning: label ‘not_there’ defined but not used
default_store.xs: In function ‘constant_NETSNMP_DS_LIB_’:
default_store.xs:783: warning: label ‘not_there’ defined but not used
default_store.xs: In function ‘constant_NETSNMP_DS_L’:
default_store.xs:812: warning: label ‘not_there’ defined but not used
default_store.xs: In function ‘constant_NETSNMP_DS_M’:
default_store.xs:845: warning: label ‘not_there’ defined but not used
default_store.xs: In function ‘constant’:
default_store.xs:891: warning: label ‘not_there’ defined but not used
default_store.c: At top level:
default_store.xs:9: warning: ‘not_here’ defined but not used
Running Mkbootstrap for NetSNMP::default_store ()
chmod 644 default_store.bs
rm -f ../blib/arch/auto/NetSNMP/default_store/default_store.so
gcc -shared -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -L/usr/local/lib default_store.o -o ../blib/arch/auto/NetSNMP/default_store/default_store.so \
-L/usr/local/lib -lnetsnmp -lcrypto -lm \
chmod 755 ../blib/arch/auto/NetSNMP/default_store/default_store.so
cp default_store.bs ../blib/arch/auto/NetSNMP/default_store/default_store.bs
chmod 644 ../blib/arch/auto/NetSNMP/default_store/default_store.bs
Manifying ../blib/man3/NetSNMP::default_store.3pm
make[1]: Leaving directory `/usr/local/src/net-snmp-5.3.3/perl/default_store'
make[1]: Entering directory `/usr/local/src/net-snmp-5.3.3/perl/ASN'
gcc -c -g -O2 -Dlinux -I/usr/include/rpm -I. -I/usr/local/include -D_REENTRANT -D_GNU_SOURCE -DPERL_USE_SAFE_PUTENV -DDEBUGGING -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -DVERSION=\"5.0303\" -DXS_VERSION=\"5.0303\" -fPIC "-I/usr/lib/perl5/5.10.0/i386-linux-thread-multi/CORE" ASN.c
ASN.xs: In function ‘constant_ASN_O’:
ASN.xs:49: warning: label ‘not_there’ defined but not used
ASN.xs: In function ‘constant_ASN_B’:
ASN.xs:78: warning: label ‘not_there’ defined but not used
ASN.xs: In function ‘constant_ASN_S’:
ASN.xs:111: warning: label ‘not_there’ defined but not used
ASN.xs: In function ‘constant_ASN_C’:
ASN.xs:144: warning: label ‘not_there’ defined but not used
ASN.xs: In function ‘constant_ASN_U’:
ASN.xs:177: warning: label ‘not_there’ defined but not used
ASN.xs: In function ‘constant_ASN_IN’:
ASN.xs:210: warning: label ‘not_there’ defined but not used
ASN.xs: In function ‘constant_ASN_I’:
ASN.xs:233: warning: label ‘not_there’ defined but not used
ASN.xs: In function ‘constant’:
ASN.xs:323: warning: label ‘not_there’ defined but not used
ASN.c: At top level:
ASN.xs:12: warning: ‘not_here’ defined but not used
Running Mkbootstrap for NetSNMP::ASN ()
chmod 644 ASN.bs
rm -f ../blib/arch/auto/NetSNMP/ASN/ASN.so
gcc -shared -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -L/usr/local/lib ASN.o -o ../blib/arch/auto/NetSNMP/ASN/ASN.so \
-L/usr/local/lib -lnetsnmp -lcrypto -lm \
chmod 755 ../blib/arch/auto/NetSNMP/ASN/ASN.so
cp ASN.bs ../blib/arch/auto/NetSNMP/ASN/ASN.bs
chmod 644 ../blib/arch/auto/NetSNMP/ASN/ASN.bs
Manifying ../blib/man3/NetSNMP::ASN.3pm
make[1]: Leaving directory `/usr/local/src/net-snmp-5.3.3/perl/ASN'
make[1]: Entering directory `/usr/local/src/net-snmp-5.3.3/perl/OID'
gcc -c -g -O2 -Dlinux -I/usr/include/rpm -I. -I/usr/local/include -D_REENTRANT -D_GNU_SOURCE -DPERL_USE_SAFE_PUTENV -DDEBUGGING -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -DVERSION=\"5.0303\" -DXS_VERSION=\"5.0303\" -fPIC "-I/usr/lib/perl5/5.10.0/i386-linux-thread-multi/CORE" OID.c
OID.xs: In function ‘XS_netsnmp_oidPtr_get_indexes’:
OID.xs:361: warning: pointer targets in passing argument 2 of ‘Perl_newSVpv’ differ in signedness
OID.c: At top level:
OID.xs:20: warning: ‘not_here’ defined but not used
OID.xs:164: warning: ‘__tp_sprint_num_objid’ defined but not used
OID.c: In function ‘XS_netsnmp_oidPtr_get_indexes’:
OID.xs:265: warning: ‘tpe’ may be used uninitialized in this function
OID.xs:265: note: ‘tpe’ was declared here
Running Mkbootstrap for NetSNMP::OID ()
chmod 644 OID.bs
rm -f ../blib/arch/auto/NetSNMP/OID/OID.so
gcc -shared -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -L/usr/local/lib OID.o -o ../blib/arch/auto/NetSNMP/OID/OID.so \
-L/usr/local/lib -lnetsnmp -lcrypto -lm \
chmod 755 ../blib/arch/auto/NetSNMP/OID/OID.so
cp OID.bs ../blib/arch/auto/NetSNMP/OID/OID.bs
chmod 644 ../blib/arch/auto/NetSNMP/OID/OID.bs
Manifying ../blib/man3/NetSNMP::OID.3pm
make[1]: Leaving directory `/usr/local/src/net-snmp-5.3.3/perl/OID'
make[1]: Entering directory `/usr/local/src/net-snmp-5.3.3/perl/agent'
make[2]: Entering directory `/usr/local/src/net-snmp-5.3.3/perl/agent/default_store'
gcc -c -g -O2 -Dlinux -I/usr/include/rpm -I. -I/usr/local/include -D_REENTRANT -D_GNU_SOURCE -DPERL_USE_SAFE_PUTENV -DDEBUGGING -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -DVERSION=\"5.0303\" -DXS_VERSION=\"5.0303\" -fPIC "-I/usr/lib/perl5/5.10.0/i386-linux-thread-multi/CORE" default_store.c
default_store.xs: In function ‘constant_NETSNMP_DS_AGENT_P’:
default_store.xs:46: warning: label ‘not_there’ defined but not used
default_store.xs: In function ‘constant_NETSNMP_DS_AGENT_A’:
default_store.xs:79: warning: label ‘not_there’ defined but not used
default_store.xs: In function ‘constant_NETSNMP_DS_AGENT_M’:
default_store.xs:112: warning: label ‘not_there’ defined but not used
default_store.xs: In function ‘constant’:
default_store.xs:222: warning: label ‘not_there’ defined but not used
default_store.c: At top level:
default_store.xs:9: warning: ‘not_here’ defined but not used
Running Mkbootstrap for NetSNMP::agent::default_store ()
chmod 644 default_store.bs
rm -f ../../blib/arch/auto/NetSNMP/agent/default_store/default_store.so
gcc -shared -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -L/usr/local/lib default_store.o -o ../../blib/arch/auto/NetSNMP/agent/default_store/default_store.so \
-L/usr/local/lib -lnetsnmp -lcrypto -lm \
chmod 755 ../../blib/arch/auto/NetSNMP/agent/default_store/default_store.so
cp default_store.bs ../../blib/arch/auto/NetSNMP/agent/default_store/default_store.bs
chmod 644 ../../blib/arch/auto/NetSNMP/agent/default_store/default_store.bs
Manifying ../../blib/man3/NetSNMP::agent::default_store.3pm
make[2]: Leaving directory `/usr/local/src/net-snmp-5.3.3/perl/agent/default_store'
gcc -c -g -O2 -Dlinux -I/usr/include/rpm -I. -I/usr/local/include -D_REENTRANT -D_GNU_SOURCE -DPERL_USE_SAFE_PUTENV -DDEBUGGING -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -DVERSION=\"5.0303\" -DXS_VERSION=\"5.0303\" -fPIC "-I/usr/lib/perl5/5.10.0/i386-linux-thread-multi/CORE" agent.c
agent.xs: In function ‘constant_MODE_G’:
agent.xs:74: warning: label ‘not_there’ defined but not used
agent.xs: In function ‘constant_MODE_SET_R’:
agent.xs:107: warning: label ‘not_there’ defined but not used
agent.xs: In function ‘constant_SNMP_ERR’:
agent.xs:284: warning: label ‘not_there’ defined but not used
agent.xs: In function ‘constant_MODE_S’:
agent.xs:345: warning: label ‘not_there’ defined but not used
agent.xs: In function ‘constant’:
agent.xs:375: warning: label ‘not_there’ defined but not used
agent.xs: In function ‘handler_wrapper’:
agent.xs:386: warning: unused variable ‘intret’
agent.c: In function ‘XS_NetSNMP__agent_shutdown’:
agent.c:617: warning: unused variable ‘me’
agent.c: In function ‘XS_NetSNMP__agent_errlog’:
agent.c:640: warning: unused variable ‘me’
agent.xs: In function ‘XS_NetSNMP__agent__netsnmp_request_infoPtr_getValue’:
agent.xs:676: warning: pointer targets in assignment differ in signedness
agent.xs: In function ‘XS_NetSNMP__agent__netsnmp_request_infoPtr_setValue’:
agent.xs:949: warning: pointer targets in passing argument 3 of ‘snmp_set_var_typed_value’ differ in signedness
agent.xs:771: warning: unused variable ‘oo_len’
agent.xs:771: warning: unused variable ‘ob_len’
agent.xs:770: warning: unused variable ‘oidbuf’
agent.c: In function ‘XS_NetSNMP__agent__netsnmp_request_infoPtr_setError’:
agent.xs:1020: warning: unused variable ‘myoid_len’
agent.xs:1019: warning: unused variable ‘myoid’
agent.c: At top level:
agent.xs:28: warning: ‘have_done_agent’ defined but not used
agent.xs:29: warning: ‘have_done_lib’ defined but not used
agent.xs:33: warning: ‘not_here’ defined but not used
Running Mkbootstrap for NetSNMP::agent ()
chmod 644 agent.bs
rm -f ../blib/arch/auto/NetSNMP/agent/agent.so
gcc -shared -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -L/usr/local/lib agent.o -o ../blib/arch/auto/NetSNMP/agent/agent.so \
-L/usr/local/lib -lnetsnmpmibs -lnetsnmpagent -lnetsnmphelpers -lnetsnmp -ldl -lrpm -lrpmio -lpopt -lz -lcrypto -lm \
chmod 755 ../blib/arch/auto/NetSNMP/agent/agent.so
cp agent.bs ../blib/arch/auto/NetSNMP/agent/agent.bs
chmod 644 ../blib/arch/auto/NetSNMP/agent/agent.bs
Manifying ../blib/man3/NetSNMP::netsnmp_request_infoPtr.3pm
Manifying ../blib/man3/NetSNMP::agent.3pm
make[1]: Leaving directory `/usr/local/src/net-snmp-5.3.3/perl/agent'
make[1]: Entering directory `/usr/local/src/net-snmp-5.3.3/perl/SNMP'
gcc -c -g -O2 -Dlinux -I/usr/include/rpm -I. -I/usr/local/include -D_REENTRANT -D_GNU_SOURCE -DPERL_USE_SAFE_PUTENV -DDEBUGGING -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -DVERSION=\"5.0303\" -DXS_VERSION=\"5.0303\" -fPIC "-I/usr/lib/perl5/5.10.0/i386-linux-thread-multi/CORE" SNMP.c
SNMP.xs: In function ‘XS_SNMP__translate_obj’:
SNMP.xs:4768: warning: format ‘%s’ expects type ‘char *’, but argument 2 has type ‘int’
SNMP.xs: In function ‘XS_SNMP__MIB__NODE_FETCH’:
SNMP.xs:5217: warning: value computed is not used
SNMP.xs:5218: warning: value computed is not used
SNMP.xs:5284: warning: value computed is not used
SNMP.c: At top level:
SNMP.xs:946: warning: ‘__oid2tp’ defined but not used
Running Mkbootstrap for SNMP ()
chmod 644 SNMP.bs
rm -f ../blib/arch/auto/SNMP/SNMP.so
gcc -shared -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -L/usr/local/lib SNMP.o -o ../blib/arch/auto/SNMP/SNMP.so \
-L/usr/local/lib -lnetsnmp -lcrypto -lm \
chmod 755 ../blib/arch/auto/SNMP/SNMP.so
cp SNMP.bs ../blib/arch/auto/SNMP/SNMP.bs
chmod 644 ../blib/arch/auto/SNMP/SNMP.bs
Manifying ../blib/man3/SNMP.3
make[1]: Leaving directory `/usr/local/src/net-snmp-5.3.3/perl/SNMP'
make[1]: Entering directory `/usr/local/src/net-snmp-5.3.3/perl/TrapReceiver'
gcc -c -I. -g -O2 -Dlinux -I/usr/include/rpm -I. -I/usr/local/include -D_REENTRANT -D_GNU_SOURCE -DPERL_USE_SAFE_PUTENV -DDEBUGGING -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -DVERSION=\"5.0303\" -DXS_VERSION=\"5.0303\" -fPIC "-I/usr/lib/perl5/5.10.0/i386-linux-thread-multi/CORE" TrapReceiver.c
In file included from TrapReceiver.xs:6:
ppport.h:227:1: warning: "PERL_UNUSED_DECL" redefined
In file included from TrapReceiver.xs:3:
/usr/lib/perl5/5.10.0/i386-linux-thread-multi/CORE/perl.h:299:1: warning: this is the location of the previous definition
TrapReceiver.xs: In function ‘perl_trapd_handler’:
TrapReceiver.xs:44: warning: unused variable ‘my_perl’
TrapReceiver.xs:65: warning: value computed is not used
TrapReceiver.xs:66: warning: value computed is not used
TrapReceiver.xs:67: warning: value computed is not used
TrapReceiver.xs:68: warning: value computed is not used
TrapReceiver.xs:69: warning: value computed is not used
TrapReceiver.xs:70: warning: value computed is not used
TrapReceiver.xs:71: warning: value computed is not used
TrapReceiver.xs:73: warning: value computed is not used
TrapReceiver.xs:74: warning: value computed is not used
TrapReceiver.xs:75: warning: value computed is not used
TrapReceiver.xs:77: warning: pointer targets in passing argument 2 of ‘Perl_newSVpv’ differ in signedness
TrapReceiver.xs:77: warning: value computed is not used
TrapReceiver.xs:80: warning: pointer targets in passing argument 2 of ‘Perl_newSVpv’ differ in signedness
TrapReceiver.xs:80: warning: value computed is not used
TrapReceiver.xs:83: warning: value computed is not used
TrapReceiver.xs:86: warning: pointer targets in passing argument 2 of ‘Perl_newSVpv’ differ in signedness
TrapReceiver.xs:86: warning: value computed is not used
TrapReceiver.xs:93: warning: value computed is not used
TrapReceiver.xs:142: warning: value computed is not used
TrapReceiver.xs:140: warning: unused variable ‘sv’
TrapReceiver.xs:168: warning: pointer targets in passing argument 2 of ‘Perl_newSVpvn’ differ in signedness
TrapReceiver.xs:191: warning: format ‘%lu’ expects type ‘long unsigned int’, but argument 5 has type ‘unsigned int’
TrapReceiver.xs:217: warning: unused variable ‘my_perl’
TrapReceiver.xs:35: warning: unused variable ‘rarg’
TrapReceiver.xs:34: warning: unused variable ‘arg’
TrapReceiver.c: In function ‘XS_NetSNMP__TrapReceiver_constant’:
TrapReceiver.c:243: warning: unused variable ‘Perl___notused’
TrapReceiver.c: In function ‘XS_NetSNMP__TrapReceiver_register’:
TrapReceiver.xs:234: warning: unused variable ‘gotit’
TrapReceiver.c:355: warning: unused variable ‘Perl___notused’
TrapReceiver.c: In function ‘boot_NetSNMP__TrapReceiver’:
TrapReceiver.c:422: warning: unused variable ‘Perl___notused’
Running Mkbootstrap for NetSNMP::TrapReceiver ()
chmod 644 TrapReceiver.bs
rm -f ../blib/arch/auto/NetSNMP/TrapReceiver/TrapReceiver.so
gcc -shared -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -L/usr/local/lib TrapReceiver.o -o ../blib/arch/auto/NetSNMP/TrapReceiver/TrapReceiver.so \
\
chmod 755 ../blib/arch/auto/NetSNMP/TrapReceiver/TrapReceiver.so
cp TrapReceiver.bs ../blib/arch/auto/NetSNMP/TrapReceiver/TrapReceiver.bs
chmod 644 ../blib/arch/auto/NetSNMP/TrapReceiver/TrapReceiver.bs
Manifying ../blib/man3/NetSNMP::TrapReceiver.3pm
make[1]: Leaving directory `/usr/local/src/net-snmp-5.3.3/perl/TrapReceiver'
[root@localhost perl]# make install
make[1]: Entering directory `/usr/local/src/net-snmp-5.3.3/perl/default_store'
make[1]: Leaving directory `/usr/local/src/net-snmp-5.3.3/perl/default_store'
make[1]: Entering directory `/usr/local/src/net-snmp-5.3.3/perl/ASN'
make[1]: Leaving directory `/usr/local/src/net-snmp-5.3.3/perl/ASN'
make[1]: Entering directory `/usr/local/src/net-snmp-5.3.3/perl/OID'
make[1]: Leaving directory `/usr/local/src/net-snmp-5.3.3/perl/OID'
make[1]: Entering directory `/usr/local/src/net-snmp-5.3.3/perl/agent'
make[2]: Entering directory `/usr/local/src/net-snmp-5.3.3/perl/agent/default_store'
make[2]: Leaving directory `/usr/local/src/net-snmp-5.3.3/perl/agent/default_store'
make[1]: Leaving directory `/usr/local/src/net-snmp-5.3.3/perl/agent'
make[1]: Entering directory `/usr/local/src/net-snmp-5.3.3/perl/SNMP'
make[1]: Leaving directory `/usr/local/src/net-snmp-5.3.3/perl/SNMP'
make[1]: Entering directory `/usr/local/src/net-snmp-5.3.3/perl/TrapReceiver'
make[1]: Leaving directory `/usr/local/src/net-snmp-5.3.3/perl/TrapReceiver'
Files found in blib/arch: installing files in blib/lib into architecture dependent library tree
Writing /usr/local/lib/perl5/site_perl/5.10.0/i386-linux-thread-multi/auto/Bundle/NetSNMP/.packlist
Appending installation info to /usr/lib/perl5/5.10.0/i386-linux-thread-multi/perllocal.pod
[root@localhost perl]# make test
make[1]: Entering directory `/usr/local/src/net-snmp-5.3.3/perl/default_store'
make[1]: Leaving directory `/usr/local/src/net-snmp-5.3.3/perl/default_store'
make[1]: Entering directory `/usr/local/src/net-snmp-5.3.3/perl/ASN'
make[1]: Leaving directory `/usr/local/src/net-snmp-5.3.3/perl/ASN'
make[1]: Entering directory `/usr/local/src/net-snmp-5.3.3/perl/OID'
make[1]: Leaving directory `/usr/local/src/net-snmp-5.3.3/perl/OID'
make[1]: Entering directory `/usr/local/src/net-snmp-5.3.3/perl/agent'
make[2]: Entering directory `/usr/local/src/net-snmp-5.3.3/perl/agent/default_store'
make[2]: Leaving directory `/usr/local/src/net-snmp-5.3.3/perl/agent/default_store'
make[1]: Leaving directory `/usr/local/src/net-snmp-5.3.3/perl/agent'
make[1]: Entering directory `/usr/local/src/net-snmp-5.3.3/perl/SNMP'
make[1]: Leaving directory `/usr/local/src/net-snmp-5.3.3/perl/SNMP'
make[1]: Entering directory `/usr/local/src/net-snmp-5.3.3/perl/TrapReceiver'
make[1]: Leaving directory `/usr/local/src/net-snmp-5.3.3/perl/TrapReceiver'
make[1]: Entering directory `/usr/local/src/net-snmp-5.3.3/perl/default_store'
PERL_DL_NONLAZY=1 /usr/bin/perl "-I../blib/lib" "-I../blib/arch" test.pl
1..64
Can't load '../blib/arch/auto/NetSNMP/default_store/default_store.so' for module NetSNMP::default_store: libnetsnmp.so.10: 동적 오브젝트 파일을 열 수 없습니다: 그런 파일이나 디렉토리가 없습니다 at /usr/lib/perl5/5.10.0/i386-linux-thread-multi/DynaLoader.pm line 203. at test.pl line 71
Compilation failed in require at test.pl line 71.
BEGIN failed--compilation aborted at test.pl line 71.
not ok 1
make[1]: *** [test_dynamic] 오류 2
make[1]: Leaving directory `/usr/local/src/net-snmp-5.3.3/perl/default_store'
make: *** [subdirs-test] 오류 2
[root@localhost perl]#
../blib/arch/auto/NetSNMP/default_store/default_store.so가 있는 지 확인하고
/usr/lib/perl5/5.10.0/i386-linux-thread-multi/에 libnetsnmp.so.10이 있는 지 확인하고 없으면 복사해 주고
../blib/arch/auto/NetSNMP/default_store/에도 libnetsnmp.so.10을 복사해서 넣어주고
다했는데도...
위와 같은 에러가 계속 납니다
예전에도 이런 일이 있었는데 그때는 libnetsnmp.so.10을 복사해서 넣어주는 걸로 끝났던거 같거든요
이 문제를 어떻게 해결할 수 있을까요
도움을 좀 주십시요.
libnetsnmp.so.10을 모든 library디렉토리에 복사해주면 됩니다.
libnetsnmp.so.10을 /lib, /usr/lib, /usr/local/src/net-snmp5.3.3./perl/blib/arch/auto/NetSNMP/default_store 에 복사해 주고..
그 외에 libnetsnmpagent.so.10, libnetsnmphelpers.so.10등을 /lib, /usr/lib/, /usr/local/src/net-snmp5.3.3./perl/blib/arch/auto/NetSNMP/agent 에 복사해 주니 아무 에러없이 perl이 설치되었습니다
댓글 달기