mib2c.iterate.conf generates errors

Simon Chamlian <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <CAJTs9VmHDasWEv+4ppsmc_7732Z32pJc5DEKyFfYjjMgvuaqrg@mail.gmail.com>
Hi,

The C file generated by *mib2c.iterate.conf* gives several errors when
compiled (option 1).

The errors are:

1) The line:

  # Determine the first/last column names

2) The structure generated has undefined entries and is duplicated twice:

    /* Typical data structure for a row entry */
struct mpbcRMHAlarmTable_entry {
    /* Index values */
    long mpbcRMHAlarmIndex;
    char mpbcRMHAlarmNEID[NNN]; // <------ NNN is undefined
    // .. etc

    /* Column values */
    long mpbcRMHAlarmIndex;         // <------- duplicated
    char mpbcRMHAlarmNEID[NNN];
    // .. etc


    /* Illustrate using a simple linked list */
    int   valid;
    struct mpbcRMHAlarmTable_entry *next;
};


Any one used this file to generate code?
We should avoid using it?

Is there another config file recommended to use?

Thanks,
S.

------------------------------------------------------------------------------
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.