We currently package a set of the Net-SNMP 5.2.1 libraries with Directory Server for our SNMP subagent (ldap-agent). Our subagent is built against that version of Net-SNMP as well, which means that it is not compatible with earlier Net-SNMP versions. This means that one would need to install a non-system Net-SNMP package on RHEL4 (which uses Net-SNMP 5.1.2 currently) to use the subagent. We should be building against the system Net-SNMP libraries and just using them from /usr/lib instead of packaging them.
Created attachment 127721 [details] CVS Diffs This makes Linux builds use the system Net-SNMP. There were some minor changes required to make the subagent work with NetSNMP v5.1. These were mainly small API changes. I also found that I was getting lots of callback log messages with Net-SNMP v5.1 that didn't happen in v5.2. These messages were at the LOG_INFO level, which was our default. I changed our default to LOG_WARN and changed some of our own logging statements from LOG_INFO to LOG_WARN as well.
Checked into ldapserver. Reviewed by Noriko and Rich (thanks!). Checking in components.mk; /cvs/dirsec/ldapserver/components.mk,v <-- components.mk new revision: 1.49; previous revision: 1.48 done Checking in internal_comp_deps.mk; /cvs/dirsec/ldapserver/internal_comp_deps.mk,v <-- internal_comp_deps.mk new revision: 1.41; previous revision: 1.40 done Checking in ldap/servers/snmp/ldap-agent.c; /cvs/dirsec/ldapserver/ldap/servers/snmp/ldap-agent.c,v <-- ldap-agent.c new revision: 1.10; previous revision: 1.9 done Checking in ldap/servers/snmp/ldap-agent.h; /cvs/dirsec/ldapserver/ldap/servers/snmp/ldap-agent.h,v <-- ldap-agent.h new revision: 1.8; previous revision: 1.7 done Checking in ldap/servers/snmp/main.c; /cvs/dirsec/ldapserver/ldap/servers/snmp/main.c,v <-- main.c new revision: 1.8; previous revision: 1.7 done