Hi, Thanks for the help!
 
With Thomas' help, I have finished cross compile on ARM9 successfully. And I can run "snmpd -d -Le -f" to start the main agent of Net-SNMP. Thank you very much!
 
But the next problem occurred. I wrote some codes for a test mib file: ComputerMIB. And I have compile those file into a ".so" file in order to use it as a dynamic link library. This ".so" file worked well in X86. But after I recompiled it with ARM9 and run it with "snmpd -d -Le -f"(I have already insert a line for the file in snmd.conf), the follow error occurred:

-bash-3.00# snmpd -f -Le -d
dlopen failed: /snmpLib/scalarVariable.so: undefined symbol: snmp_get_do_debugging
NET-SNMP version 5.2.2
 
The scalarVariable.so is my ".so" file for the ComputerMIB. It seemed snmpd can not find some standard library. Maybe I should set the "LD_LIBRARY_PATH"? But I have tried and failed. Am I right? And how to solve it?
 
Many thanks!
 
Sincerely
Peter
 
On 9/23/06, Thomas Anders <[EMAIL PROTECTED]> wrote:
Zhang Chuan wrote:
> But the next problem occurred, I have to migrate the agent from X86 to
> ARM9.
> I have get the cross compile(arm-linux-gcc). But how can I compile the
> snmpd with the cross compile tool? Should I only change the "gcc" to
> "arm-linux-gcc" in the Makefile, and "configure", "make install" them? Or
> there are some other things should be changed?

http://www.freesnmp.com/net-snmp/faqs/#cross


+Thomas

--
Thomas Anders (thomas.anders at blue-cable.de)



--
you jump, I jump,she jump 3
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to