FWIW, I tracked down my problem to a single line of code that was added
to snmp_api.h in version 5.2.  It changes the sizeof(struct
snmp_session) from 236 to 244 which seems kind of strange.  It also
manages to screw up the rest of the elements after it.  It appears to be
an alignment problem of some sort but it isn't apparent to me what
exactly the problem is.

    /** My Domain name or dotted IP address, 0 for default */
    char           *localname;

Commenting out that line allows me to execute my modified snmpdemoapp
code using my extended MIB.

FYI, this was reproduced on RH 9 and RH EL 3 using the version of gcc
that comes with installation.


-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to