I would like to know whether net-snmp installation on cygwin succeeds..
If so, what is the procedure?
 
I downloaded cygwin latest version from cygwin.com and net-snmp-5.2.1
from sourceforge.net.

Already I am having active-state perl too.

Now if I install net-snmp perl modules, 'make' failed.


Follwing is the output of make.

make[1]: Entering directory `/home/net-snmp-5.2.1/perl/default_store'
gcc -c   -I../../include -g -O2 -Dcygwin -I. -I/usr/local/include -DPERL_USE
_SAF
E_PUTENV -fno-strict-aliasing -pipe -I/usr/local/include -DUSEIMPORTLIB -O3 
  -D
VERSION=\"5.2.1\" -DXS_VERSION=\"5.2.1\"  "-I/usr/lib/perl5/5.8/cygwin/CORE"
d
efault_store.c
Running Mkbootstrap for NetSNMP::default_store ()
chmod 644 default_store.bs
rm -f ../blib/arch/auto/NetSNMP/default_store/default_store.dll
LD_RUN_PATH="" ld2  -s -L/usr/local/lib default_store.o  -o
../blib/arch/auto/Ne
tSNMP/default_store/default_store.dll
/usr/lib/perl5/5.8/cygwin/CORE/libperl.dl
l.a -L/home/net-snmp-5.2.1/perl/default_store/../../snmplib/.libs -L/home
//net-snmp-5.2.1/perl/default_store/../../snmplib -L/usr/local/lib -lnetsn
mp -lcrypto -lm
gcc -shared -o
 default_store.dll -Wl,--out-implib=libdefault_store.dll.a -Wl,--
export-all-symbols -Wl,--enable-auto-import -Wl,--stack,8388608 -Wl,--enable
-aut
o-image-base \
-s -L/usr/local/lib default_store.o
/usr/lib/perl5/5.8/cygwin/CORE/libperl.dll.
a -L/home/net-snmp-5.2.1/perl/default_store/../../snmplib/.libs -L/home/
net-snmp-5.2.1/perl/default_store/../../snmplib -L/usr/local/lib -lnetsnmp
 -lcrypto -lm
Creating library file: libdefault_store.dll.a
mv default_store.dll libdefault_store.dll.a
../blib/arch/auto/NetSNMP/default_st
ore/
chmod 755 ../blib/arch/auto/NetSNMP/default_store/default_store.dll
cp default_store.bs ../blib/arch/auto/NetSNMP
/default_store/default_store.bs
chmod 644 ../blib/arch/auto/NetSNMP/default_store/default_store.bs
make[1]: Leaving directory `/home/net-snmp-5.2.1/perl/default_store'
make[1]: Entering directory `/home/net-snmp-5.2.1/perl/ASN'
gcc -c   -I../../include -g -O2 -Dcygwin -I. -I/usr/local/include -DPERL_USE
_SAF
E_PUTENV -fno-strict-aliasing -pipe -I/usr/local/include -DUSEIMPORTLIB -O3 
  -D
VERSION=\"5.2.1\" -DXS_VERSION=\"5.2.1\"  "-I/usr/lib/perl5/5.8/cygwin/CORE"
A
SN.c
Running Mkbootstrap for NetSNMP::ASN ()
chmod 644 ASN.bs
rm -f ../blib/arch/auto/NetSNMP/ASN/ASN.dll
LD_RUN_PATH="" ld2  -s -L/usr/local/lib ASN.o  -o
../blib/arch/auto/NetSNMP/ASN/
ASN.dll  /usr/lib/perl5/5.8/cygwin/CORE/libperl.dll.a -L/home/net-snmp-5.
2.1/perl/ASN/../../snmplib/.libs -L/home/net-snmp-5.2.1/perl/ASN/../../sn
mplib -L/usr/local/lib -lnetsnmp -lcrypto -lm
gcc -shared -o
 ASN.dll -Wl,--out-implib=libASN.dll.a -Wl,--export-all-symbols -
Wl,--enable-auto-import -Wl,--stack,8388608 -Wl,--enable-auto-image-base \
-s -L/usr/local/lib ASN.o
 /usr/lib/perl5/5.8/cygwin/CORE/libperl.dll.a -L/home/
/net-snmp-5.2.1/perl/ASN/../../snmplib/.libs -L/home/net-snmp-5.2.1
/perl/ASN/../../snmplib -L/usr/local/lib -lnetsnmp -lcrypto -lm
Creating library file: libASN.dll.a
mv ASN.dll libASN.dll.a ../blib/arch/auto/NetSNMP/ASN/
chmod 755 ../blib/arch/auto/NetSNMP/ASN/ASN.dll
cp ASN.bs ../blib/arch/auto/NetSNMP/ASN/ASN.bs
chmod 644 ../blib/arch/auto/NetSNMP/ASN/ASN.bs
make[1]: Leaving directory `/home/net-snmp-5.2.1/perl/ASN'
make[1]: Entering directory `/home/net-snmp-5.2.1/perl/OID'
gcc -c   -I../../include -g -O2 -Dcygwin -I. -I/usr/local/include -DPERL_USE
_SAF
E_PUTENV -fno-strict-aliasing -pipe -I/usr/local/include -DUSEIMPORTLIB -O3 
  -D
VERSION=\"5.2.1\" -DXS_VERSION=\"5.2.1\"  "-I/usr/lib/perl5/5.8/cygwin/CORE"
O
ID.c
Running Mkbootstrap for NetSNMP::OID ()
chmod 644 OID.bs
rm -f ../blib/arch/auto/NetSNMP/OID/OID.dll
LD_RUN_PATH="" ld2  -s -L/usr/local/lib OID.o  -o
../blib/arch/auto/NetSNMP/OID/
OID.dll  /usr/lib/perl5/5.8/cygwin/CORE/libperl.dll.a -L/home/net-snmp-5.
2.1/perl/OID/../../snmplib/.libs -L/home/net-snmp-5.2.1/perl/OID/../../sn
mplib -L/usr/local/lib -lnetsnmp -lcrypto -lm
gcc -shared -o
 OID.dll -Wl,--out-implib=libOID.dll.a -Wl,--export-all-symbols -
Wl,--enable-auto-import -Wl,--stack,8388608 -Wl,--enable-auto-image-base \
-s -L/usr/local/lib OID.o
 /usr/lib/perl5/5.8/cygwin/CORE/libperl.dll.a -L/home/
/net-snmp-5.2.1/perl/OID/../../snmplib/.libs -L/home/net-snmp-5.2.1
/perl/OID/../../snmplib -L/usr/local/lib -lnetsnmp -lcrypto -lm
Creating library file: libOID.dll.a
mv OID.dll libOID.dll.a ../blib/arch/auto/NetSNMP/OID/
chmod 755 ../blib/arch/auto/NetSNMP/OID/OID.dll
cp OID.bs ../blib/arch/auto/NetSNMP/OID/OID.bs
chmod 644 ../blib/arch/auto/NetSNMP/OID/OID.bs
make[1]: Leaving directory `/home/net-snmp-5.2.1/perl/OID'
make[1]: Entering directory `/home/net-snmp-5.2.1/perl/agent'
make[2]: Entering directory `/home/net-snmp-5.2.1/perl/agent/default_stor
e'
gcc -c   -I../../../include -g -O2 -Dcygwin -I. -I/usr/local/include -DPERL_
USE_
SAFE_PUTENV -fno-strict-aliasing -pipe -I/usr/local/include -DUSEIMPORTLIB -
O3
 -DVERSION=\"5.2.1\" -DXS_VERSION=\"5.2.1\"  "-I/usr/lib/perl5/5.8/cygwin
/CORE"
 default_store.c
Running Mkbootstrap for NetSNMP::agent::default_store ()
chmod 644 default_store.bs
rm -f ../../blib/arch/auto/NetSNMP/agent/default_store/default_store.dll
LD_RUN_PATH="" ld2  -s -L/usr/local/lib default_store.o  -o
../../blib/arch/auto
/NetSNMP/agent/default_store/default_store.dll
/usr/lib/perl5/5.8/cygwin/CORE/l
ibperl.dll.a -L/home/net-snmp-5.2.1/perl/agent/default_store/../../../snm
plib/.libs -L/home/net-snmp-5.2.1/perl/agent/default_store/../../../snmpl
ib -L/usr/local/lib -lnetsnmp -lcrypto -lm
gcc -shared -o
 default_store.dll -Wl,--out-implib=libdefault_store.dll.a -Wl,--
export-all-symbols -Wl,--enable-auto-import -Wl,--stack,8388608 -Wl,--enable
-aut
o-image-base \
-s -L/usr/local/lib default_store.o
/usr/lib/perl5/5.8/cygwin/CORE/libperl.dll.
a -L/home/net-snmp-5.2.1/perl/agent/default_store/../../../snmplib/.libs
-L/home/net-snmp-5.2.1/perl/agent/default_store/../../../snmplib -L/usr/l
ocal/lib -lnetsnmp -lcrypto -lm
Creating library file: libdefault_store.dll.a
mv default_store.dll libdefault_store.dll.a
../../blib/arch/auto/NetSNMP/agent/d
efault_store/
chmod 755 ../../blib/arch/auto/NetSNMP/agent/default_store/default_store.dll
cp default_store.bs
../../blib/arch/auto/NetSNMP/agent/default_store/default_sto
re.bs
chmod 644 ../../blib/arch/auto/NetSNMP/agent/default_store/default_store.bs
make[2]: Leaving directory `/home/net-snmp-5.2.1/perl/agent/default_store
'
gcc -c   -I../../include -g -O2 -Dcygwin -I. -I/usr/local/include -DPERL_USE
_SAF
E_PUTENV -fno-strict-aliasing -pipe -I/usr/local/include -DUSEIMPORTLIB -O3 
  -D
VERSION=\"5.2.1\" -DXS_VERSION=\"5.2.1\"  "-I/usr/lib/perl5/5.8/cygwin
/CORE"   a
gent.c
agent.xs: In function `XS_netsnmp_handler_registrationPtr_register':
agent.xs:525: warning: cast to pointer from integer of different size
agent.xs: In function `XS_netsnmp_handler_registrationPtr_getRootOID':
agent.xs:547: warning: cast to pointer from integer of different size
agent.xs: In function `XS_NetSNMP__agent__netsnmp_request_infoPtr_getOID':
agent.xs:586: warning: cast to pointer from integer of different size
agent.xs: In function
`XS_NetSNMP__agent__netsnmp_request_infoPtr_getOIDptr':
agent.xs:617: warning: cast to pointer from integer of different size
agent.xs: In function `XS_NetSNMP__agent__netsnmp_request_infoPtr_getValue':
agent.xs:634: warning: cast to pointer from integer of different size
agent.xs: In function
`XS_NetSNMP__agent__netsnmp_request_infoPtr_getDelegated':

agent.xs:647: warning: cast to pointer from integer of different size
agent.xs: In function
`XS_NetSNMP__agent__netsnmp_request_infoPtr_setDelegated':

agent.xs:659: warning: cast to pointer from integer of different size
agent.xs: In function
`XS_NetSNMP__agent__netsnmp_request_infoPtr_getProcessed':

agent.xs:668: warning: cast to pointer from integer of different size
agent.xs: In function
`XS_NetSNMP__agent__netsnmp_request_infoPtr_setProcessed':

agent.xs:680: warning: cast to pointer from integer of different size
agent.xs: In function
`XS_NetSNMP__agent__netsnmp_request_infoPtr_getStatus':
agent.xs:689: warning: cast to pointer from integer of different size
agent.xs: In function
`XS_NetSNMP__agent__netsnmp_request_infoPtr_setStatus':
agent.xs:701: warning: cast to pointer from integer of different size
agent.xs: In function
`XS_NetSNMP__agent__netsnmp_request_infoPtr_getRepeat':
agent.xs:710: warning: cast to pointer from integer of different size
agent.xs: In function `XS_NetSNMP__agent__netsnmp
_request_infoPtr_setRepeat':
agent.xs:722: warning: cast to pointer from integer of different size
agent.xs: In function `XS_NetSNMP__agent__netsnmp_request_infoPtr_setValue':
agent.xs:741: warning: cast to pointer from integer of different size
agent.xs:885: warning: cast to pointer from integer of different size
agent.xs: In function `XS_NetSNMP__agent__netsnmp_request_infoPtr_setOID':
agent.xs:919: warning: cast to pointer from integer of different size
agent.xs: In function `XS_NetSNMP__agent__netsnmp_request_infoPtr_setError':
agent.xs:934: warning: cast to pointer from integer of different size
agent.xs:935: warning: cast to pointer from integer of different size
agent.xs: In function `XS_NetSNMP__agent__netsnmp_request_infoPtr_next':
agent.xs:946: warning: cast to pointer from integer of different size
agent.xs: In function
`XS_NetSNMP__agent__netsnmp_agent_request_info_getMode':
agent.xs:966: warning: cast to pointer from integer of different size
agent.xs: In function
`XS_NetSNMP__agent__netsnmp_agent_request_info_setMode':
agent.xs:978: warning: cast to pointer from integer of different size
Running Mkbootstrap for NetSNMP::agent ()
chmod 644 agent.bs
rm -f ../blib/arch/auto/NetSNMP/agent/agent.dll
LD_RUN_PATH="" ld2  -s -L/usr/local/lib agent.o  -o
../blib/arch/auto/NetSNMP/ag
ent/agent.dll  /usr/lib/perl5/5.8/cygwin/CORE/libperl.dll.a -L/home/net-s
nmp-5.2.1/perl/agent/../../snmplib/.libs -L/home/net-snmp-5.2.1/perl/agen
t/../../snmplib -L/home/net-snmp-5.2.1/perl/agent/../../agent/.libs -L/ho
me//net-snmp-5.2.1/perl/agent/../../agent -L/home/net-snmp-5.2.1/pe
rl/agent/../../agent/helpers/.libs -L/home/net-snmp-5.2.1/perl/agent/../.
./agent/helpers -L/usr/local/lib -lnetsnmpagent -lnetsnmpmibs -lnetsnmphelpe
rs -
lnetsnmp -lcrypto -lm
gcc -shared -o
 agent.dll -Wl,--out-implib=libagent.dll.a -Wl,--export-all-symbo
ls -Wl,--enable-auto-import -Wl,--stack,8388608 -Wl,--enable-auto-image-base
\
-s -L/usr/local/lib agent.o
 /usr/lib/perl5/5.8/cygwin/CORE/libperl.dll.a -L/hom
e//net-snmp-5.2.1/perl/agent/../../snmplib/.libs -L/home/net-snmp-5
.2.1/perl/agent/../../snmplib -L/home/net-snmp-5.2.1/perl/agent/../../age
nt/.libs -L/home/net-snmp-5.2.1/perl/agent/../../agent -L/home/net
-snmp-5.2.1/perl/agent/../../agent/helpers/.libs -L/home/net-snmp-5.2.1/p
erl/agent/../../agent/helpers -L/usr/local/lib -lnetsnmpagent -lnetsnmpmibs 
-lne
tsnmphelpers -lnetsnmp -lcrypto -lm
Creating library file: libagent.dll.a
/usr/local/lib/libnetsnmpmibs.a(udpTable.o): In function `udpTable_load':
/home/net-snmp-5.2.1/agent/mibgroup/mibII/udpTable.c:568: undefined refer
ence to [EMAIL PROTECTED]'
/home/net-snmp-5.2.1/agent/mibgroup/mibII/udpTable.c:575: undefined refer
ence to [EMAIL PROTECTED]'
/usr/local/lib/libnetsnmpmibs.a(tcpTable.o): In function `tcpTable_load':
/home/net-snmp-5.2.1/agent/mibgroup/mibII/tcpTable.c:659: undefined refer
ence to [EMAIL PROTECTED]'
/home/net-snmp-5.2.1/agent/mibgroup/mibII/tcpTable.c:666: undefined refer
ence to [EMAIL PROTECTED]'
/usr/local/lib/libnetsnmpmibs.a(var_route.o): In function
`var_ipRouteEntry':
/home/net-snmp-5.2.1/agent/mibgroup/mibII/var_route.c:1492: undefined ref
erence to [EMAIL PROTECTED]'
/home/net-snmp-5.2.1/agent/mibgroup/mibII/var_route.c:1499: undefined ref
erence to [EMAIL PROTECTED]'
/usr/local/lib/libnetsnmpmibs.a(extend.o): In function `extend_load_cache':
/home/net-snmp-5.2.1/agent/mibgroup/agent/extend.c:218: undefined referen
ce to `_run_shell_command'
/home/net-snmp-5.2.1/agent/mibgroup/agent/extend.c:220: undefined referen
ce to `_run_exec_command'
/usr/local/lib/libnetsnmpmibs.a(extensible.o): In function
`var_extensible_shell
':
/home/net-snmp-5.2.1/agent/mibgroup/ucd-snmp/extensible.c:459: undefined
reference to `_run_shell_command'
/home/net-snmp-5.2.1/agent/mibgroup/ucd-snmp/extensible.c:456: undefined
reference to `_run_exec_command'
/home/net-snmp-5.2.1/agent/mibgroup/ucd-snmp/extensible.c:470: undefined
reference to `_run_shell_command'
/home/net-snmp-5.2.1/agent/mibgroup/ucd-snmp/extensible.c:467: undefined
reference to `_run_exec_command'
/usr/local/lib/libnetsnmpmibs.a(extensible.o): In function
`var_extensible_reloc
atable':
/home/net-snmp-5.2.1/agent/mibgroup/ucd-snmp/extensible.c:597: undefined
reference to `_run_shell_command'
/home/net-snmp-5.2.1/agent/mibgroup/ucd-snmp/extensible.c:587: undefined
reference to `_run_shell_command'
/home/net-snmp-5.2.1/agent/mibgroup/ucd-snmp/extensible.c:584: undefined
reference to `_run_exec_command'
/home/net-snmp-5.2.1/agent/mibgroup/ucd-snmp/extensible.c:594: undefined
reference to `_run_exec_command'
/usr/local/lib/libnetsnmpmibs.a(udp.o): In function `udp_load':
/home/net-snmp-5.2.1/agent/mibgroup/mibII/udp.c:462: undefined reference
to [EMAIL PROTECTED]'
/usr/local/lib/libnetsnmpmibs.a(icmp.o): In function `icmp_load':
/home/net-snmp-5.2.1/agent/mibgroup/mibII/icmp.c:669: undefined reference
 to [EMAIL PROTECTED]'
/usr/local/lib/libnetsnmpmibs.a(tcp.o): In function `tcp_load':
/home/net-snmp-5.2.1/agent/mibgroup/mibII/tcp.c:649: undefined reference
to [EMAIL PROTECTED]'
/usr/local/lib/libnetsnmpmibs.a(ip.o): In function `ip_load':
/home/net-snmp-5.2.1/agent/mibgroup/mibII/ip.c:748: undefined reference t
o [EMAIL PROTECTED]'
/usr/local/lib/libnetsnmpmibs.a(interfaces.o): In function `var_interfaces':
/home/net-snmp-5.2.1/agent/mibgroup/mibII/interfac es.c:2621: undefined re
ference to [EMAIL PROTECTED]'
/usr/local/lib/libnetsnmpmibs.a(interfaces.o): In function `var_ifEntry':
/home/net-snmp-5.2.1/agent/mibgroup/mibII/interfaces.c:2562: undefined re
ference to [EMAIL PROTECTED]'
/home/net-snmp-5.2.1/agent/mibgroup/mibII/interfaces.c:2654: undefined re
ference to [EMAIL PROTECTED]'
/home/net-snmp-5.2.1/agent/mibgroup/mibII/interfaces.c:2573: undefined re
ference to [EMAIL PROTECTED]'
/usr/local/lib/libnetsnmpmibs.a(interfaces.o): In function `writeIfEntry':
/home/net-snmp-5.2.1/agent/mibgroup/mibII/interfaces.c:2797: undefined re
ference to [EMAIL PROTECTED]'
/usr/local/lib/libnetsnmpmibs.a(at.o): In function `var_atEntry':
/home/net-snmp-5.2.1/agent/mibgroup/mibII/at.c:855: undefined reference t
o [EMAIL PROTECTED]'
/home/net-snmp-5.2.1/agent/mibgroup/mibII/at.c:862: undefined reference t
o [EMAIL PROTECTED]'
/usr/local/lib/libnetsnmpmibs.a(at.o): In function `write_arp':
/home/net-snmp-5.2.1/agent/mibgroup/mibII/at.c:1192: undefined reference
to [EMAIL PROTECTED]'
/home/net-snmp-5.2.1/agent/mibgroup/mibII/at.c:1172: undefined reference
to [EMAIL PROTECTED]'
/home/net-snmp-5.2.1/agent/mibgroup/mibII/at.c:1119: undefined reference
to [EMAIL PROTECTED]'
/home/net-snmp-5.2.1/agent/mibgroup/mibII/at.c:1091: undefined reference
to [EMAIL PROTECTED]'
/home/net-snmp-5.2.1/agent/mibgroup/mibII/at.c:1162: undefined reference
to [EMAIL PROTECTED]'
/home/net-snmp-5.2.1/agent/mibgroup/mibII/at.c:1143: undefined reference
to [EMAIL PROTECTED]'
/usr/local/lib/libnetsnmpmibs.a(at.o):/home/net-snmp-5.2.1/agent/mibgroup
/mibII/at.c:1124: more undefined references to [EMAIL PROTECTED]' follow
/usr/local/lib/libnetsnmpmibs.a(route_write.o): In function `write_rte':
/home/net-snmp-5.2.1/agent/mibgroup/mibII/route_write.c:729: undefined re
ference to [EMAIL PROTECTED]'
/home/net-snmp-5.2.1/agent/mibgroup/mibII/route_write.c:743: undefined re
ference to [EMAIL PROTECTED]'
/home/net-snmp-5.2.1/agent/mibgroup/mibII/route_write.c:756: undefined re
ference to [EMAIL PROTECTED]'
/usr/local/lib/libnetsnmpmibs.a(ipAddr.o): In function `var_ipAddrEntry':
/home/net-snmp-5.2.1/agent/mibgroup/mibII/ipAddr.c:977: undefined referen
ce to [EMAIL PROTECTED]'
/home/net-snmp-5.2.1/agent/mibgroup/mibII/ipAddr.c:981: undefined referen
ce to [EMAIL PROTECTED]'
collect2: ld returned 1 exit status
perlld: *** system() failed to execute
gcc -shared -o
 agent.dll -Wl,--out-implib=libagent.dll.a -Wl,--export-all-symbo
ls -Wl,--enable-auto-import -Wl,--stack,8388608 -Wl,--enable-auto-image-base
\
-s -L/usr/local/lib agent.o
 /usr/lib/perl5/5.8/cygwin/CORE/libperl.dll.a -L/hom
e//net-snmp-5.2.1/perl/agent/../../snmplib/.libs -L/home/net-snmp-5
.2.1/perl/agent/../../snmplib -L/home/net-snmp-5.2.1/perl/agent/../../age
nt/.libs -L/home/net-snmp-5.2.1/perl/agent/../../agent -L/home/net
-snmp-5.2.1/perl/agent/../../agent/helpers/.libs -L/home/net-snmp-5.2.1/p
erl/agent/../../agent/helpers -L/usr/local/lib -lnetsnmpagent -lnetsnmpmibs 
-lne
tsnmphelpers -lnetsnmp -lcrypto -lm

make[1]: *** [../blib/arch/auto/NetSNMP/agent/agent.dll] Error 2
make[1]: Leaving directory `/home/net-snmp-5.2.1/perl/agent'
make: *** [subdirs] Error 2

Please anyone help me on this.


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to