Re: Extending snmp agent: compile extension source and header files faster
Dave Shield <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
On 15 October 2010 14:10, Leo Lin <[email protected]> wrote: > just wondering if there's a way to compile my source and header files > generated by mib2c without having to go through the > > ./configure, make, make install process. If you're just wanting to add an extra MIB module to the agent, and you've already got a working environment, it's possible to fudge it by editing files manually, as follows: agent/Makefile: add the new module to the definitions of 'mibgroup_list_lo' and 'mibgroup_list_o' agent/mibgroup/Makefile: add the new module to the definitions of 'mib_module_list_o', 'mib_module_list_lo' and 'mib_module_list_c' agent/mibgroup/mib_module_includes.h include the new module header file agent/mibgroup/mib_module_inits.h invoke the new module 'init_xxx' routine If there's a shutdown routine, then this should be added to agent/mibgroup/mib_module_shutdown.h as well. Use the existing contents of each of these as a template. You should then be able to run "make ; make install" and it will only re-compile the new module (plus a couple of other files), rather than the whole thing. Dave ------------------------------------------------------------------------------ Download new Adobe(R) Flash(R) Builder(TM) 4 The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly Flex(R) Builder(TM)) enable the development of rich applications that run across multiple browsers and platforms. Download your free trials today! http://p.sf.net/sfu/adobe-dev2dev _______________________________________________ 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