This is a discussion on net-snmp cross compile - SNMP ; This is a multi-part message in MIME format. --===============1284950137== Content-Type: multipart/alternative; boundary="----=_NextPart_000_0020_01C8B1FF.6E938E80" This is a multi-part message in MIME format. ------=_NextPart_000_0020_01C8B1FF.6E938E80 Content-Type: text/plain; charset="big5" Content-Transfer-Encoding: quoted-printable Hi, Thanks for reply. I have tried --disable-shared in my configure phase. ./configure --disable-shared ...
This is a multi-part message in MIME format.
--===============1284950137==
Content-Type: multipart/alternative;
boundary="----=_NextPart_000_0020_01C8B1FF.6E938E80"
This is a multi-part message in MIME format.
------=_NextPart_000_0020_01C8B1FF.6E938E80
Content-Type: text/plain;
charset="big5"
Content-Transfer-Encoding: quoted-printable
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?
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>>>=
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
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,
=20
=20
=20
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_0020_01C8B1FF.6E938E80
Content-Type: text/html;
charset="big5"
Content-Transfer-Encoding: quoted-printable
=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>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"><=
s=B2=D3=A9=FA=C5=E9=20
FONT=20
color=3D#000000>Thanks for=20
reply.
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-comffice
ffice" />
>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>><<<<<<<<<<=
<<<<<<<<<<<<<<<<<<<=
;<<<<<<<<<<<<<<<<<<&l=
t;<<<<<<<<<>>>>>>>>>&=
gt;>>>>>>>>>>>>>>>>>>=
>>>>>>>>>>>>>>>>>>>=
;>>>>>>>>>>>>>>=
FONT>
style=3D"FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">
ONT> lang=3DEN-GB=20
style=3D"FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">ONT> lang=3DEN-GB=20
style=3D"FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">ONT> lang=3DEN-GB=20
style=3D"FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">ONT> lang=3DEN-GB=20
style=3D"FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">ONT> lang=3DEN-GB=20
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,
>>
style=3D"FONT-SIZE: 12pt">
>>
style=3D"FONT-SIZE: 12pt">
>>
style=3D"FONT-SIZE: 12pt">
>>
E: 12pt">iTAS=20
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,=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_0020_01C8B1FF.6E938E80--
--===============1284950137==
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
--===============1284950137==
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
--===============1284950137==--