RE: The snmpUDPIPv6Domain.c does not build with IPv6 enabled

This is a discussion on RE: The snmpUDPIPv6Domain.c does not build with IPv6 enabled within the SNMP Coders forums, part of the Networking and Network Related category; Dave, I searched the net-snmp-config.h file and all I found is /* Define HAVE_WIN32_PLATFORM_SDK if you have: * Microsoft ...


Go Back   Usenet Forums > Networking and Network Related > SNMP Coders

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 03-06-2008
Katy Sherman
 
Posts: n/a
Default RE: The snmpUDPIPv6Domain.c does not build with IPv6 enabled

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 <Katy.Sherman@netiq.com> 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
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 11:02 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0