This is a discussion on Re: rfc: snmptrapd dependencies on agent libs within the SNMP Coders forums, part of the Networking and Network Related category; On Wed, Oct 19, 2005 at 04:08:41PM +0200, Thomas Anders wrote: > -Coders, > > snmptrapd, although living ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
On Wed, Oct 19, 2005 at 04:08:41PM +0200, Thomas Anders wrote:
> -Coders, > > snmptrapd, although living in apps/, has a significant number of > dependencies on the agent libraries. While the depencies on MIB modules > (e.g. snmpv3/usmUser and snmpv3/snmpEngine in 5.2+) can be solved by > suitable #ifdef USING... definitions, the following dependencies still > exist (5.2+): > > - init_agent (from agent/snmp_vars.c) > - convert_v1pdu_to_v2 (agent/agent_trap.c) > - run_shell_command (agent/mibgroup/utilities/execute.c) > - init_perl (agent/snmp_perl.c) if --with-embedded-perl > > This has particular drawbacks, e.g. that --disable-agent (documented to > just leave snmpd out of the build) doesn't work and fails at compile > time due the dependencies listed above. But even if you could live with > disabling snmptrapd also, you'll find out that there's no configure > switch to do so. The closest is --disable-applications which disables > everything in apps/, so you end up with no binaries at all. > > What to do about it? [ ] reorganize the libraries to take the above out of libnetsnmpagent and put it somewhere else (either a new common lib for snmpd+snmptrapd or one of the existing libs) [ ] build libnetsnmpagent with just the above functions in case of --disable-agent [ ] have --disable-agent disable snmpd *and* snmptrapd [X] <your own suggestions> I do not think that --disable-agent should disable the subagent libraries, that should have a separate flag, let's call it --disable-agentlib for now. This moves the problem to the new flag and for that I think that it would be reasonable to: * build the agent library if any of agent, snmptrapd or agentlib are enabled * always install the shared agent library * only install the static agent library and the include files if agentlib is enabled. That said I do not see any problem with a --disable-snmptrapd flag. /MF ------------------------------------------------------- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl _______________________________________________ Net-snmp-coders mailing list Net-snmp-coders@lists.sourceforge.net https://lists.sourceforge.net/lists/...et-snmp-coders |