Hi,

Thanks for reply.

I describe my work again.
I cross compiled net-snmp-5.1.1 successfully.

My cross compile procedure:

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




But when I  loaded wpWlsCore.so and wpWlsBridge.so, I got following error 
message:
 
/not/usr/sbin> ./snmpd -f -L -DwpWlsCore,dlmod
 dlmod: register mib
 dlmod: dlmod_path: /not/usr//lib/snmp/dlmod
 dlmod: dlmod_create_module
 dlmod: dlmod_load_module wpWlsCoreMIB: /home/wpWlsCore.so
 dlopen failed: /home/wpWlsCore.so: undefined symbol: netsnmp_oid_stash_no_free
 dlmod: dlmod_create_module
 dlmod: dlmod_load_module wpWlsBridgeMIB: /home/wpWlsBridge.so
 dlopen failed: /home/wpWlsBridge.so: undefined symbol: 
netsnmp_oid_stash_no_free
 NET-SNMP version 5.1.1



wpWlsCore.so and wpWlsBridge.so were built against version 5.1.1. I also tried 
to load they into version 5.1.1.
I used ldd to check wpWlsBridge.so and snmpd. I am sure needed libraries are 
available in my file system.

Why did I get this error? Is it possible that it's a .conf file problem?
I also tried to compile net-snmp on my target with the native gcc, it worked 
fine.
So what I missed in my cross compile procedure?


Thanks,


iTAS Tewen



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

On mån, 2008-05-12 at 14:48 +0800, Tewen Hsieh wrote:
> Hi,
> 
> When I loaded wpWlsCore.so and wpWlsBridge.so, I got following error:
> 
> /not/usr/sbin> ./snmpd -f -L -DwpWlsCore,dlmod
> dlmod: register mib
> dlmod: dlmod_path: /not/usr//lib/snmp/dlmod
> dlmod: dlmod_create_module
> dlmod: dlmod_load_module wpWlsCoreMIB: /home/wpWlsCore.so
> dlopen failed: /home/wpWlsCore.so: undefined symbol:
> netsnmp_oid_stash_no_free
> dlmod: dlmod_create_module
> dlmod: dlmod_load_module wpWlsBridgeMIB: /home/wpWlsBridge.so
> dlopen failed: /home/wpWlsBridge.so: undefined symbol:
> netsnmp_oid_stash_no_free
> NET-SNMP version 5.1.1
> 
> Have you ever seen this error? 

Almost. I had other modules and another symbol.

> How can I  resolve this?

What version of net-snmp are wpWlsCore.so and wpWlsBridge.so built
against?
What version of net-snmp are you trying to load them into?

Also, what does ldd say about /home/wpWlsCore.so and snmpd?

The error message indicates that there is some problem in resolving
symbols referenced in the dynamic module.

/MF

永鈦鑫   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: Microsoft 
Defy all challenges. Microsoft(R) Visual Studio 2008. 
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to