From: SourceForge.net <no...@so...> - 2004-02-27 20:38:14
|
Bugs item #613371, was opened at 2002-09-23 15:34 Message generated for change (Settings changed) made by slif You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=112694&aid=613371&group_id=12694 Category: library Group: None >Status: Closed >Resolution: Out of Date Priority: 5 Submitted By: Todd Caine (tcaine) Assigned to: Nobody/Anonymous (nobody) Summary: SNMP.pm build problems Initial Comment: It looks like the SNMP.pm module hasn't been tested to see if it builds under version 5.0.3 of net-snmp. I've found one problem and see side effects of a problem that I'm not sure how to solve. Problem 1: The perl/SNMP/Makefile.PL has a bug which causes a build failure on all platforms. Here's the patch. (MAN3PODS needs a hash ref instead of a scalar). --- Makefile.PL Mon Sep 23 12:26:44 2002 +++ Makefile.PL~ Mon Sep 23 12:26:34 2002 @@ -17,7 +17,7 @@ my %Params = ( NAME => 'SNMP', dist => { SUFFIX => "gz", COMPRESS => "gzip -9f"}, - MAN3PODS => 'SNMP', # Pods will be built by installman. + MAN3PODS => {'SNMP' => 0}, # Pods will be built by installman. XSPROTOARG => '-noprototypes', # XXX remove later? VERSION_FROM => 'SNMP.pm', realclean => { FILES => 'host' }, Now for the bigger problem. Problem 2: It still won't build. sandbox:/usr/local/src/net-snmp-5.0.3/perl/SNMP $ perl Makefile.PL Processing hints file hints/solaris.pl Writing Makefile for SNMP sandbox:/usr/local/src/net-snmp-5.0.3/perl/SNMP $ make gcc -c -g -O2 -Dsolaris2 -O -DVERSION=\5.0.3\ - DXS_VERSION=\5.0.3\ -fPIC "- I/usr/local/lib/perl5/5.6.0/sun4-solaris/CORE" SNMP.c SNMP.xs: In function `__libraries_init': SNMP.xs:229: `NETSNMP_DS_LIBRARY_ID' undeclared (first use in this function) SNMP.xs:229: (Each undeclared identifier is reported only once SNMP.xs:229: for each function it appears in.) SNMP.xs:229: `NETSNMP_DS_LIB_DONT_BREAKDOWN_OIDS' undeclared (first use in this function) SNMP.xs:230: `NETSNMP_DS_LIB_PRINT_SUFFIX_ONLY' undeclared (first use in this function) SNMP.xs: In function `__snmp_xs_cb': SNMP.xs:1247: `NETSNMP_DS_LIBRARY_ID' undeclared (first use in this function) SNMP.xs:1247: `NETSNMP_DS_LIB_PRINT_NUMERIC_OIDS' undeclared (first use in this function) SNMP.xs:1248: `NETSNMP_DS_LIB_PRINT_FULL_OID' undeclared (first use in this function) SNMP.xs: In function `_bulkwalk_recv_pdu': SNMP.xs:1856: `NETSNMP_DS_LIBRARY_ID' undeclared (first use in this function) SNMP.xs:1856: `NETSNMP_DS_LIB_PRINT_NUMERIC_OIDS' undeclared (first use in this function) SNMP.xs:1857: `NETSNMP_DS_LIB_PRINT_FULL_OID' undeclared (first use in this function) SNMP.xs:1858: `NETSNMP_DS_LIB_OID_OUTPUT_FORMAT' undeclared (first use in this function) SNMP.xs:1863: `NETSNMP_OID_OUTPUT_NUMERIC' undeclared (first use in this function) SNMP.xs: In function `XS_SNMP__getnext': SNMP.xs:3268: `NETSNMP_DS_LIBRARY_ID' undeclared (first use in this function) SNMP.xs:3269: `NETSNMP_DS_LIB_PRINT_NUMERIC_OIDS' undeclared (first use in this function) SNMP.xs:3271: `NETSNMP_DS_LIB_PRINT_FULL_OID' undeclared (first use in this function) SNMP.xs: In function `XS_SNMP__getbulk': SNMP.xs:3475: `NETSNMP_DS_LIBRARY_ID' undeclared (first use in this function) SNMP.xs:3476: `NETSNMP_DS_LIB_PRINT_NUMERIC_OIDS' undeclared (first use in this function) SNMP.xs:3478: `NETSNMP_DS_LIB_PRINT_FULL_OID' undeclared (first use in this function) SNMP.xs: In function `XS_SNMP__set_replace_newer': SNMP.xs:4422: `NETSNMP_DS_LIBRARY_ID' undeclared (first use in this function) SNMP.xs:4422: `NETSNMP_DS_LIB_MIB_REPLACE' undeclared (first use in this function) make: *** [SNMP.o] Error 1 ---------------------------------------------------------------------- Comment By: Dave Shield (dts12) Date: 2002-12-11 06:42 Message: Logged In: YES user_id=88893 Apologies for the delay in responding to this. The documentation problem has certainly been addressed, and there have been changes to the code which may also have fixed your build problems. This module certainly build correctly on other architectures. Can you please try the current code, and see whether things have been fixed. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=112694&aid=613371&group_id=12694 |