On Mon, Mar 19, 2012 at 1:07 PM, Bart Van Assche <bvanass...@acm.org> wrote:
> On 03/19/12 16:16, Fulko Hew wrote:
> > C:\usr\bin>snmpd
> >
> -I-udp,udpTable,tcp,tcpTable,icmp,ip,interfaces,system_mib,sysORTable,snmp_mib
> > -DwinExtDll
> > registered debug token winExtDll, 1
> > init_winExtDLL: initialization of DLL C:\Windows\System32\wow64mib.dll
> > failed.
> > init_winExtDLL: initialization of DLL C:\Windows\System32\evntagnt.dll
> > failed.
> > init_winExtDLL: initialization of DLL C:\Windows\System32\hostmib.dll
> > failed.
> > NET-SNMP version 5.7.1
> >
>
> Are you trying to load 32-bit DLLs into a 64-bit snmpd ?
Judging by one of the names that fails (wow64mib) you would think it was
trying to load a 64 bit DLL into a 32 bit snmdpd (How would I know?)
(Note: regardless of whether I run' vcvars32.bat x86' or choose 'x64',
the cl.exe command lines always show '/D "WIN32"' being used.)
I'm afraid that
> won't work. If you want to use 32-bit extension DLLs you should build
> Net-SNMP as a 32-bit executable.
Well... I don't know whats really going on...
I was told by the dev team that 'there wasn't a 'recent Windows x64 build
of Net-SNMP'
and that the latest available binaries are only for Net-SNMP v 5.5 (or
before)
(FYI we need a version that contains a fix from circa Nov 2011?
"sysobjectid configurable
(successfully) via snmpd.conf".)
So I was assuming that he needed an 'x64 build' to run on an x64 version of
MS Windows,
and that an 'x86' version would not work on an x64 build of MS Windows
(correct me if I'm wrong. See my comments on my next test below).
That's why I'm trying to build an x64 version on Win 7.
As for 32bit DLLs in a 64 bit snmpd... I wasn't aware that's what was going
on
(although I suspected it) . Looking more closely, I see that its trying to
load
six different DLLs... 3 work (snmpmib.dll, inetmib1.dll, lmmib2.dll), and 3
don't.
work (wow64mib.dll, eventagnt.dll, hostmib.dll) failling with the
diagnostic msg above.
So that with your comment would lead me to believe that some of the
Microsoft
supplied DLLs are 32 bits and others are 64 bit. That would also imply
that the
Microsoft agent supports both 32 bit and 64 bit DLLs, and that Net-SNMP can
only
load one or the other?
... So I thought I'd compile with vcvarsall.bat x86 (expecting to see the
'other' 3 DLLs fail to load).
Now I see (when using snmp -DALL) that snmpd sees only _5_ DLLs to load
(it omitted the wow64mib) and its now _hanging_ (instead) on the first one
it tries (eventagnt.dll).
Now I'm totally confused. :-(
------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders