Windows Notes

From Net-SNMP Wiki
Revision as of 12:40, 26 January 2011 by Derni (Talk | contribs) (perl errors)

Jump to: navigation, search

This page contains various tidbits on using Net-SNMP on Windows platforms (including Visual C++, cygwin and MinGW).


MinGW

perl errors

If building from source using MinGW/MSYS fails with the following message:

cc1.exe: error: unrecognized command line option "-fnative-struct"

try updating your configure line to not build the perl modules:

--without-perl-modules

If you need perl modules, and figure out away to fix this, please update this page, send a note to net-snmp-coders@lists.sf.net, or submit a patch to the patch tracker!

The root cause is that perl is installed, but it's only the msys version of perl (used for building). Therefore it thinks you want to build the perl module, extracts perl's build parameters, which include options only available for the msys gcc itself, and tries to build the perl module. If you want to have the perl module, you'll want to install perl first. For this you need to speed up computer