Re: Problem building net-snmp 5.7.1 with embedded Perl support (no large files) on Solaris 10
Dave Shield <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <CAKoMtGbonABTEH75Xa=R58nTLfYR-x_9XC=No09mJ=sUaSGwoQ@mail.gmail.com> |
On 17 January 2012 13:51, Joel Hansell <[email protected]> wrote: > I think my Google-fu was weak when I emailed this, because I only now > found another user with the same issue on Linux and net-snmp 5.4, and > it turns out to be related to the "--disable-mib-loading" flag. All > other factors constant, if I remove that flag from my ./configure > call, it builds successfully. > > http://fixunix.com/snmp/170422-re-problems-building-5-4-linux.html > > So, obviously there is an undocumented dependency here which perhaps > the configure script should warn about? I.e. when trying to build with > embedded perl but without MIB loading. It seems to be an old problem > which is still unfixed. Well, perhaps one of the reasons that this problem is still present is that I provided a possible fix, and asked the original poster whether this worked. Unfortunately he never got back to us. Perhaps you could try the same patch (attached) and let us know if it works for you. If either of you can confirm that it fixes the problem, then we'll include it in future releases. Dave ------------------------------------------------------------------------------ Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d _______________________________________________ Net-snmp-users mailing list [email protected] Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users
OID.diff
(text/x-patch, 657 B)
Index: perl/OID/OID.xs
===================================================================
--- perl/OID/OID.xs (revision 16015)
+++ perl/OID/OID.xs (working copy)
@@ -70,6 +70,7 @@
} else {
switch (var->type) {
case ASN_INTEGER:
+#ifndef NETSNMP_DISABLE_MIB_LOADING
if (flag == USE_ENUMS) {
for(ep = tp->enums; ep; ep = ep->next) {
if (ep->value == *var->val.integer) {
@@ -79,6 +80,7 @@
}
}
}
+#endif /* NETSNMP_DISABLE_MIB_LOADING */
if (!len) {
sprintf(buf,"%ld", *var->val.integer);
len = strlen(buf);