Re: Adding c files to build agent

Bart Van Assche <[email protected]>
Newsgroups gmane.network.net-snmp.devel
Message-ID <[email protected]>
On 08/21/18 07:52, Simon Chamlian wrote:
> It is not that easy in my case because I am cross compiling the agent
> for an embedded target system. Also, the whole package is being compiled
> from within Yocto (bitbake).
> 
> So I ran ./configure --with-mib-modules " file1 file2"
> 
> I noticed this created couple of Makefiles.
> 
> Then I ran
>      bitbake net-snmp
> which compiled the agent. I hoped that my modules would be integrated
> but when I burn the image on the target embedded system,
> snmpd is running but somehow my modules aren't being called so a get on
> my mib is not returning the expected value.

You do not have to follow the instructions from the Wiki to build the
subagent - explicitly invoking the cross-compiler is also fine.

Since you think that snmpd did not contact the subagent: have you
checked whether AgentX was enabled in snmpd.conf?

Bart.

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
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.