On 08/13/18 05:37, Gisle Vanem via Net-snmp-coders wrote:
It's been > 3 years since I've compiled using MinGW.
Now I'm sticking more to clang-cl and MSVC and notice
the support for MSVC wrt. to IPv6 is in a real (excuse my
French) shitty state. E.g. the '{ }' syntax is not allowed
on MSVC:
   #if defined(HAVE_WINSOCK_H) && !defined(mingw32)
   static const struct in6_addr in6addr_any = { } /*IN6ADDR_ANY_INIT*/;
   #endif

But shouldn't it instead be:
  #if defined(HAVE_WINSOCK_H) && !defined(HAVE_WINSOCK2_H) && !defined(mingw32)
   static const struct in6_addr in6addr_any = { } /*IN6ADDR_ANY_INIT*/;
   #endif

since 'in6addr_any' etc. is already part of Winsock2?

And BTW, what's up with the cryptic 'mingw32' in there?

The same goes for snmpIPv6BaseDomain.c.

As one can see on https://ci.appveyor.com/project/BVanAssche87257/net-snmp the build of the Net-SNMP master branch passes for MSVC-2017, Cygwin32 and Cygwin64. Which version of Net-SNMP did you try to build and how did you build it? Did you generate project files yourself or did you use build.bat?

Bart.

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to