On ons, 2008-05-14 at 21:28 +0800, Tewen Hsieh wrote:

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

Coud you please includ the output of ldd on both the agent and the .so.
 
> Why did I get this error? Is it possible that it's a .conf file
> problem?

I'd guess that there is some problem with the library resolve paths.
If you start snmpd as

LD_LIBRARY_PATH=/not/usr/lib ./snmpd -f -L -DwpWlsCore,dlmod

and repeats the test, does it work then?

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

It might help to add --with-ldflags=-Wl,-rpath,/not/usr/lib but that
could also be bad - I do not know enough to answer better.

/MF



-------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to