Hi,
Thanks for reply.
Coud you please includ the output of ldd on both the agent and the .so.
/not/usr/sbin> ls
snmpd snmptrapd
/not/usr/sbin> ldd ./snmpd
libdl.so.2 => /lib/libdl.so.2 (0x2ab01000)
libcrypto.so.0.9.7 => /usr/lib/libcrypto.so.0.9.7 (0x2ab44000)
libelf.so.1 => /usr/lib/libelf.so.1 (0x2aca3000)
libm.so.6 => /lib/libm.so.6 (0x2acfb000)
libc.so.6 => /lib/libc.so.6 (0x2adaf000)
/lib/ld.so.1 (0x2aaa8000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x2af2d000)
/not/usr/sbin> cd /home
/home> ls
WLS root wpWlsBridge.so wpWlsCore.so
/home> ldd wpWlsBridge.so
libpthread.so.0 => /lib/libpthread.so.0 (0x2ab47000)
librt.so.1 => /lib/librt.so.1 (0x2abdb000)
libc.so.6 => /lib/libc.so.6 (0x2ac2e000)
/lib/ld.so.1 (0x55550000)
/home> ldd wpWlsCore.so
libpthread.so.0 => /lib/libpthread.so.0 (0x2ab61000)
librt.so.1 => /lib/librt.so.1 (0x2abf5000)
libc.so.6 => /lib/libc.so.6 (0x2ac48000)
/lib/ld.so.1 (0x55550000)
/home>
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 have tried this, but it still showed the same error message.
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.
I also tried this, but still the same error.
iTAS Tewen
永鈦鑫 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]
----- Original Message -----
From: "Magnus Fromreide" <[EMAIL PROTECTED]>
To: "Tewen Hsieh" <[EMAIL PROTECTED]>
Cc: <net-snmp-coders@lists.sourceforge.net>
Sent: Thursday, May 15, 2008 3:29 AM
Subject: Re: dlmod error
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 message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
--
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