On 31/01/2008, Katy Sherman <[EMAIL PROTECTED]> wrote:
> I try to compile the snmpUDPIPv6Domain.c with IPv6 enabled. I use
> net-snmp.5.4.0 on Windows.


> \build\Appnet-snmp-5.4.0\src\snmplib\snmpUDPIPv6Domain.c(896) : error
> C2039: 'SS_FAMILY' : is not a member of 'sockaddr_storage'
>         C:\Program Files\Microsoft Visual Studio .NET
> 2003\Vc7\PlatformSDK\Include\WinSock2.h(581) : see declaration of
> 'sockaddr_storage'
>
> The snmpUDPIPv6Domain.c file has the following macro definition:
>
> #if STRUCT_SOCKADDR_STORAGE_HAS_SS_FAMILY
> #define SS_FAMILY ss_family
> #elif STRUCT_SOCKADDR_STORAGE_HAS___SS_FAMILY
> #define SS_FAMILY __ss_family
> #endif
>
> But the STRUCT_SOCKADDR_STORAGE_HAS_SS_FAMILY is not defined anywhere.

It should be defined in the file win32/net-snmp/net-snmp-config.h:

#ifdef HAVE_WIN32_PLATFORM_SDK
#define STRUCT_SOCKADDR_STORAGE_HAS_SS_FAMILY 1
#endif

I presume you have installed the Core Platford SDK on your system.
Did you remember to register this with Visual Studio?
   (See README.win32)

Dave

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to