Re: Fw: Unable to build Net-Snmp with embedded perl
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <OFEC6450C3.026B448B-ON802578E6.004C41B1-802578E6.00529DC3@selexelsag.com> |
Bart, I have upgraded Active Perl to version 5.12.4 Build 1205. However this still gave the same Ipv6 error as before. As I do not need IPv6 I have decided not to persue the option of correcting the IPv6 problem any further. I have tried to compile as follows: 1. OpenSSL support: disabled 2. Platform SDK support: disabled 3. Install path: c:/usr 4. Install after build: enabled 5. Perl modules: enabled 6. Install perl modules: enabled 7. Quiet build (logged): enabled 8. Debug mode: disabled 9. IPv6 transports (requires SDK): disabled 10. winExtDLL agent (requires SDK): disabled 11. Link type: static 12. Install development files enabled The compilation fails when running the perl tests as follows (as indicated earlier in the thread): # Running under perl version 5.012004 for MSWin32 # Win32::BuildNumber 1205 # Current time local: Mon Aug 8 15:46:43 2011 # Current time GMT: Mon Aug 8 14:46:43 2011 # Using Test.pm version 1.25_02 ok 1 Created directory: c:/usr Created directory: c:/usr/snmp Created directory: c:/usr/snmp/persist Created directory: c:/usr/snmp/persist/mib_indexes MIB search path: c:/usr/share/snmp/mibs;R:/cots/net-snmp/net-snmp-5.7/mibs Cannot find module (SNMPv2-SMI): At line 7 in R:/cots/net-snmp/net-snmp-5.7/mibs/IP-MIB.txt Cannot find module (SNMPv2-TC): At line 11 in R:/cots/net-snmp/net-snmp-5.7/mibs/IP-MIB.txt Cannot find module (INET-ADDRESS-MIB): At line 15 in R:/cots/net-snmp/net-snmp-5.7/mibs/IP-MIB.txt Cannot find module (SNMPv2-MIB): At line 12 in R:/cots/net-snmp/net-snmp-5.7/mibs/IF-MIB.txt Cannot find module (IANAifType-MIB): At line 13 in R:/cots/net-snmp/net-snmp-5.7/mibs/IF-MIB.txt Cannot find module (IF-MIB): At line 16 in R:/cots/net-snmp/net-snmp-5.7/mibs/IP-MIB.txt Cannot find module (IP-MIB): At line 1 in (none) Cannot find module (TCP-MIB): At line 1 in (none) Cannot find module (UDP-MIB): At line 1 in (none) Cannot find module (HOST-RESOURCES-MIB): At line 1 in (none) Cannot find module (SNMP-FRAMEWORK-MIB): At line 11 in R:/cots/net-snmp/net-snmp-5.7/mibs/NOTIFICATION-LOG-MIB.txt Cannot find module (NOTIFICATION-LOG-MIB): At line 1 in (none) Cannot find module (UCD-SNMP-MIB): At line 1 in (none) Cannot find module (UCD-DEMO-MIB): At line 1 in (none) Cannot find module (SNMP-TARGET-MIB): At line 1 in (none) Cannot find module (NET-SNMP-MIB): At line 12 in R:/cots/net-snmp/net-snmp-5.7/mibs/NET-SNMP-AGENT-MIB.txt Cannot find module (NET-SNMP-AGENT-MIB): At line 1 in (none) Cannot find module (DISMAN-EVENT-MIB): At line 1 in (none) Cannot find module (SNMP-VIEW-BASED-ACM-MIB): At line 1 in (none) Cannot find module (SNMP-COMMUNITY-MIB): At line 1 in (none) Cannot find module (UCD-DLMOD-MIB): At line 1 in (none) Cannot find module (SNMP-MPD-MIB): At line 1 in (none) Cannot find module (SNMP-USER-BASED-SM-MIB): At line 1 in (none) Cannot find module (SNMP-NOTIFICATION-MIB): At line 1 in (none) Cannot find module (SNMPv2-TM): At line 1 in (none) ok 2 ok 3 ok 4 ok 5 ok 6 ok 7 ok 8 ok 9 ok 10 ok 11 ok 12 ok 13 ok 14 ok 15 ok 16 ok 17 ok 18 ok 19 ok 20 ok 21 ok 22 ok 23 ok 24 ok 25 ok 26 ok 27 ok 28 ok 29 ok 30 ok 31 ok 32 ok 33 ok 34 Can't parse: nosuchoidexists ok 35 ok 36 Free to wrong pool 247ea0 not 1080181 at ..\blib\lib/NetSNMP/OID.pm line 31. NMAKE : fatal error U1077: 'C:\Perl\bin\perl.EXE' : return code '0xc0000005' Stop. NMAKE : fatal error U1077: 'C:\PROGRA~1\MICROS~1.0\VC\BIN\nmake.exe' : return code '0x2' Stop. NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN\nmake.EXE"' : return code '0x2' Stop. However, the build seems to complete as follows: Building... Creating *.out log files. Deleting old log files... Running Configure... Cleaning... Building main package... Running Configure for DLL... Cleaning libraries... Building DLL libraries... Cleaning Perl.... Building Perl modules... Testing Perl modules... Installing Perl modules... See perltest.out for Perl test results Installing main package... Installing development files... Done! I then try to run snmpd.exe -V with the disablePerl true option set in the snmpd.conf file. This gives a warning suggesting that embedded perl is not enabled. How do I know if embedded perl has been enabled and what embedded perl modules should be installed and where? C:\net-snmp\bin>snmpd.exe -V MIB search path: C:/net-snmp/share/snmp/mibs;R:/software/sentinel/mibs Cannot find module (SNMPv2-SMI): At line 7 in C:/net-snmp/share/snmp/mibs/IP-MIB.txt C:/net-snmp/etc/snmp/snmpd.conf: line 24: Warning: Unknown token: disablePerl. NET-SNMP version 5.7 Any help would be appreciated. Is there anything else that I should have previously built/installed?? Regards, Ali ----------------------------------------------- This email and any attached files contains company confidential information which may be legally privileged. it is intended only for the person(s) or entity to which it is addressed and solely for the purposes set forth therein. If you are not the intended recipient or have received this email in error please notify the sender by return, delete it from your system and destroy any local copies. It is strictly forbidden to use the information in this email including any attachment or part thereof including copying, disclosing, distributing, amending or using for any other purpose. In addition the sender excludes all liabilities (whether tortious or common law) for damage or breach arising or related to this email including but not limited to viruses and libel. ------------------------------------------------------------------------------ BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA The must-attend event for mobile developers. Connect with experts. Get tools for creating Super Apps. See the latest technologies. Sessions, hands-on labs, demos & much more. Register early & save! http://p.sf.net/sfu/rim-blackberry-1 _______________________________________________ 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