Dear Wise Monks,
I seem to be missing something when building the SNMP-5.0401 Perl module. Here's what I am doing and the resulting errors:
$ perl Makefile.PL -NET-SNMP-CONFIG="sh ../../../opt/net-snmp/bin/net- +snmp-config" -NET-SNMP-IN-SOURCE=true Checking if your kit is complete... Looks good Writing Makefile for SNMP Unable to locate the MIBs, Please enter the path: [] /opt/net-snmp/sh +are/snmp/mibs $ make make: Warning: File `Makefile' has modification time 4.9e+02 s in the +future cp SNMP.pm blib/lib/SNMP.pm AutoSplitting blib/lib/SNMP.pm (blib/lib/auto/SNMP) /opt/lampp/bin/perl /opt/lampp/lib/perl5/5.10.0/ExtUtils/xsubpp -nopro +totypes -typemap /opt/lampp/lib/perl5/5.10.0/ExtUtils/typemap -typema +p typemap SNMP.xs > SNMP.xsc && mv SNMP.xsc SNMP.c cc -c -I../../include -O2 -g -pipe -m32 -march=i386 -mtune=pentium4 +-Ulinux -Dlinux=linux -I/usr/include/rpm -D_REENTRANT -D_GNU_SOURCE - +DDEBUGGING -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFI +LE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -I/usr/lib/perl5 +/5.8.5/i386-linux-thread-multi/CORE -I. -I/opt/net-snmp/include -fno- +strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FIL +E_OFFSET_BITS=64 -O2 -DVERSION=\"5.0401\" -DXS_VERSION=\"5.0401\" - +fPIC "-I/opt/lampp/lib/perl5/5.10.0/i686-linux/CORE" SNMP.c SNMP.xs: In function `_bulkwalk_recv_pdu': SNMP.xs:2090: error: `SNMPERR_OID_NONINCREASING' undeclared (first use + in this function) SNMP.xs:2090: error: (Each undeclared identifier is reported only once SNMP.xs:2090: error: for each function it appears in.) SNMP.xs: In function `XS_SNMP__new_v3_session': SNMP.xs:2734: error: structure has no member named `securityAuthLocalK +ey' SNMP.xs:2737: error: structure has no member named `securityAuthLocalK +eyLen' SNMP.xs:2769: error: `usmAESPrivProtocol' undeclared (first use in thi +s function) SNMP.xs:2770: error: `USM_PRIV_PROTO_AES_LEN' undeclared (first use in + this function) SNMP.xs:2784: error: structure has no member named `securityPrivLocalK +ey' SNMP.xs:2787: error: structure has no member named `securityPrivLocalK +eyLen' SNMP.xs: In function `XS_SNMP__MIB__NODE_FETCH': SNMP.xs:5203: error: structure has no member named `reference' SNMP.xs:5263: warning: passing arg 3 of `Perl_sv_setpv' makes pointer +from integer without a cast SNMP.c: In function `boot_SNMP': SNMP.c:5967: error: `PL_unitcheckav' undeclared (first use in this fun +ction) make: *** [SNMP.o] Error 1
I think I have all the "devel" RPMs installed. What else do I need to get SNMP.pm to build clean? Is there a patch? Couldn't find out anymore info on CPAN.
Thanks
In reply to Anyone able to build SNMP in Perl 5.10? by Plankton
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |