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?
In your description, it should link static libraries(libcrypto.a) when I
configure with --disable-shared.
Or I need to do other thing to indicate libcrypto.a is available?
Thanks,
iTAS Tewen
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2008/5/9 Tewen Hsieh <[EMAIL PROTECTED]>:
> I have tried --disable-shared in my configure phase.
>
> ./configure --disable-shared --target=mips-linux
> --with-cc=mips2_fp_be-gcc --host=mips --with-endianness=big
> --prefix=/not/usr/ --with-install-prefix=/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
Hi,
Thanks for reply.
I have tried --disable-shared in my configure phase.
./configure --disable-shared --target=mips-linux
--with-cc=mips2_fp_be-gcc --host=mips --with-endianness=big --prefix=/not/usr/
--with-install-prefix=/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".
Parameter "--disable-shared" seems unuseful! Or I make a mistake in my steps?
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
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.
I think if you the flag –disable-shared when configuring, it will solve your
problem.
Best regards,
Francois BALTAZAR
--------------------------------------------------------------------------------
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Tewen Hsieh
Sent: sexta-feira, 9 de Maio de 2008 10:06
To: [email protected]
Subject: net-snmp cross compile
Hi,
I tried to cross compile net-snmp-5.1.1, but I failed.
My steps were as following:
step 1: ./configure --target=mips-linux --with-cc=mips2_fp_be-gcc --host=mips
--with-endianness=big --prefix=/not/usr/ --with-install-prefix=/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 not
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 there 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 snmpd
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 file is
correct. So is there any thing wrong in my cross compile procedure? Or I missed
something important when cross compiling?
Thanks,
永鈦鑫 iTAS Corporation
新竹科學園區工業東三路6號
NO. 6, Industry E. Rd. III, Science Park, Hsin-Chu, Taiwan 300, R.O.C.
Tel:03-6662595 Ext.1208
E-mail:[EMAIL PROTECTED]
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
-------------------------------------------------------------------------
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;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders