net-snmp / net-snmp

A SNMP application library, tools and daemon
Other
338 stars 219 forks source link

Building netsnmp on windows with custom configuration options #605

Open rhvarrier opened 1 year ago

rhvarrier commented 1 year ago

I've been using Netsnmp library on a Linux environment and I now want to port my application to Windows. I only need the Snmpv2c library part on NetSNMP (no need for the applications, scripts or Mib loading). So I build Netsnmp with a few options as follows : --disable-agent \ --disable-applications \ --disable-manuals \ --disable-scripts \ --disable-mib-loading \ --without-openssl \ --without-pcre \ --disable-debugging \ --disable-privacy \ --disable-md5 \

However the perl configure script provided for building for Windows does not seem to provide any of these features? Do I need to patch the build script to be able to use these options or these options are just not supported at all on Windows platform ?

bvanassche commented 1 year ago

Feel free to submit a patch for the Perl configure script as a pull request.

rhvarrier commented 1 year ago

Ok, let me try. But is it even possible to have these options on Windows?

bvanassche commented 1 year ago

A good starting point would be to check whether these configuration options are supported for the MinGW-w64 environment (see also https://www.mingw-w64.org/ / https://en.wikipedia.org/wiki/Mingw-w64). Information for how to build Net-SNMP on the MinGW-w64 environment is available in the Net-SNMP README.win32 file.