> 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.


> 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 this is saying that this block should only be omitted if
*both* SNMPv1 and SNMPv2c have been removed from the library.

Which sounds right.

But there's an easy way to tell - comment out this particular test,
and recompile.  Does that fix the problem?

Dave



-------------------------------------------------------
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

Reply via email to