Re: Compiling a agent extension under Linux

Rodolfo Leffa <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Hi,


On Mon, Mar 16, 2009 at 5:54 PM, Dave Shield <[email protected]>wrote:

> 2009/3/16 Rodolfo Leffa <[email protected]>:
> >>  [init_KhompData] should also appear in
> agent/mibgroup/mib_module_inits.h
> >
> > This file only exists in win32/ folder of my net-snmp sources. Nothing
> like
> > that on net-snmp\agent\mibgroup\
>
> In which case there is definitely something strange about your copy
> of "configure".   This should generate agent/mibgroup/mib_module_inits.h
> at the same time that it generates agent/mibgroup/mib_module_includes.h
>
> If that file isn't there, then you shouldn't be able to compile the
> software.


My mistake here. The file was there. But without a line to init my module.

By the way, i've download the sources again and runned configure
--with-mib-modules=KhompData and again it only put a commented line in
mib_modules_includes.h and nothing on mib_modules_init.h .

After that, I rename my source file KhompData.cpp to KhompData.c and runned
configure again. And that works. The line was uncommented on includes and
there was a " if (should_init("KhompData")) init_KhompData(); " on
mib_modules_init.h .

BUT, i can't compile (make) the sources now because there are some C++
structures defined on my code. Anybody knows a solution to this? Without
having to convert and data structures and code to C style ;-)


thanks


>
> Dave
>



-- 
Rodolfo Leffa de Oliveira

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