RE: Port to embedded platform

"Joan Landry" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <A9FCB77F97940A418A61FD9BB71E4170013A5C0A@dexbe012-6.exch012.intermedia.net>
Thanks but I am trying to run net-snmp via the calls 
    init_agent()
    init_mib_modules()
    init_snmp()
    init_master_agent()

I do not want to run the daemon snmpd. I want to run the master agent
internally via init_master_agent. So I need to generate the library
files for linking.

Does anyone know how to do this? 

-----Original Message-----
From: John Anderson [mailto:[email protected]] 
Sent: Tuesday, June 16, 2009 10:16 AM
To: Joan Landry; [email protected]
Subject: Re: Port to embedded platform

This is my configure options for cross-compiling to a PPC (ignore the
--with-mib-modules, that's my stuff).  I am able to create an executable
for snmpd.

INCLUDE_PATH=-I/opt/crosstool/powerpc-linux/include/c++/3.4.4
-I/opt/crosstool/powerpc-linux/include/c++/3.4.4/powerpc-405-linux-gnu
 
-I/opt/crosstool/powerpc-linux/lib/gcc/powerpc-405-linux-gnu/3.4.4/inclu
de
-I/opt/crosstool/powerpc-linux/powerpc-405-linux-gnu/include
-I/opt/crosstool/powerpc-linux/powerpc-405-linux-gnu/sys-include
set COMPILER_PATH=/opt/crosstool/powerpc-linux/bin
LDFLAGS=-lpthread
export COMPILER_PATH
export INCLUDE_PATH
./configure --target=powerpc-405-linux-gnu \
              --host=powerpc-405-linux-gnu \
 
--with-cc=/opt/crosstool/powerpc-linux/bin/powerpc-405-linux-gnu-gcc
\
 
--with-ar=/opt/crosstool/powerpc-linux/bin/powerpc-405-linux-gnu-ar
\
 
--with-ln=/opt/crosstool/powerpc-linux/bin/powerpc-405-linuc-gnu-ln
\
              --with-ldflags=$LDFLAGS \
              --with-endianness=big \
              --disable-embedded-perl \
              --with-mib-modules="coretecMIB
CORETEC-MIB/vcxSCTable/vcxSCTable CORETEC-MIB/osdTable/osdTable"

John Anderson



--------------------------------------------------
From: "Joan Landry" <[email protected]>
Sent: Tuesday, June 16, 2009 7:57 AM
To: <[email protected]>
Subject: Port to embedded platform

> I am trying to port net-snmp to an embedded platform and have been 
> able to use ./configure and make to cross compile the code.
>
> Now I am not sure what the next step is. I see there are directories 
> that contain libnetsnmpagent.la  libnetsnmp.la  libnetsnmpmibs.la 
> libnetsnmptrapd.la  libsnmp.la But it is not clear to me what files I 
> need and how to link them into my system.
>
> Can anyone tell me where I can find an example of this? Or give me any

> pointers on what to do next.
>
> I want to be able to call the folling functions from my subagent.
>    init_agent()
>    init_mib_modules()
>    init_snmp()
>    init_master_agent()
>
> I appreciate any info.
> thanks
>
> 

------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
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.