On Mon, 06 Feb 2012 18:03:20 +0000 Peter wrote:
PH> On 05/02/12 11:13, Peter Hertting wrote:
PH> > | |   +-> Processing nonindex atmInterfaceMyNeighborIpAddress
PH> > ERROR: unknown node.decl: in_addr_t

PH> After further investigation I believe that this might actually be a bug
PH> in the MFD configuration. I changed node-get.m2i so that it now looks
PH> like this:
PH> ...
PH> ##   ------------------------------------------------------------------
PH> @    if $node.decl =~ /long/i@ #   ASN_INTEGER ASN_COUNTER ASN_GAUGE
PH> @       include generic-get-long.m2i@
PH> @    elsif $node.decl =~ /char/i@ #         ASN_OCTET_STR ASN_OPAQUE
PH> @       include generic-get-char.m2i@
PH> @    elsif $node.decl =~ /oid/i@ #                    ASN_OBJECT_ID
PH> @       include generic-get-oid.m2i@
PH> @    elsif $node.decl =~ /U64/i@ #                    ASN_COUNTER64
PH> @       include generic-get-U64.m2i@
PH> @    elsif $node.decl =~ /in_addr_t/i@ # ASN_IP_ADDRESS
PH> @       include generic-get-in_addr_t.m2i@
PH> @    else@
PH> @        print ERROR: unknown node.decl: $node.decl@
PH> @        exit@
PH> @    end@
PH> ##   ------------------------------------------------------------------
PH> ...
PH> 
PH> And create a generic-get-in_addr_t.m2i file:
PH> 
PH> #############################################################  -*- c -*-
PH> ## generic include for XXX. Do not use directly.
PH> ##
PH> ## $Id$
PH> ########################################################################
PH> @if $m2c_mark_boundary == 1@
PH> /** START code generated by $RCSfile$ $Revision$ */
PH> @end@
PH> ########################################################################
PH> ##
PH> ########################################################################
PH> @if $m2c_mark_boundary == 1@
PH> /** END code generated by $RCSfile$ $Revision$ */
PH> @end@
PH> 
PH> This does the trick and the MIB compiles without problems.
PH> 
PH> Question: Does anyone else thinks that this is a bug? I'm experiencing
PH> this problem with 5.7.1 and 5.4.3.

Yep, it's a bug.  Can you show me the resulting function that is generated?

------------------------------------------------------------------------------
Try before you buy = See our experts in action!
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-dev2
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to