Re: mib2c -c mib2c.mfd.conf
Simon Chamlian <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <CAJTs9V=h_1wqE4_SivvitA6GeHVPjP-kNvpa3Cu-te3LQpyV6Q@mail.gmail.com> |
I installed libper-dev. So now, I did the following steps: ./configure --enable-embedded-perl --enable-shared cd perl perl Makefile.PL make It seems to be working. But when I do: make test I get lots of errors: Test Summary Report ------------------- t/async.t (Wstat: 11 Tests: 3 Failed: 1) Failed test: 3 Non-zero wait status: 11 Parse errors: Bad plan. You planned 20 tests but ran 3. t/bulkwalk.t (Wstat: 0 Tests: 62 Failed: 53) Failed tests: 2-10, 13-31, 34-40, 42, 44-51, 53-61 t/get.t (Wstat: 0 Tests: 17 Failed: 15) Failed tests: 2-16 t/getnext.t (Wstat: 0 Tests: 9 Failed: 7) Failed tests: 2-3, 5-9 t/notify.t (Wstat: 0 Tests: 10 Failed: 3) Failed tests: 7, 9-10 t/session.t (Wstat: 0 Tests: 5 Failed: 3) Failed tests: 1-2, 5 t/set.t (Wstat: 0 Tests: 7 Failed: 1) Failed test: 2 Files=10, Tests=158, 99 wallclock secs ( 0.13 usr 0.03 sys + 1.06 cusr 0.25 csys = 1.47 CPU) Result: FAIL Failed 7/10 test programs. 83/158 subtests failed. make[1]: *** [test_dynamic] Error 255 make[1]: Leaving directory `/tmp/efface/net-snmp-5.7.1/perl/SNMP' make: *** [subdirs-test] Error 2 What am I missing? Thanks, Simon On Fri, Nov 4, 2011 at 3:38 PM, Simon Chamlian <[email protected]>wrote: > I took your advice and tried to install net-snmp on my host (Ubuntu PC). > > I followed the steps in the installation guide: > > QUICK INSTRUCTIONS > ================== > > 1) Run ./configure > Done > > 2) Optionally edit include/net-snmp/net-snmp-config.h > Didn't touch this file > > > 3) make > When I do make, I get the following error: > > aster_admin.o mibgroup/agentx/.libs/agentx_config.o -Wl,-rpath -Wl,/tmp/efface/net-snmp-5.7.1/snmplib/.libs ../snmplib/.libs/libnetsnmp.so -L/usr/local/lib -L/usr/lib/perl/5.10/CORE -lperl -ldl -lpthread -lc -lcrypt -lm -O2 -fstack-protector -Wl,-E -fstack-protector -Wl,-soname -Wl,libnetsnmpagent.so.30 -o .libs/libnetsnmpagent.so.30.0.1 > > /usr/bin/ld: cannot find -lperl > collect2: ld returned 1 exit status > make[1]: *** [libnetsnmpagent.la] Error 1 > make[1]: Leaving directory `/tmp/efface/net-snmp-5.7.1/agent' > > make: *** [subdirs] Error 1 > > > What am I missing? > > Thanks, > Simon > > > > > On Thu, Nov 3, 2011 at 11:34 AM, Dave Shield <[email protected]>wrote: > >> On 3 November 2011 15:21, Simon Chamlian <[email protected]> >> wrote: >> > What does mib2c do? >> >> It produces _template_ code for implementing a MIB module. >> You would take the generated code file, fill in the gaps, and >> compile it into the SNMP agent (either a native agent for the >> system you are developing on, or cross-compiled for some other >> target system). >> >> Once you've got the MIB module code file, mib2c is no longer >> required. >> >> >> > I can always install it on a host computer and run it. But eventually, I >> > will need an application that returns values associated to my MIB OIDs. >> >> Yes - no problem there. >> >> >> > Is that done by modifying the SNMP agent daemon >> >> It's typically done by adding new code files to the agent, yes. >> >> >> > or I can have a different application interact with agent? >> >> If you've got an AgentX-capable master agent, then you >> can run a separate AgentX client, to implement a new MIB >> module without touching the original agent. >> >> There are also mechanisms for extending the agent by >> using scripts - either SNMP-knowledgeable ("pass" or >> perl extensions), or SNMP-ignorant ("exec" or "extend") >> >> See the FAQ entry "How do I extend the agent?" for more info >> >> Dave >> > > ------------------------------------------------------------------------------ RSA(R) Conference 2012 Save $700 by Nov 18 Register now http://p.sf.net/sfu/rsa-sfdev2dev1 _______________________________________________ Net-snmp-users mailing list [email protected] Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users