Dave,

I searched the net-snmp-config.h file and all I found is

/* Define HAVE_WIN32_PLATFORM_SDK if you have:
* Microsoft Visual Studio MSVC 6.0 and the Platform SDK (PSDK)
* Microsoft Visual Studio.Net 2002
* Microsoft Visual Studio.Net 2003
* Cygwin
* MinGW
*/
#define HAVE_WIN32_PLATFORM_SDK 1

So I guess I have the PSDK installed. But the line you're referring to
doesn't exist.

Katy

-----Original Message-----
From: dave.shield@googlemail.com [mailto:dave.shield@googlemail.com] On
Behalf Of Dave Shield
Sent: Monday, February 11, 2008 5:46 AM
To: Katy Sherman
Cc: net-snmp-coders@lists.sourceforge.net
Subject: Re: The snmpUDPIPv6Domain.c does not build with IPv6 enabled

On 31/01/2008, Katy Sherman 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
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/...et-snmp-coders