This is a discussion on net-snmp cross compile within the SNMP Coders forums, part of the Networking and Network Related category; This is a multi-part message in MIME format. --===============0765969544== Content-Type: multipart/alternative; boundary="----=_NextPart_000_000A_01C8B1F6.E2F494D0" This ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
This is a multi-part message in MIME format.
--===============0765969544== Content-Type: multipart/alternative; boundary="----=_NextPart_000_000A_01C8B1F6.E2F494D0" This is a multi-part message in MIME format. ------=_NextPart_000_000A_01C8B1F6.E2F494D0 Content-Type: text/plain; charset="big5" Content-Transfer-Encoding: quoted-printable Hi, I tried to cross compile net-snmp-5.1.1, but I failed. My steps were as following: step 1: ./configure --target=3Dmips-linux --with-cc=3Dmips2_fp_be-gcc --hos= t=3Dmips --with-endianness=3Dbig --prefix=3D/not/usr/ --with-install-prefix= =3D/tmp step 2: make step 3: make install step 4: cd /tmp step 5: tar cvf net-snmp-target.tar not step 6: Then copy the tar file to my target, and on my target step 7: cd / step 8: tar xvf net-snmp-target.tar Then I tried to run snmpd on my target, but I got an error message: could n= ot find libcrypto.so.0.9.7 bala bala ... Question 1: How can I cross compile net-snmp as static link ? I mean I can = run snmpd without moving libcrypto.so.0.9.7 to my target(/usr/lib). Is ther= e any parameter can be set in ./configure phase to resolve this problem? Question 2: Although my snmpd can be executed. It seems no response from sn= mpd when I send a snmp request to it (I used "netstat -a" to check it, port= 161 is opened, but its state is not listening.). I am sure my snmpd.conf f= ile is correct. So is there any thing wrong in my cross compile procedure? = Or I missed something important when cross compiling? Thanks, iTAS Tewen =A5=C3=DCg=F8=CA iTAS Corporation =B7s=A6=CB=AC=EC=BE=C7=B6=E9=B0=CF=A4u=B7~=AAF=A4T =B8=F46=B8=B9 NO. 6, Industry E. Rd. III, Science Park, Hsin-Chu, Taiwan 300, R.O.C. Tel:03-6662595 Ext.1208 E-mail:tewen.hsieh@itas.com.tw --=20 This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. ------=_NextPart_000_000A_01C8B1F6.E2F494D0 Content-Type: text/html; charset="big5" Content-Transfer-Encoding: quoted-printable <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META http-equiv=3DContent-Type content=3D"text/html; charset=3Dbig5"> <META content=3D"MSHTML 6.00.2900.3314" name=3DGENERATOR> <STYLE></STYLE> </HEAD> <BODY bgColor=3D#ffffff> <DIV>Hi,</DIV> <DIV> </DIV> <DIV>I tried to cross compile net-snmp-5.1.1, but I failed.</DIV> <DIV>My steps were as following:</DIV> <DIV> </DIV> <DIV>step 1: ./configure --target=3Dmips-linux --with-cc=3Dmips2_fp_be-gcc= =20 --host=3Dmips --with-endianness=3Dbig --prefix=3D/not/usr/=20 --with-install-prefix=3D/tmp</DIV> <DIV>step 2: make<BR>step 3: make install<BR>step 4: cd= =20 /tmp<BR>step 5: tar cvf net-snmp-target.tar not<BR><BR>step 6: Then copy th= e tar=20 file to my target, and <FONT color=3D#ff0000>on my target</FONT><= BR>step=20 7: cd /<BR>step 8: tar xvf net-snmp-target.tar</DIV> <DIV> </DIV> <DIV>Then I tried to run snmpd on my target, but I got an error message: <F= ONT=20 color=3D#ff0000>could not find libcrypto.so.0.9.7 bala bala ...</FONT></DIV> <DIV><FONT color=3D#ff0000></FONT> </DIV> <DIV><FONT color=3D#ff0000></FONT> </DIV> <DIV><FONT color=3D#ff0000></FONT> </DIV> <DIV>Question 1: How can I cross compile net-snmp as static link ? I mean I= can=20 run snmpd without moving libcrypto.so.0.9.7 to my target(/usr/lib). Is= =20 there any parameter can be set in ./configure phase to resolve this=20 problem?</DIV> <DIV> </DIV> <DIV>Question 2: Although my snmpd can be executed. It seems no response fr= om=20 snmpd when I send a snmp request to it (I used "netstat -a" to check it, po= rt=20 161 is opened, but its state is not listening.). I am sure my snmpd.conf fi= le is=20 correct. So is there any thing wrong in my cross compile procedure? Or I mi= ssed=20 something important when cross compiling?</DIV> <DIV><FONT size=3D2></FONT> </DIV> <DIV> </DIV> <DIV>Thanks,</DIV> <DIV> </DIV> <DIV> </DIV> <DIV> </DIV> <DIV>iTAS Tewen</DIV> <DIV><FONT size=3D2></FONT> </DIV> <DIV><FONT size=3D2></FONT> </DIV> <DIV><FONT size=3D2></FONT><FONT size=3D2></FONT><BR></DIV> <DIV><FONT size=3D2></FONT><FONT size=3D2></FONT><BR></DIV> <DIV><FONT size=3D2></FONT> </DIV> <DIV><FONT size=3D2>=A5=C3=DCg=F8=CA iTAS Corporation<BR>=B7s= =A6=CB=AC=EC=BE=C7=B6=E9=B0=CF=A4u=B7~=AAF=A4T=B8= F46=B8=B9<BR>NO. 6,=20 Industry E. Rd. III, Science Park, Hsin-Chu, Taiwan 300,=20 R.O.C.<BR>Tel:03-6662595=20 Ext.1208<BR>E-mail:tewen.hsieh@itas.com.tw</FONT></DIV></BODY><br />--=20 <br />This message has been scanned for viruses and <br />dangerous content by <a href=3D"http://www.mailscanner.info/"><b>MailScanner</b></a>, and is <br />believed to be clean. </HTML> ------=_NextPart_000_000A_01C8B1F6.E2F494D0-- --===============0765969544== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757...un.com/javaone --===============0765969544== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Net-snmp-coders mailing list Net-snmp-coders@lists.sourceforge.net https://lists.sourceforge.net/lists/...et-snmp-coders --===============0765969544==-- |
![]() |
| Thread Tools | |
| Display Modes | |
|
|