On 28/03/07, Eirik Nordbrøden <[EMAIL PROTECTED]> wrote:
I get the following error message when building the perl modules:OID.xs: In function `__snprint_value': OID.xs:74: error: dereferencing pointer to incomplete type
If I remove the --disable-mib-loading option when configuring, it builds fine.
Yup - that makes sense. The relevant code is looking at information taken from parsing the MIB files. If the parse handling code has been excluded, then this fragment will indeed fail.
I have tried serching the bug/patch lists without success, but it might be related to the same problem as bug 1416726.
No - this is a new problem. Try the attached patch - does that help at all? Dave
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);
------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________ Net-snmp-coders mailing list Net-snmp-coders@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/net-snmp-coders