Re: Compiling a agent extension under Linux

Dave Shield <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
2009/3/16 Rodolfo Leffa <[email protected]>:
> About the init routine, I have it on my module source file(the same I've
> done to Windows).
>
> I've runned configure --with-mib-modules=KhompData (name of my module), and
> after I use grep to see what files contains this string in the whole
> net-snmp directory. Except for the win32 directory and for the files
> themselfs(KhompData.cpp and KhompData.h) , it only appears in this files:
>
> agent/mibgroup/mib_module_includes.h
> include/net-snmp/net-snmp-config.h
> include/net-snmp/agent/mib_module_config.h

It should also appear in agent/mibgroup/mib_module_inits.h



> Looking at the files, I started to think my configure isn't working as it
> should:
>
> mib_modules_includes.h: the only place it appears is this commented line.
>
> /* This file is automatically generated by configure.  Do not modify by
> hand. */
> /*#include "mibgroup/KhompData.h"*/
> /*#include "mibgroup/default_modules.h"*/
> /*#include "mibgroup/snmpv3mibs.h"*/

I'm a little surprised those are commented out,
but checking my setup, there are indeed a number of
header files that are listed in this way.

Most of them appear to be "conglomeration" header files, rather
than leaf-module headers.

What is the contents of the file mibgroup/KhompData.h ?
What does the init routine look like?

Dave

------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.