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/include -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" <joan.lan...@overturenetworks.com> Sent: Tuesday, June 16, 2009 7:57 AM To: <net-snmp-users@lists.sourceforge.net> 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 Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users