All,

I am working on a project that will be using Net-SNMP, but customer requires 
that we build it locally.

Building Net-SNMP on Windows 10 and the base build appears to succeed.

However, I need to be able to run mib2c.  Mib2c fails with:

ERROR: You don't have the SNMP perl module installed.  Please obtain
this by getting the latest source release of the net-snmp toolkit from
http://www.net-snmp.org/download/ .  Once you download the source and
unpack it, the perl module is contained in the perl/SNMP directory.
See the README file there for instructions.

I have no experience with perl.

I believe I have followed the instructions in perl/SNMP/README, with 
gnu_regex_dist installed.

I also added a couple of "use" statements to MakefileSubs.pm to get things 
minimally going, at which point
I  get an incomplete error message:

                to undefined at C:/Perl64/lib/ExtUtils/Install.pm line 141.

That line looks reasonable to me.

Can anyone give some pointers on how to get further?

Output from the batch script attached below.
All assistance is greatly appreciated.

Thanks in advance.


Best Regards,
Aaron Friesen

Contract Software Engineer of Aerotek on behalf of Keysight

Keysight Technologies, Inc.
970.679.5632 T


C:\git\remote\net-snmp-code>win32\nmakeperl.bat
Remember to run this script from the base of the source directory.
Use of uninitialized value $ENV{"OSTYPE"} in string eq at MakefileSubs.pm line 
23.
Net-SNMP base directory: C:\git\remote\net-snmp-code
Use of uninitialized value $ret{"nsconfig"} in substitution (s///) at 
MakefileSubs.pm line 86.
Use of uninitialized value $ENV{"OSTYPE"} in string eq at ./Makefile.PL line 21.
Use of uninitialized value $ENV{"OSTYPE"} in string eq at ./Makefile.PL line 26.
Use of uninitialized value $ENV{"OSTYPE"} in string eq at MakefileSubs.pm line 
23.
Net-SNMP base directory: C:\git\remote\net-snmp-code
Use of uninitialized value $ret{"nsconfig"} in substitution (s///) at 
MakefileSubs.pm line 86.
Use of uninitialized value in lc at ./Makefile.PL line 34.
Use of uninitialized value in lc at ./Makefile.PL line 41.
Warning (mostly harmless): No library found for -lmoldname
Warning (mostly harmless): No library found for -lkernel32
Warning (mostly harmless): No library found for -luser32
Warning (mostly harmless): No library found for -lgdi32
Warning (mostly harmless): No library found for -lwinspool
Warning (mostly harmless): No library found for -lcomdlg32
Warning (mostly harmless): No library found for -ladvapi32
Warning (mostly harmless): No library found for -lshell32
Warning (mostly harmless): No library found for -lole32
Warning (mostly harmless): No library found for -loleaut32
Warning (mostly harmless): No library found for -lnetapi32
Warning (mostly harmless): No library found for -luuid
Warning (mostly harmless): No library found for -lws2_32
Warning (mostly harmless): No library found for -lmpr
Warning (mostly harmless): No library found for -lwinmm
Warning (mostly harmless): No library found for -lversion
Warning (mostly harmless): No library found for -lodbc32
Warning (mostly harmless): No library found for -lodbccp32
Warning (mostly harmless): No library found for -lcomctl32
Writing MYMETA.yml and MYMETA.json
Use of uninitialized value $ENV{"OSTYPE"} in string eq at ./Makefile.PL line 28.
Use of uninitialized value $ENV{"OSTYPE"} in string eq at ./Makefile.PL line 34.
Use of uninitialized value $ENV{"OSTYPE"} in string eq at MakefileSubs.pm line 
23.
Net-SNMP base directory: C:\git\remote\net-snmp-code
Use of uninitialized value $ret{"nsconfig"} in substitution (s///) at 
MakefileSubs.pm line 86.
Use of uninitialized value in lc at ./Makefile.PL line 42.
Use of uninitialized value in lc at ./Makefile.PL line 49.
Warning (mostly harmless): No library found for -lmoldname
Warning (mostly harmless): No library found for -lkernel32
Warning (mostly harmless): No library found for -luser32
Warning (mostly harmless): No library found for -lgdi32
Warning (mostly harmless): No library found for -lwinspool
Warning (mostly harmless): No library found for -lcomdlg32
Warning (mostly harmless): No library found for -ladvapi32
Warning (mostly harmless): No library found for -lshell32
Warning (mostly harmless): No library found for -lole32
Warning (mostly harmless): No library found for -loleaut32
Warning (mostly harmless): No library found for -lnetapi32
Warning (mostly harmless): No library found for -luuid
Warning (mostly harmless): No library found for -lws2_32
Warning (mostly harmless): No library found for -lmpr
Warning (mostly harmless): No library found for -lwinmm
Warning (mostly harmless): No library found for -lversion
Warning (mostly harmless): No library found for -lodbc32
Warning (mostly harmless): No library found for -lodbccp32
Warning (mostly harmless): No library found for -lcomctl32
Writing MYMETA.yml and MYMETA.json
Use of uninitialized value $ENV{"OSTYPE"} in string ne at MakefileSubs.pm line 
112.
Use of uninitialized value $ENV{"OSTYPE"} in string eq at ./Makefile.PL line 26.
Use of uninitialized value $ENV{"OSTYPE"} in string eq at ./Makefile.PL line 31.
Use of uninitialized value $ENV{"OSTYPE"} in string eq at MakefileSubs.pm line 
23.
Net-SNMP base directory: C:\git\remote\net-snmp-code
Use of uninitialized value $ret{"nsconfig"} in substitution (s///) at 
MakefileSubs.pm line 86.
Use of uninitialized value in lc at ./Makefile.PL line 39.
Use of uninitialized value in lc at ./Makefile.PL line 46.
Warning (mostly harmless): No library found for -lmoldname
Warning (mostly harmless): No library found for -lkernel32
Warning (mostly harmless): No library found for -luser32
Warning (mostly harmless): No library found for -lgdi32
Warning (mostly harmless): No library found for -lwinspool
Warning (mostly harmless): No library found for -lcomdlg32
Warning (mostly harmless): No library found for -ladvapi32
Warning (mostly harmless): No library found for -lshell32
Warning (mostly harmless): No library found for -lole32
Warning (mostly harmless): No library found for -loleaut32
Warning (mostly harmless): No library found for -lnetapi32
Warning (mostly harmless): No library found for -luuid
Warning (mostly harmless): No library found for -lws2_32
Warning (mostly harmless): No library found for -lmpr
Warning (mostly harmless): No library found for -lwinmm
Warning (mostly harmless): No library found for -lversion
Warning (mostly harmless): No library found for -lodbc32
Warning (mostly harmless): No library found for -lodbccp32
Warning (mostly harmless): No library found for -lcomctl32
Writing MYMETA.yml and MYMETA.json
Use of uninitialized value $ENV{"OSTYPE"} in string ne at MakefileSubs.pm line 
112.
Use of uninitialized value $ENV{"OSTYPE"} in string eq at ./Makefile.PL line 28.
Use of uninitialized value $ENV{"OSTYPE"} in string eq at ./Makefile.PL line 33.
Use of uninitialized value $ENV{"OSTYPE"} in string eq at MakefileSubs.pm line 
23.
Net-SNMP base directory: C:\git\remote\net-snmp-code
Use of uninitialized value $ret{"nsconfig"} in substitution (s///) at 
MakefileSubs.pm line 86.
Use of uninitialized value in lc at ./Makefile.PL line 43.
Use of uninitialized value in lc at ./Makefile.PL line 50.
Warning (mostly harmless): No library found for -lmoldname
Warning (mostly harmless): No library found for -lkernel32
Warning (mostly harmless): No library found for -luser32
Warning (mostly harmless): No library found for -lgdi32
Warning (mostly harmless): No library found for -lwinspool
Warning (mostly harmless): No library found for -lcomdlg32
Warning (mostly harmless): No library found for -ladvapi32
Warning (mostly harmless): No library found for -lshell32
Warning (mostly harmless): No library found for -lole32
Warning (mostly harmless): No library found for -loleaut32
Warning (mostly harmless): No library found for -lnetapi32
Warning (mostly harmless): No library found for -luuid
Warning (mostly harmless): No library found for -lws2_32
Warning (mostly harmless): No library found for -lmpr
Warning (mostly harmless): No library found for -lwinmm
Warning (mostly harmless): No library found for -lversion
Warning (mostly harmless): No library found for -lodbc32
Warning (mostly harmless): No library found for -lodbccp32
Warning (mostly harmless): No library found for -lcomctl32
Use of uninitialized value $ENV{"OSTYPE"} in string eq at ./Makefile.PL line 26.
Use of uninitialized value $ENV{"OSTYPE"} in string eq at ./Makefile.PL line 32.
Use of uninitialized value $ENV{"OSTYPE"} in string eq at MakefileSubs.pm line 
23.
Net-SNMP base directory: C:\git\remote\net-snmp-code
Use of uninitialized value $ret{"nsconfig"} in substitution (s///) at 
MakefileSubs.pm line 86.
Use of uninitialized value in lc at ./Makefile.PL line 40.
Use of uninitialized value in lc at ./Makefile.PL line 47.
Warning (mostly harmless): No library found for -lmoldname
Warning (mostly harmless): No library found for -lkernel32
Warning (mostly harmless): No library found for -luser32
Warning (mostly harmless): No library found for -lgdi32
Warning (mostly harmless): No library found for -lwinspool
Warning (mostly harmless): No library found for -lcomdlg32
Warning (mostly harmless): No library found for -ladvapi32
Warning (mostly harmless): No library found for -lshell32
Warning (mostly harmless): No library found for -lole32
Warning (mostly harmless): No library found for -loleaut32
Warning (mostly harmless): No library found for -lnetapi32
Warning (mostly harmless): No library found for -luuid
Warning (mostly harmless): No library found for -lws2_32
Warning (mostly harmless): No library found for -lmpr
Warning (mostly harmless): No library found for -lwinmm
Warning (mostly harmless): No library found for -lversion
Warning (mostly harmless): No library found for -lodbc32
Warning (mostly harmless): No library found for -lodbccp32
Warning (mostly harmless): No library found for -lcomctl32
Writing MYMETA.yml and MYMETA.json
Use of uninitialized value $ENV{"OSTYPE"} in string ne at MakefileSubs.pm line 
112.
Use of uninitialized value $ENV{"OSTYPE"} in string eq at ./Makefile.PL line 22.
Use of uninitialized value $ENV{"OSTYPE"} in string eq at ./Makefile.PL line 27.
Use of uninitialized value $ENV{"OSTYPE"} in string eq at MakefileSubs.pm line 
23.
Net-SNMP base directory: C:\git\remote\net-snmp-code
Use of uninitialized value $ret{"nsconfig"} in substitution (s///) at 
MakefileSubs.pm line 86.
Use of uninitialized value in lc at ./Makefile.PL line 35.
Use of uninitialized value in lc at ./Makefile.PL line 42.
Warning (mostly harmless): No library found for -lmoldname
Warning (mostly harmless): No library found for -lkernel32
Warning (mostly harmless): No library found for -luser32
Warning (mostly harmless): No library found for -lgdi32
Warning (mostly harmless): No library found for -lwinspool
Warning (mostly harmless): No library found for -lcomdlg32
Warning (mostly harmless): No library found for -ladvapi32
Warning (mostly harmless): No library found for -lshell32
Warning (mostly harmless): No library found for -lole32
Warning (mostly harmless): No library found for -loleaut32
Warning (mostly harmless): No library found for -lnetapi32
Warning (mostly harmless): No library found for -luuid
Warning (mostly harmless): No library found for -lws2_32
Warning (mostly harmless): No library found for -lmpr
Warning (mostly harmless): No library found for -lwinmm
Warning (mostly harmless): No library found for -lversion
Warning (mostly harmless): No library found for -lodbc32
Warning (mostly harmless): No library found for -lodbccp32
Warning (mostly harmless): No library found for -lcomctl32
Writing MYMETA.yml and MYMETA.json
Use of uninitialized value $ENV{"OSTYPE"} in string ne at MakefileSubs.pm line 
112.
Writing MYMETA.yml and MYMETA.json
Use of uninitialized value $ENV{"OSTYPE"} in string ne at MakefileSubs.pm line 
112.
Use of uninitialized value $ENV{"OSTYPE"} in string eq at ./Makefile.PL line 31.
Use of uninitialized value $ENV{"OSTYPE"} in string eq at ./Makefile.PL line 36.
Use of uninitialized value $ENV{"OSTYPE"} in string eq at MakefileSubs.pm line 
23.
Net-SNMP base directory: C:\git\remote\net-snmp-code
Use of uninitialized value $ret{"nsconfig"} in substitution (s///) at 
MakefileSubs.pm line 86.
Use of uninitialized value in lc at ./Makefile.PL line 44.
Use of uninitialized value in lc at ./Makefile.PL line 51.
Warning (mostly harmless): No library found for -lmoldname
Warning (mostly harmless): No library found for -lkernel32
Warning (mostly harmless): No library found for -luser32
Warning (mostly harmless): No library found for -lgdi32
Warning (mostly harmless): No library found for -lwinspool
Warning (mostly harmless): No library found for -lcomdlg32
Warning (mostly harmless): No library found for -ladvapi32
Warning (mostly harmless): No library found for -lshell32
Warning (mostly harmless): No library found for -lole32
Warning (mostly harmless): No library found for -loleaut32
Warning (mostly harmless): No library found for -lnetapi32
Warning (mostly harmless): No library found for -luuid
Warning (mostly harmless): No library found for -lws2_32
Warning (mostly harmless): No library found for -lmpr
Warning (mostly harmless): No library found for -lwinmm
Warning (mostly harmless): No library found for -lversion
Warning (mostly harmless): No library found for -lodbc32
Warning (mostly harmless): No library found for -lodbccp32
Warning (mostly harmless): No library found for -lcomctl32
Writing MYMETA.yml and MYMETA.json
Use of uninitialized value $ENV{"OSTYPE"} in string ne at MakefileSubs.pm line 
112.
Use of uninitialized value $prefix in concatenation (.) or string at 
./Makefile.PL line 127.
Use of uninitialized value $ENV{"OSTYPE"} in string eq at ./Makefile.PL line 
136.
Use of uninitialized value in lc at ./Makefile.PL line 138.
Unable to locate the MIBs, Please enter the path:  [] 
C:\git\remote\net-snmp-code\mibs
Unable to locate "snmpd". Please enter the path:  [\sbin] C:\program 
files\net-snmp\bin
Unable to locate "snmptrapd". Please enter the path:  [\sbin] c:\program 
files\net-snmp\bin
Use of uninitialized value $ENV{"OSTYPE"} in string eq at ./Makefile.PL line 
178, <STDIN> line 3.
Use of uninitialized value in lc at ./Makefile.PL line 198, <STDIN> line 3.
Use of uninitialized value $ENV{"OSTYPE"} in string eq at ./Makefile.PL line 
55, <STDIN> line 3.
Use of uninitialized value $ENV{"OSTYPE"} in string eq at ./Makefile.PL line 
60, <STDIN> line 3.
Use of uninitialized value $ENV{"OSTYPE"} in string eq at MakefileSubs.pm line 
23, <STDIN> line 3.
Net-SNMP base directory: C:\git\remote\net-snmp-code
Use of uninitialized value $ret{"nsconfig"} in substitution (s///) at 
MakefileSubs.pm line 86, <STDIN> line 3.
Use of uninitialized value in lc at ./Makefile.PL line 71, <STDIN> line 3.
Use of uninitialized value in lc at ./Makefile.PL line 78, <STDIN> line 3.
Warning: prerequisite NetSNMP::OID 5.02 not found.
Warning (mostly harmless): No library found for -lmoldname
Warning (mostly harmless): No library found for -lkernel32
Warning (mostly harmless): No library found for -luser32
Warning (mostly harmless): No library found for -lgdi32
Warning (mostly harmless): No library found for -lwinspool
Warning (mostly harmless): No library found for -lcomdlg32
Warning (mostly harmless): No library found for -ladvapi32
Warning (mostly harmless): No library found for -lshell32
Warning (mostly harmless): No library found for -lole32
Warning (mostly harmless): No library found for -loleaut32
Warning (mostly harmless): No library found for -lnetapi32
Warning (mostly harmless): No library found for -luuid
Warning (mostly harmless): No library found for -lws2_32
Warning (mostly harmless): No library found for -lmpr
Warning (mostly harmless): No library found for -lwinmm
Warning (mostly harmless): No library found for -lversion
Warning (mostly harmless): No library found for -lodbc32
Warning (mostly harmless): No library found for -lodbccp32
Warning (mostly harmless): No library found for -lcomctl32
Writing MYMETA.yml and MYMETA.json
Use of uninitialized value $ENV{"OSTYPE"} in string ne at MakefileSubs.pm line 
112.
Generating a dmake-style Makefile
Writing Makefile for Bundle::NetSNMP
Writing MYMETA.yml and MYMETA.json
Make the Perl SNMP modules.
to undefined at C:/Perl64/lib/ExtUtils/Install.pm line 141.
NMAKE : fatal error U1077: 'C:\Perl64\bin\perl.exe' : return code '0xff'
Stop.
If errors are seen stop here and review perl\nmake.out.
Press any key to continue . . .
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to