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








Hi,

 

Thanks for reply.

 

It reports that I really have libcrypto.a=
.. Why=20
it still asks for libcrypto.so.0.9.7 when I use --disable-shared in my conf=
igure=20
phase?

In your description, it should link static libraries(libcrypto.a) when=
I=20
configure with --disable-shared.

Or I need to do other thing to indicate libcrypto.a is=20
available?

 

Thanks,

 

iTAS Tewen 

 

size=3D2><<<<<<<<<<<<<<<<&l=
t;<<<<<<<<<<<<<<<<<<&=
lt;<<>>>>>>>>>>>>>>>>=
>>>>>>>>>>>>>>>>>>&gt=
;>>

 

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

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

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



> Paramete=
r=20
"--disable-shared" seems unuseful!

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

Dave

style=3D"FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"> 

style=3D"FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><=
FONT=20
color=3D#000000>Hi,

>


face=3D=B7s=B2=D3=A9=FA=C5=E9 color=3D#000000 size=3D3> =20
style=3D"FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">

style=3D"FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><=
FONT=20
color=3D#000000>Thanks for=20
reply.

s=B2=D3=A9=FA=C5=E9=20
color=3D#000000 size=3D3> style=3D"FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">

style=3D"FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">=
lang=3DEN-GB style=3D"FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"> NT=20
size=3D3>I have t=
ried --disable-shared in my=20
configure phase.


style=3D"FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><=
FONT=20
color=3D#000000> face=3D=B7s=B2=D3=A9=FA=C5=E9>       &nb=
sp;      =20
../configure --disable-shared --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


style=3D"FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><=
FONT=20
color=3D#000000>
SPAN> 


style=3D"FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><=
FONT=20
color=3D#000000>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".


style=3D"FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><=
FONT=20
color=3D#000000> =3D o ns =3D=20
"urn:schemas-microsoft-comfficeffice" />>Parameter "--disable-share=
d"=20
seems unuseful! Or I make a mistake in my=20
steps?
>


style=3D"FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><=
FONT=20
color=3D#000000> face=3D=B7s=B2=D3=A9=FA=C5=E9>>>


style=3D"FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><=
FONT=20
color=3D#000000> face=3D=B7s=B2=D3=A9=FA=C5=E9>>>


style=3D"FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><=
FONT=20
color=3D#000000> face=3D=B7s=B2=D3=A9=FA=C5=E9>><<<<<<<<<<=
<<<<<<<<<<<<<<<<<<&lt=
;<<<<<<<<<<<<<<<<<<&l=
t;<<<<<<<<<>>>>>>>>>&=
gt;>>>>>>>>>>>>>>>>>>=
>>>>>>>>>>>>>>>>>>&gt=
;>>>>>>>>>>>>>
>
FONT>


style=3D"FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"> ONT=20
size=3D+0> style=3D"FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"> ONT=20
size=3D+0> style=3D"FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"> ONT=20
size=3D+0> style=3D"FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"> ONT=20
size=3D+0> style=3D"FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"> ONT=20
size=3D+0> style=3D"FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"> ONT=20
face=3DArial size=3D2> style=3D"FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">&n=
bsp;


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


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


EN-GB=20
style=3D"FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">=
>


EN-GB=20
style=3D"FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">Best=20
regards,>>


EN-GB=20
style=3D"FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">François=
=20
BALTAZAR>>


EN-GB=20
style=3D"FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">=
>



ce=3DPMingLiU=20
size=3D3>



style=3D"FONT-WEIGHT: bold; FONT-SIZE: 10pt; FONT-FAMILY: Tahoma">From: AN> face=3DTahoma size=3D2> 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] style=3D"FONT-WEIGHT: bold">On Behalf Of
Tewen Hsieh
=20
style=3D"FONT-WEIGHT: bold">Sent:
sexta-feira, 9 de Maio de 2008=
=20
10:06
To:=20
net-snmp-coders@lists.sourceforge.net
style=3D"FONT-WEIGHT: bold">Subject: net-snmp cross=20
compile>>


style=3D"FONT-SIZE: 12pt">>



style=3D"FONT-SIZE: 12pt">Hi,>>



style=3D"FONT-SIZE: 12pt"> >>



E: 12pt">I=20
tried to cross compile net-snmp-5.1.1, but I=20
failed.>>



E: 12pt">My=20
steps were as following:>>



style=3D"FONT-SIZE: 12pt"> >>



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



E: 12pt">step=20
2:  make
step 3:  make install
step 4:  cd /tmp
ste=
p 5:=20
tar cvf net-snmp-target.tar not

step 6: Then copy the tar file to&nb=
sp;my=20
target, and on my=20
target

step 7: cd /
step 8: tar xvf=20
net-snmp-target.tar>>



style=3D"FONT-SIZE: 12pt"> >>



E: 12pt">Then=20
I tried to run snmpd on my target, but I got an error message: color=3Dred>could not find libcrypto.so.0.9.7 ba=
la bala=20
....
>>



style=3D"FONT-SIZE: 12pt"> >>



style=3D"FONT-SIZE: 12pt"> >>



style=3D"FONT-SIZE: 12pt"> >>



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 to my=
=20
target(/usr/lib). Is there any parameter can be set in ./configure phase to=
=20
resolve this problem?>>



style=3D"FONT-SIZE: 12pt"> >>



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 cross=20
compiling?>>



style=3D"FONT-SIZE: 12pt"> >>



style=3D"FONT-SIZE: 12pt"> >>



style=3D"FONT-SIZE: 12pt">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,=20
Industry E. Rd. III, Science Park, Hsin-Chu, Taiwan 300,=20
R.O.C.
Tel:03-6662595=20
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--



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