net-snmp cross compile

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. --===============1640847528== Content-Type: multipart/alternative; boundary="----=_NextPart_000_0046_01C8B202.CB33AFA0" This ...


Go Back   Usenet Forums > Networking and Network Related > SNMP Coders

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 4 Days Ago
Tewen Hsieh
 
Posts: n/a
Default net-snmp cross compile

This is a multi-part message in MIME format.

--===============1640847528==
Content-Type: multipart/alternative;
boundary="----=_NextPart_000_0046_01C8B202.CB33AFA0"

This is a multi-part message in MIME format.

------=_NextPart_000_0046_01C8B202.CB33AFA0
Content-Type: text/plain;
charset="big5"
Content-Transfer-Encoding: quoted-printable

Hi,

Thanks for reply.

It reports that I really have libcrypto.a. Why it still asks for libcrypto.=
so.0.9.7 when I use --disable-shared in my configure phase?=20
In your description, it should link static libraries(libcrypto.a) when I co=
nfigure with --disable-shared.
Or I need to do other thing to indicate libcrypto.a is available?

Thanks,

iTAS Tewen=20

<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>>>>>>>>

2008/5/9 Tewen Hsieh <tewen.hsieh@itas.com.tw>:
> I have tried --disable-shared in my configure phase.
>
> ./configure --disable-shared --target=3Dmips-linux
> --with-cc=3Dmips2_fp_be-gcc --host=3Dmips --with-endianness=3Dbig
> --prefix=3D/not/usr/ --with-install-prefix=3D/tmp
>
>
>
> But it still shows "./snmpd: error while loading shared libraries:
> libcrypto.so.0.9.7: cannot open shared object file: No such file or
> directory.


Which versions of the crypto library do you have installed?
What does "locate libcrypto" report?

If it doesn't mention 'libcrypto.a', then you may need to install
the openssl-devel RPM (or similar).



> Parameter "--disable-shared" seems unuseful!


The linker can only link in the static libraries that it can find.
If you don't have a static version of the crypto library available,
then it will have to use the dynamic version.

Dave
=20
Hi,

Thanks for reply.

I have tried --disable-shared in my configure phase.

./configure --disable-shared --target=3Dmips-linux --with-cc=
=3Dmips2_fp_be-gcc --host=3Dmips --with-endianness=3Dbig --prefix=3D/not/us=
r/ --with-install-prefix=3D/tmp



But it still shows "./snmpd: error while loading shared libraries: libcrypt=
o.so.0.9.7: cannot open shared object file: No such file or directory".

Parameter "--disable-shared" seems unuseful! Or I make a mistake in my step=
s?

=20

=20

<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< <<<<<<<>>>>>>>>>>>>>>>>>>=
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>




I think I have already seen the same problem, (I am also cross-compiling 5.=
1.1) end let me say that it is an hard Work and if your MIB has some (read-=
create) tables, you will not be able to implement.=20

I think if you the flag =A1Vdisable-shared when configuring, it will solve =
your problem.

=20

Best regards,

Francois BALTAZAR

=20


---------------------------------------------------------------------------=
-----

From: net-snmp-coders-bounces@lists.sourceforge.net [mailto:net-snmp-coders=
-bounces@lists.sourceforge.net] On Behalf Of Tewen Hsieh
Sent: sexta-feira, 9 de Maio de 2008 10:06
To: net-snmp-coders@lists.sourceforge.net
Subject: net-snmp cross compile

=20

Hi,

=20

I tried to cross compile net-snmp-5.1.1, but I failed.

My steps were as following:

=20

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

=20

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 ...

=20

=20

=20

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?

=20

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?

=20

=20

Thanks,

=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_0046_01C8B202.CB33AFA0
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>&nbsp;</DIV>
<DIV>Thanks for reply.</DIV>
<DIV>&nbsp;</DIV>
<DIV>It reports that<FONT color=3D#ff0000> I really have libcrypto.a</FONT>=
.. Why=20
it still asks for libcrypto.so.0.9.7 when I use --disable-shared in my conf=
igure=20
phase? </DIV>
<DIV>In your description, it should link static libraries(libcrypto.a) when=
I=20
configure with --disable-shared.</DIV>
<DIV>Or I&nbsp;need to do other thing to indicate&nbsp;libcrypto.a is=20
available?</DIV>
<DIV>&nbsp;</DIV>
<DIV>Thanks,</DIV>
<DIV>&nbsp;</DIV>
<DIV>iTAS Tewen&nbsp;</DIV>
<DIV><FONT size=3D2><FONT size=3D2></FONT></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2><FONT=20
size=3D2>&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;& lt;&lt;&lt;&lt;&lt;&lt;&l=
t;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt; &lt;&lt;&lt;&lt;&lt;&lt;&=
lt;&lt;&lt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt ;&gt;&gt;&gt;&gt;&gt;&gt;=
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&g t;&gt;&gt;&gt;&gt;&gt;&gt=
;&gt;&gt;</FONT></FONT></DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2><FONT size=3D3>2008/5/9 Tewen Hsieh &lt;</FONT><A href=
=3D""><FONT=20
size=3D3>tewen.hsieh@itas.com.tw</FONT></A><FONT size=3D3>&gt;:<BR>&gt; I h=
ave tried=20
--disable-shared in my configure=20
phase.<BR>&gt;<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbs p;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
../configure --disable-shared --target=3Dmips-linux<BR>&gt;=20
--with-cc=3Dmips2_fp_be-gcc --host=3Dmips --with-endianness=3Dbig<BR>&gt;=
=20
--prefix=3D/not/usr/ --with-install-prefix=3D/tmp<BR>&gt;<BR>&gt;<BR>&gt;<B=
R>&gt;=20
But it still shows "./snmpd: error while loading shared libraries:<BR>&gt;=
=20
libcrypto.so.0.9.7: cannot open shared object file: No such file or<BR>&gt;=
=20
directory.<BR><BR>Which versions of the crypto library do you have=20
installed?<BR>What does&nbsp;&nbsp;&nbsp; "locate libcrypto"&nbsp;&nbsp;=20
report?<BR><BR>If it doesn't mention 'libcrypto.a', then you may need to=20
install<BR>the openssl-devel RPM (or similar).<BR><BR><BR><BR>&gt; Paramete=
r=20
"--disable-shared" seems unuseful!<BR><BR>The linker can only link in the s=
tatic=20
libraries that it can find.<BR>If you don't have a static version of the cr=
ypto=20
library available,<BR>then it will have to use the dynamic=20
version.<BR><BR>Dave</FONT><BR><SPAN lang=3DEN-GB=20
style=3D"FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">&nbsp;</DIV>
<P class=3DMsoNormal><FONT size=3D+0><SPAN lang=3DEN-GB=20
style=3D"FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><FONT size=3D3><=
FONT=20
color=3D#000000><FONT face=3D=B7s=B2=D3=A9=FA=C5=E9>Hi,</FONT></FONT></FONT=
></SPAN></FONT></P><FONT=20

face=3D=B7s=B2=D3=A9=FA=C5=E9 color=3D#000000 size=3D3><SPAN lang=3DEN-GB=
=20
style=3D"FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">
<P class=3DMsoNormal><FONT size=3D+0><SPAN lang=3DEN-GB=20
style=3D"FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><FONT size=3D3><=
FONT=20
color=3D#000000><FONT face=3D=B7s=B2=D3=A9=FA=C5=E9>Thanks for=20
reply.</FONT></FONT></FONT></SPAN></FONT></P></SPAN></FONT><FONT face=3D=B7=
s=B2=D3=A9=FA=C5=E9=20
color=3D#000000 size=3D3><SPAN lang=3DEN-GB=20
style=3D"FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"></SPAN></FONT>
<P class=3DMsoNormal><FONT size=3D+0><SPAN lang=3DEN-GB=20
style=3D"FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><FONT size=3D+0>=
<SPAN=20
lang=3DEN-GB style=3D"FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><FO=
NT=20
size=3D3><FONT color=3D#000000><FONT face=3D=B7s=B2=D3=A9=FA=C5=E9>I have t=
ried --disable-shared in my=20
configure phase.</FONT></FONT></FONT></SPAN></FONT></P></SPAN></FONT>
<P class=3DMsoNormal></SPAN><FONT size=3D+0><SPAN lang=3DEN-GB=20
style=3D"FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><FONT size=3D3><=
FONT=20
color=3D#000000><FONT=20
face=3D=B7s=B2=D3=A9=FA=C5=E9>&nbsp;&nbsp;&nbsp;&n bsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
../configure <FONT color=3D#ff0000>--disable-shared</FONT> --target=3Dmips-l=
inux=20
--with-cc=3Dmips2_fp_be-gcc --host=3Dmips --with-endianness=3Dbig --prefix=
=3D/not/usr/=20
--with-install-prefix=3D/tmp</FONT></FONT></FONT></SPAN></FONT></P>
<P class=3DMsoNormal><FONT size=3D+0><SPAN lang=3DEN-GB=20
style=3D"FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><FONT size=3D3><=
FONT=20
color=3D#000000><FONT face=3D=B7s=B2=D3=A9=FA=C5=E9></FONT></FONT></FONT></=
SPAN></FONT>&nbsp;</P>
<P class=3DMsoNormal><FONT size=3D+0><SPAN lang=3DEN-GB=20
style=3D"FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><FONT size=3D3><=
FONT=20
color=3D#000000><FONT face=3D=B7s=B2=D3=A9=FA=C5=E9>But it still shows "./s=
nmpd: error while loading=20
shared libraries: libcrypto.so.0.9.7: cannot open shared object file: No su=
ch=20
file or directory".</FONT></FONT></FONT></SPAN></FONT></P>
<P class=3DMsoNormal><FONT size=3D+0><SPAN lang=3DEN-GB=20
style=3D"FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><FONT size=3D3><=
FONT=20
color=3D#000000><FONT face=3D=B7s=B2=D3=A9=FA=C5=E9><?xml:namespace prefix =
=3D o ns =3D=20
"urn:schemas-microsoft-com:office:office" /><o:p>Parameter "--disable-share=
d"=20
seems unuseful! Or I make a mistake in my=20
steps?</o:p></FONT></FONT></FONT></SPAN></FONT></P>
<P class=3DMsoNormal><FONT size=3D+0><SPAN lang=3DEN-GB=20
style=3D"FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><FONT size=3D3><=
FONT=20
color=3D#000000><FONT=20
face=3D=B7s=B2=D3=A9=FA=C5=E9><o:p></o:p></FONT></FONT></FONT></SPAN></FONT=
>&nbsp;</P>

<P class=3DMsoNormal><FONT size=3D+0><SPAN lang=3DEN-GB=20
style=3D"FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><FONT size=3D3><=
FONT=20
color=3D#000000><FONT=20
face=3D=B7s=B2=D3=A9=FA=C5=E9><o:p></o:p></FONT></FONT></FONT></SPAN></FONT=
>&nbsp;</P>

<P class=3DMsoNormal><FONT size=3D+0><SPAN lang=3DEN-GB=20
style=3D"FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><FONT size=3D3><=
FONT=20
color=3D#000000><FONT=20
face=3D=B7s=B2=D3=A9=FA=C5=E9><o:p>&lt;&lt;&lt;&lt ;&lt;&lt;&lt;&lt;&lt;&lt;=
&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&l t;&lt;&lt;&lt;&lt;&lt;&lt=
;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;& lt;&lt;&lt;&lt;&lt;&lt;&l=
t;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&gt;&gt;&gt; &gt;&gt;&gt;&gt;&gt;&gt;&=
gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt ;&gt;&gt;&gt;&gt;&gt;&gt;=
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&g t;&gt;&gt;&gt;&gt;&gt;&gt=
;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;& gt;</o:p></FONT></FONT></=
FONT></SPAN></FONT></P>
<P class=3DMsoNormal><FONT size=3D+0><SPAN lang=3DEN-GB=20
style=3D"FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"></SPAN></FONT><F=
ONT=20
size=3D+0><SPAN lang=3DEN-GB=20
style=3D"FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"></SPAN></FONT><F=
ONT=20
size=3D+0><SPAN lang=3DEN-GB=20
style=3D"FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"></SPAN></FONT><F=
ONT=20
size=3D+0><SPAN lang=3DEN-GB=20
style=3D"FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"></SPAN></FONT><F=
ONT=20
size=3D+0><SPAN lang=3DEN-GB=20
style=3D"FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"></SPAN></FONT><F=
ONT=20
size=3D+0><SPAN lang=3DEN-GB=20
style=3D"FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"></SPAN></FONT><F=
ONT=20
face=3DArial size=3D2><SPAN lang=3DEN-GB=20
style=3D"FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"></SPAN></FONT>&n=
bsp;</P>
<P class=3DMsoNormal><FONT face=3DArial color=3Dnavy size=3D2><SPAN lang=3D=
EN-GB=20
style=3D"FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">I think I have a=
lready=20
seen the same problem, (I am also cross-compiling 5.1.1) end let me say tha=
t it=20
is an hard Work and if your MIB has some (read-create) tables, you will not=
be=20
able to implement. <o:p></o:p></SPAN></FONT></P>
<P class=3DMsoNormal><FONT face=3DArial color=3Dnavy size=3D2><SPAN lang=3D=
EN-GB=20
style=3D"FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">I think if you t=
he flag=20
=A1Vdisable-shared when configuring, it will solve your=20
problem.<o:p></o:p></SPAN></FONT></P>
<P class=3DMsoNormal><FONT face=3DArial color=3Dnavy size=3D2><SPAN lang=3D=
EN-GB=20
style=3D"FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><o:p>&nbsp;</o:p=
></SPAN></FONT></P>

<P class=3DMsoNormal><FONT face=3DArial color=3Dnavy size=3D2><SPAN lang=3D=
EN-GB=20
style=3D"FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">Best=20
regards,<o:p></o:p></SPAN></FONT></P>
<P class=3DMsoNormal><FONT face=3DArial color=3Dnavy size=3D2><SPAN lang=3D=
EN-GB=20
style=3D"FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">Fran&ccedil;ois=
=20
BALTAZAR<o:p></o:p></SPAN></FONT></P>
<P class=3DMsoNormal><FONT face=3DArial color=3Dnavy size=3D2><SPAN lang=3D=
EN-GB=20
style=3D"FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><o:p>&nbsp;</o:p=
></SPAN></FONT></P>

<DIV>
<DIV class=3DMsoNormal style=3D"TEXT-ALIGN: center" align=3Dcenter><FONT fa=
ce=3DPMingLiU=20
size=3D3><SPAN lang=3DEN-US style=3D"FONT-SIZE: 12pt">
<HR tabIndex=3D-1 align=3Dcenter width=3D"100%" SIZE=3D2>
</SPAN></FONT></DIV>
<P class=3DMsoNormal><B><FONT face=3DTahoma size=3D2><SPAN lang=3DEN-US=20
style=3D"FONT-WEIGHT: bold; FONT-SIZE: 10pt; FONT-FAMILY: Tahoma">From:</SP=
AN></FONT></B><FONT=20
face=3DTahoma size=3D2><SPAN lang=3DEN-US=20
style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Tahoma">=20
net-snmp-coders-bounces@lists.sourceforge.net=20
[mailto:net-snmp-coders-bounces@lists.sourceforge.net] <B><SPAN=20
style=3D"FONT-WEIGHT: bold">On Behalf Of </SPAN></B>Tewen Hsieh<BR><B><SPAN=
=20
style=3D"FONT-WEIGHT: bold">Sent:</SPAN></B> sexta-feira, 9 de Maio de 2008=
=20
10:06<BR><B><SPAN style=3D"FONT-WEIGHT: bold">To:</SPAN></B>=20
net-snmp-coders@lists.sourceforge.net<BR><B><SPAN=20
style=3D"FONT-WEIGHT: bold">Subject:</SPAN></B> net-snmp cross=20
compile</SPAN></FONT><SPAN lang=3DEN-US><o:p></o:p></SPAN></P></DIV>
<P class=3DMsoNormal><FONT face=3DPMingLiU size=3D3><SPAN=20
style=3D"FONT-SIZE: 12pt"><o:p>&nbsp;</o:p></SPAN></FONT></P>
<DIV>
<P class=3DMsoNormal><FONT face=3DPMingLiU size=3D3><SPAN=20
style=3D"FONT-SIZE: 12pt">Hi,<o:p></o:p></SPAN></FONT></P></DIV>
<DIV>
<P class=3DMsoNormal><FONT face=3DPMingLiU size=3D3><SPAN=20
style=3D"FONT-SIZE: 12pt">&nbsp;<o:p></o:p></SPAN></FONT></P></DIV>
<DIV>
<P class=3DMsoNormal><FONT face=3DPMingLiU size=3D3><SPAN style=3D"FONT-SIZ=
E: 12pt">I=20
tried to cross compile net-snmp-5.1.1, but I=20
failed.<o:p></o:p></SPAN></FONT></P></DIV>
<DIV>
<P class=3DMsoNormal><FONT face=3DPMingLiU size=3D3><SPAN style=3D"FONT-SIZ=
E: 12pt">My=20
steps&nbsp;were&nbsp;as following:<o:p></o:p></SPAN></FONT></P></DIV>
<DIV>
<P class=3DMsoNormal><FONT face=3DPMingLiU size=3D3><SPAN=20
style=3D"FONT-SIZE: 12pt">&nbsp;<o:p></o:p></SPAN></FONT></P></DIV>
<DIV>
<P class=3DMsoNormal><FONT face=3DPMingLiU size=3D3><SPAN style=3D"FONT-SIZ=
E: 12pt">step=20
1: ./configure --target=3Dmips-linux --with-cc=3Dmips2_fp_be-gcc --host=3Dm=
ips=20
--with-endianness=3Dbig --prefix=3D/not/usr/=20
--with-install-prefix=3D/tmp<o:p></o:p></SPAN></FONT></P></DIV>
<DIV>
<P class=3DMsoNormal><FONT face=3DPMingLiU size=3D3><SPAN style=3D"FONT-SIZ=
E: 12pt">step=20
2: &nbsp;make<BR>step 3:&nbsp; make install<BR>step 4:&nbsp; cd /tmp<BR>ste=
p 5:=20
tar cvf net-snmp-target.tar not<BR><BR>step 6: Then copy the tar file to&nb=
sp;my=20
target, and <FONT color=3Dred><SPAN style=3D"COLOR: red">on&nbsp;my=20
target</SPAN></FONT><BR>step 7: cd /<BR>step 8: tar xvf=20
net-snmp-target.tar<o:p></o:p></SPAN></FONT></P></DIV>
<DIV>
<P class=3DMsoNormal><FONT face=3DPMingLiU size=3D3><SPAN=20
style=3D"FONT-SIZE: 12pt">&nbsp;<o:p></o:p></SPAN></FONT></P></DIV>
<DIV>
<P class=3DMsoNormal><FONT face=3DPMingLiU size=3D3><SPAN style=3D"FONT-SIZ=
E: 12pt">Then=20
I tried to run snmpd on my target, but I got an error message: <FONT=20
color=3Dred><SPAN style=3D"COLOR: red">could not find libcrypto.so.0.9.7 ba=
la bala=20
....</SPAN></FONT><o:p></o:p></SPAN></FONT></P></DIV>
<DIV>
<P class=3DMsoNormal><FONT face=3DPMingLiU size=3D3><SPAN=20
style=3D"FONT-SIZE: 12pt">&nbsp;<o:p></o:p></SPAN></FONT></P></DIV>
<DIV>
<P class=3DMsoNormal><FONT face=3DPMingLiU size=3D3><SPAN=20
style=3D"FONT-SIZE: 12pt">&nbsp;<o:p></o:p></SPAN></FONT></P></DIV>
<DIV>
<P class=3DMsoNormal><FONT face=3DPMingLiU size=3D3><SPAN=20
style=3D"FONT-SIZE: 12pt">&nbsp;<o:p></o:p></SPAN></FONT></P></DIV>
<DIV>
<P class=3DMsoNormal><FONT face=3DPMingLiU size=3D3><SPAN=20
style=3D"FONT-SIZE: 12pt">Question 1: How can I cross compile net-snmp as s=
tatic=20
link ? I mean I can run snmpd without moving libcrypto.so.0.9.7&nbsp;to my=
=20
target(/usr/lib). Is there any parameter can be set in ./configure phase to=
=20
resolve this problem?<o:p></o:p></SPAN></FONT></P></DIV>
<DIV>
<P class=3DMsoNormal><FONT face=3DPMingLiU size=3D3><SPAN=20
style=3D"FONT-SIZE: 12pt">&nbsp;<o:p></o:p></SPAN></FONT></P></DIV>
<DIV>
<P class=3DMsoNormal><FONT face=3DPMingLiU size=3D3><SPAN=20
style=3D"FONT-SIZE: 12pt">Question 2: Although my snmpd can be executed. It=
seems=20
no response from snmpd when I send a snmp request to it (I used "netstat -a=
" to=20
check it, port 161 is opened, but its state is not listening.). I am sure m=
y=20
snmpd.conf file is correct. So is there any thing wrong in my cross compile=
=20
procedure? Or I missed something important when&nbsp;cross=20
compiling?<o:p></o:p></SPAN></FONT></P></DIV>
<DIV>
<P class=3DMsoNormal><FONT face=3DPMingLiU size=3D3><SPAN=20
style=3D"FONT-SIZE: 12pt">&nbsp;<o:p></o:p></SPAN></FONT></P></DIV>
<DIV>
<P class=3DMsoNormal><FONT face=3DPMingLiU size=3D3><SPAN=20
style=3D"FONT-SIZE: 12pt">&nbsp;<o:p></o:p></SPAN></FONT></P></DIV>
<DIV>
<P class=3DMsoNormal><FONT face=3DPMingLiU size=3D3><SPAN=20
style=3D"FONT-SIZE: 12pt">Thanks,<o:p></o:p></SPAN></FONT></P></DIV></FONT>
<DIV><FONT size=3D2>=A5=C3=DCg=F8=CA&nbsp;&nbsp; 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_0046_01C8B202.CB33AFA0--



--===============1640847528==
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
--===============1640847528==
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

--===============1640847528==--


Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 07:11 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0