Adding the list... We had the same problem, the cause was because the cross compiler used to generate the executable was creating it using a different libm version than the one in the embedded system. For instance, the cross compiler is compiling using libm.so.6 and in /usr/lib inside the embedded system is libm.so.5. The other reason is that libm.so.6 is not in the embedded platform.
Regards, Pablo > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: Monday, September 11, 2006 5:17 PM > To: Passera Pablo-APP015 > Subject: Re: 1. Compiling Net-SNMP to use static linking 2. > Cross-compileoptions for PowerPC using Montavista Linux > > Hi, > > I have been trying to cross-compile net-snmp static using the > configuration options you suggested in your email. > However, trying to run the agent ("snmpd") on PowerPC under > /usr/sbin, I still get the following error message: > > ./snmpd: error while loading shared libraries: libm.so.6: > cannot open shared object file: No such file or directory > > Did you face this problem? Any suggestions would be appreciated. > > Thanks, > Ayan > > On Fri, 8 Sep 2006 08:03:05 -0400 > "Passera Pablo-APP015" <[EMAIL PROTECTED]> > wrote: > > 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
