We cross compiled successfully net-snmp static to Montavista in a PPC
using the following configure line, you may want to remove dome of the
mibs. Hope this helps.

./configure --disable-snmpv2c --enable-mini-agent
--with-mib-modules="mibII ip-mib if-mib tcp-mib udp-mib ucd_snmp target
agent_mibs notification-log-mib snmpv3mibs notification"
--disable-applications --disable-des --disable-privacy --disable-md5
--without-openssl --with-out-transports="Callback Unix TCP"
--disable-manuals --disable-shared --disable-mib-loading
--with-cflags="-s -static -O2 -Dlinux"
--with-cc=/opt/devkit/ppc/82xx/bin/ppc_82xx-gcc
--with-ar=/opt/devkit/ppc/82xx/bin/ppc_82xx-ar --with-endianness=big
--with-defaults --build=i386-linux --host=ppc-hardhat-linux 

Regards,
Pablo

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On 
> Behalf Of [EMAIL PROTECTED]
> Sent: Wednesday, September 06, 2006 5:58 PM
> To: [email protected]
> Subject: 1. Compiling Net-SNMP to use static linking 2. 
> Cross-compileoptions for PowerPC using Montavista Linux 
> 
> Hi All,
> 
> There are two (linked) parts to my query. Would appreciate any help.
> 
> 1) I am trying to compile Net-SNMP and create the agent using 
> static linking. I read the relevant FAQ and used configure with:
> --with-ldflags=-Bstatic
> 
> However, while trying to run the agent, it is still looking 
> for the shared libraries.
> 
> Would appreciate very much any advice on how to create a 
> totally statically-linked agent.
> 
> PS: The relevant FAQ also mentions using a Makefile fragment, 
> but I could not figure out which Makefile should be modified 
> to use that.
> 
> 2) My above attempt to create a statically-linked agent is 
> because I am trying to run the agent on an embedded device 
> with limited memory (~8MB -- not enough to have the shared 
> libraries). The processor is PowerPC 405, and the OS is 
> Montavista Linux.
> If anyone has any experience on the specific configuration 
> options for this system, would greatly appreciate the help.
> 
> Thanks in advance,
> Ayan
> 
> --------------------------------------------------------------
> -----------
> Using Tomcat but need to do more? Need to support web 
> services, security?
> Get stuff done quickly with pre-integrated technology to make 
> your job easier Download IBM WebSphere Application Server 
> v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&;
> dat=121642
> _______________________________________________
> Net-snmp-coders mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
> 

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to