On Wed, 16 Nov 2016 18:10:02 -0800 Bart wrote:
BVA> On 11/16/16 13:15, Robert Story wrote:
BVA> > How are you running configure? I ran configure with defaults
BVA> > plus --enable-perl-modules and did not have any test
BVA> > failures.
BVA> [...]
BVA> I have attached the scripts I use to configure and build
BVA> Net-SNMP to this e-mail. These scripts should be stored in a
BVA> directory outside the Net-SNMP source tree. The
BVA> net-snmp-rebuild script is the main script and invokes the
BVA> other scripts.
I had to tweak a few things, and I removed the long list of mib
modules to save build time, but still had all tests pass. This is
the configure line that I ended up with from the scripts:
$ ./configure --enable-developer --enable-ipv6
--prefix=/usr/local/net-snmp-master --with-cc=ccache gcc --with-cflags=-g -O0
-pipe -DNETSNMP_USE_ASSERT -Wformat -fno-strict-aliasing -fno-inline
-fno-inline-functions -fno-inline-functions-called-once -fno-early-inlining
-Wno-inline -fno-inline-small-functions --with-defaults --with-mysql=no
--with-transports= TLSTCP DTLSUDP
Initially I didn't have the perl modules needed for embedded perl
support, but when I didn't get any errors, I installed them. But I
still had all 75 files/330 tests succeed.
At any rate, I'm still thinking that this is related to session
init. Can you try this patch:
diff --git a/perl/SNMP/SNMP.xs b/perl/SNMP/SNMP.xs
index aa0dadb..96130d1 100644
--- a/perl/SNMP/SNMP.xs
+++ b/perl/SNMP/SNMP.xs
@@ -2554,6 +2554,8 @@ snmp_new_session(version, community, peer, lport,
retries, timeout)
SnmpSession *ss = NULL;
int verbose = SvIV(perl_get_sv("SNMP::verbose", 0x01 | 0x04));
+ snmp_sess_init(&session);
+
__libraries_init("perl");
session.version = -1;
@@ -2631,6 +2633,8 @@ snmp_new_v3_session(version, peer, retries, timeout,
sec_name, sec_level, sec_en
SnmpSession *ss = NULL;
int verbose = SvIV(perl_get_sv("SNMP::verbose", 0x01 | 0x04));
+ snmp_sess_init(&session);
+
__libraries_init("perl");
if (version == 3) {
@@ -2800,6 +2804,8 @@ snmp_new_tunneled_session(version, peer, retries,
timeout, sec_name, sec_level,
SnmpSession *ss = NULL;
int verbose = SvIV(perl_get_sv("SNMP::verbose", 0x01 | 0x04));
+ snmp_sess_init(&session);
+
__libraries_init("perl");
session.version = version;
------------------------------------------------------------------------------
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders