I found a download of the one I need (5.5) but when I ran perl Makefile.PL, it didn't go so well:

[root@test4 net-snmp-perl]# perl Makefile.PL Unrecognized argument in LIBS ignored: '-Wl,-z,relro' Unrecognized argument in LIBS ignored: '-Wl,-z,now' Writing Makefile for NetSNMP::default_store Writing MYMETA.yml and MYMETA.json Unrecognized argument in LIBS ignored: '-Wl,-z,relro' Unrecognized argument in LIBS ignored: '-Wl,-z,now' Writing Makefile for NetSNMP::ASN Writing MYMETA.yml and MYMETA.json Unrecognized argument in LIBS ignored: '-Wl,-z,relro' Unrecognized argument in LIBS ignored: '-Wl,-z,now' Writing Makefile for NetSNMP::OID Writing MYMETA.yml and MYMETA.json Unrecognized argument in LIBS ignored: '-Wl,-z,relro' Unrecognized argument in LIBS ignored: '-Wl,-z,now' Unrecognized argument in LIBS ignored: '-Wl,-E' Unrecognized argument in LIBS ignored: '-Wl,-rpath,/usr/lib64/perl5/CO +RE' Unrecognized argument in LIBS ignored: '-Wl,-z,relro' Unrecognized argument in LIBS ignored: '-Wl,-z,now' Writing Makefile for NetSNMP::agent::default_store Writing MYMETA.yml and MYMETA.json Writing Makefile for NetSNMP::agent Writing MYMETA.yml and MYMETA.json Unrecognized argument in LIBS ignored: '-Wl,-z,relro' Unrecognized argument in LIBS ignored: '-Wl,-z,now' Writing Makefile for SNMP Writing MYMETA.yml and MYMETA.json Writing Makefile for Bundle::NetSNMP Writing MYMETA.yml and MYMETA.json
Things only got worse when I tried to make:

Skip blib/lib/Bundle/Makefile.subs.pl (unchanged) make[1]: Entering directory `/net-snmp-perl/default_store' Skip ../blib/lib/NetSNMP/default_store.pm (unchanged) cc -c -DNETSNMP_ENABLE_IPV6 -O2 -g -pipe,-D_FORTIFY_SOURCE=2 -fexcep +tions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic + -D_RPM_4_4_COMPAT -Ulinux -Dlinux=linux -I/usr/include/rpm -D_REENTR +ANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -fstack-protector -I/usr +/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/lib6 +4/perl5/CORE -I. -I/usr/include -O2 -DVERSION=\"0.01\" -DXS_VERSION +=\"0.01\" -fPIC "-I/root/perl5/perlbrew/perls/perl-5.16.0/lib/5.16.0/ +x86_64-linux-thread-multi/CORE" default_store.c cc: unrecognized option '-pipe,-D_FORTIFY_SOURCE=2' Running Mkbootstrap for NetSNMP::default_store () chmod 644 default_store.bs rm -f ../blib/arch/auto/NetSNMP/default_store/default_store.so LD_RUN_PATH="/usr/lib64" cc -shared -O2 -L/usr/local/lib -fstack-prot +ector default_store.o -o ../blib/arch/auto/NetSNMP/default_store/def +ault_store.so \ -L/usr/lib64 -lnetsnmp \ chmod 755 ../blib/arch/auto/NetSNMP/default_store/default_store.so cp default_store.bs ../blib/arch/auto/NetSNMP/default_store/default_st +ore.bs chmod 644 ../blib/arch/auto/NetSNMP/default_store/default_store.bs Manifying ../blib/man3/NetSNMP::default_store.3 make[1]: Leaving directory `/net-snmp-perl/default_store' make[1]: Entering directory `/net-snmp-perl/ASN' Skip ../blib/lib/NetSNMP/ASN.pm (unchanged) cc -c -DNETSNMP_ENABLE_IPV6 -O2 -g -pipe,-D_FORTIFY_SOURCE=2 -fexcep +tions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic + -D_RPM_4_4_COMPAT -Ulinux -Dlinux=linux -I/usr/include/rpm -D_REENTR +ANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -fstack-protector -I/usr +/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/lib6 +4/perl5/CORE -I. -I/usr/include -O2 -DVERSION=\"0.01\" -DXS_VERSION +=\"0.01\" -fPIC "-I/root/perl5/perlbrew/perls/perl-5.16.0/lib/5.16.0/ +x86_64-linux-thread-multi/CORE" ASN.c cc: unrecognized option '-pipe,-D_FORTIFY_SOURCE=2' Running Mkbootstrap for NetSNMP::ASN () chmod 644 ASN.bs rm -f ../blib/arch/auto/NetSNMP/ASN/ASN.so LD_RUN_PATH="/usr/lib64" cc -shared -O2 -L/usr/local/lib -fstack-prot +ector ASN.o -o ../blib/arch/auto/NetSNMP/ASN/ASN.so \ -L/usr/lib64 -lnetsnmp \ 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.3 make[1]: Leaving directory `/net-snmp-perl/ASN' make[1]: Entering directory `/net-snmp-perl/OID' Skip ../blib/lib/NetSNMP/OID.pm (unchanged) cc -c -DNETSNMP_ENABLE_IPV6 -O2 -g -pipe,-D_FORTIFY_SOURCE=2 -fexcep +tions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic + -D_RPM_4_4_COMPAT -Ulinux -Dlinux=linux -I/usr/include/rpm -D_REENTR +ANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -fstack-protector -I/usr +/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/lib6 +4/perl5/CORE -I. -I/usr/include -O2 -DVERSION=\"0.1\" -DXS_VERSION= +\"0.1\" -fPIC "-I/root/perl5/perlbrew/perls/perl-5.16.0/lib/5.16.0/x8 +6_64-linux-thread-multi/CORE" OID.c cc: unrecognized option '-pipe,-D_FORTIFY_SOURCE=2' OID.xs: In function âXS_NetSNMP__OID_newptrâ: OID.xs:53: warning: passing argument 3 of âsnmp_parse_oidâ from incomp +atible pointer type /usr/include/net-snmp/mib_api.h:40: note: expected âsize_t *â but argu +ment is of type âunsigned int *â OID.xs: In function âXS_netsnmp_oidPtr_cloneâ: OID.xs:177: warning: passing argument 1 of ânso_newarrayptrâ from inco +mpatible pointer type OID.xs:34: note: expected âoid *â but argument is of type âunsigned in +t *â Running Mkbootstrap for NetSNMP::OID () chmod 644 OID.bs rm -f ../blib/arch/auto/NetSNMP/OID/OID.so LD_RUN_PATH="/usr/lib64" cc -shared -O2 -L/usr/local/lib -fstack-prot +ector OID.o -o ../blib/arch/auto/NetSNMP/OID/OID.so \ -L/usr/lib64 -lnetsnmp \ 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.3 make[1]: Leaving directory `/net-snmp-perl/OID' make[1]: Entering directory `/net-snmp-perl/agent' Skip ../blib/lib/NetSNMP/agent.pm (unchanged) Skip ../blib/lib/NetSNMP/agent/netsnmp_request_infoPtr.pm (unchanged) make[2]: Entering directory `/net-snmp-perl/agent/default_store' Skip ../../blib/lib/NetSNMP/agent/default_store.pm (unchanged) cc -c -DNETSNMP_ENABLE_IPV6 -O2 -g -pipe,-D_FORTIFY_SOURCE=2 -fexcep +tions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic + -D_RPM_4_4_COMPAT -Ulinux -Dlinux=linux -I/usr/include/rpm -D_REENTR +ANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -fstack-protector -I/usr +/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/lib6 +4/perl5/CORE -I. -I/usr/include -O2 -DVERSION=\"0.01\" -DXS_VERSION +=\"0.01\" -fPIC "-I/root/perl5/perlbrew/perls/perl-5.16.0/lib/5.16.0/ +x86_64-linux-thread-multi/CORE" default_store.c cc: unrecognized option '-pipe,-D_FORTIFY_SOURCE=2' Running Mkbootstrap for NetSNMP::agent::default_store () chmod 644 default_store.bs rm -f ../../blib/arch/auto/NetSNMP/agent/default_store/default_store.s +o LD_RUN_PATH="/usr/lib64" cc -shared -O2 -L/usr/local/lib -fstack-prot +ector default_store.o -o ../../blib/arch/auto/NetSNMP/agent/default_ +store/default_store.so \ -L/usr/lib64 -lnetsnmp \ chmod 755 ../../blib/arch/auto/NetSNMP/agent/default_store/default_sto +re.so cp default_store.bs ../../blib/arch/auto/NetSNMP/agent/default_store/d +efault_store.bs chmod 644 ../../blib/arch/auto/NetSNMP/agent/default_store/default_sto +re.bs Manifying ../../blib/man3/NetSNMP::agent::default_store.3 make[2]: Leaving directory `/net-snmp-perl/agent/default_store' cc -c -DNETSNMP_ENABLE_IPV6 -O2 -g -pipe,-D_FORTIFY_SOURCE=2 -fexcep +tions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic + -D_RPM_4_4_COMPAT -Ulinux -Dlinux=linux -I/usr/include/rpm -D_REENTR +ANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -fstack-protector -I/usr +/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/lib6 +4/perl5/CORE -I. -I/usr/include -O2 -DVERSION=\"0.01\" -DXS_VERSION +=\"0.01\" -fPIC "-I/root/perl5/perlbrew/perls/perl-5.16.0/lib/5.16.0/ +x86_64-linux-thread-multi/CORE" agent.c cc: unrecognized option '-pipe,-D_FORTIFY_SOURCE=2' agent.xs: In function âhandler_wrapperâ: agent.xs:217: warning: cast from pointer to integer of different size agent.xs:221: warning: cast from pointer to integer of different size agent.xs:225: warning: cast from pointer to integer of different size agent.xs:229: warning: cast from pointer to integer of different size agent.xs: In function âXS_NetSNMP__agent__netsnmp_request_infoPtr_getO +IDâ: agent.xs:379: warning: cast from pointer to integer of different size agent.xs: In function âXS_NetSNMP__agent__netsnmp_request_infoPtr_next +â: agent.xs:603: warning: cast from pointer to integer of different size Running Mkbootstrap for NetSNMP::agent () chmod 644 agent.bs rm -f ../blib/arch/auto/NetSNMP/agent/agent.so LD_RUN_PATH="/usr/lib64" cc -shared -O2 -L/usr/local/lib -fstack-prot +ector agent.o -o ../blib/arch/auto/NetSNMP/agent/agent.so \ -L/usr/lib64 -lnetsnmpagent -lnetsnmphelpers -lnetsnmpmibs +-lnetsnmp \ 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.3 Manifying ../blib/man3/NetSNMP::agent.3 make[1]: Leaving directory `/net-snmp-perl/agent' make[1]: Entering directory `/net-snmp-perl/SNMP' cp SNMP.pod ../blib/lib/SNMP.pod Skip ../blib/lib/SNMP.pm (unchanged) cc -c -DNETSNMP_ENABLE_IPV6 -O2 -g -pipe,-D_FORTIFY_SOURCE=2 -fexcep +tions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic + -D_RPM_4_4_COMPAT -Ulinux -Dlinux=linux -I/usr/include/rpm -D_REENTR +ANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -fstack-protector -I/usr +/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/lib6 +4/perl5/CORE -I. -I/usr/include -O2 -DVERSION=\"5.0.5\" -DXS_VERSIO +N=\"5.0.5\" -fPIC "-I/root/perl5/perlbrew/perls/perl-5.16.0/lib/5.16. +0/x86_64-linux-thread-multi/CORE" SNMP.c cc: unrecognized option '-pipe,-D_FORTIFY_SOURCE=2' SNMP.xs: In function â__tag2oidâ: SNMP.xs:851: warning: passing argument 3 of âread_objidâ from incompat +ible pointer type /usr/include/net-snmp/mib_api.h:41: note: expected âsize_t *â but argu +ment is of type âint *â SNMP.xs: In function â__add_var_val_strâ: SNMP.xs:1031: warning: passing argument 4 of â__tag2oidâ from incompat +ible pointer type SNMP.xs:813: note: expected âint *â but argument is of type âsize_t *â SNMP.xs: In function â_bulkwalk_send_pduâ: SNMP.xs:1781: warning: cast to pointer from integer of different size SNMP.xs: In function âXS_SNMP__read_mibâ: SNMP.xs:2773: warning: cast from pointer to integer of different size SNMP.xs: In function âXS_SNMP__read_moduleâ: SNMP.xs:2796: warning: cast from pointer to integer of different size SNMP.xs: In function âXS_SNMP__bulkwalkâ: SNMP.xs:3794: warning: cast from pointer to integer of different size SNMP.xs: In function âXS_SNMP__trapV1â: SNMP.xs:3971: warning: passing argument 4 of â__tag2oidâ from incompat +ible pointer type SNMP.xs:813: note: expected âint *â but argument is of type âsize_t *â Running Mkbootstrap for SNMP () chmod 644 SNMP.bs rm -f ../blib/arch/auto/SNMP/SNMP.so LD_RUN_PATH="/usr/lib64" cc -shared -O2 -L/usr/local/lib -fstack-prot +ector SNMP.o -o ../blib/arch/auto/SNMP/SNMP.so \ -L/usr/lib64 -lnetsnmp \ 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 SNMP.pod make[1]: Leaving directory `/net-snmp-perl/SNMP'

In reply to Re^5: module errors everywhere by Toasterman
in thread module errors everywhere by Toasterman

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.