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

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.