Windows Notes

From Net-SNMP Wiki
Revision as of 13:08, 26 January 2011 by Wes (Talk | contribs) (Reverted edits by Derni (Talk); changed back to last version by Rogerdpack)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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.