> > I think I found the problem. Around line 998 of snmplib/snmp_api.c, > > there is a recent addition of: > > > > #if !defined(DISABLE_SNMPV1) || !defined(DISABLE_SNMPV2C) > > > > which DeMorgan tells us is really: > > > > #if defined(DISABLE_SNMPV1) && defined(DISABLE_SNMPV2C) > > > Err.... no. > Surely DeMorgan equates this to > > #if !(defined(DISABLE_SNMPV1) && defined(DISABLE_SNMPV2C)) > > i.e. the exact opposite.
Yes, you're right. <SIGH> It's been one of those days. I knew I shouldn't try to program with my brains scrambled. :-/ > > and if I read the code around it properly, this says that community > > strings will *only* be copied if *neither* SNMPv1 or SNMPv2c was > > compiled into the agent. Not what was intended, I imagine. > > I *think* (and there are a few too many negations for comfort!) That's for sure! At least I have some excuse for my poor DeMorganizing. ;-) > that this is saying that this block should only be omitted if > *both* SNMPv1 and SNMPv2c have been removed from the library. > > Which sounds right. Yes, I agree. > But there's an easy way to tell - comment out this particular test, > and recompile. Does that fix the problem? I modified the test to match my poor Boolean transformation. Obviously, that wasn't right. I'll try now to just remove it. ------------------------------------------------------- This SF.Net email is sponsored by: Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux. http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click _______________________________________________ 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