Bugs item #1904805, was opened at 2008-02-29 17:37
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=756076&aid=1904805&group_id=143636

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: build system
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Filippo Della Betta (fdellabetta)
Assigned to: Nobody/Anonymous (nobody)
Summary: Build on Visual Studio 2005 with Platform SDK for Vista

Initial Comment:
There are some incompatibilities of sofia-sip when Windows SDK for Vista is 
installed (and integrated with Visual Studio 2005):

1) if not defined elsewhere, _WIN32_WINNT is 0x0600 (targeting Vista) and 
either inet_ntop and inet_pton are already defined in ws2tcpip.h (and therefore 
implemented in ws2_32.dll shipped with Windows Vista). My suggestion is to put 
something like

#if defined (_WIN32_WINNT) && (_WIN32_WINNT < 0x0600)

before declaration and definition of inet_ntop and inet_pton (in order to use 
inet_ntop and inet_pton of ws2_32.dll), or to re-define inet_ntop and inet_pton 
to other name when same condition occurs (in order to user internal 
implementation of inet_ntop and inet_pton)

2) IPPROTO_IPV6 is not anymore defined as a macro in Winsock2.h!! Now it has 
become an enum in ws2def.h (included by winsock2.h). Therefore #if(n)def 
IPPROTO_IPV6 doesn't work anymore especially in sresolv/sres.c. 

3) in stun.c, stun_common.c, stun_mini.c there are warnings about getenv, 
srand, calloc, free, rand, malloc... undefined (and since warnings are treated 
as error you got compiler error). My suggestion is to put

#if defined(HAVE_STDLIB_H)
#include <stdlib.h>
#endif

in stun_internal.h

4) MSG_TRUNC is already defined in ws2def.h (included by winsock2.h). There is 
a compiler warning (an therefore error since warnings are treated as error) in 
tport_internal.h since MSG_TRUNC is redefined (the right value in Windows is 
0x0100 not 0)


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=756076&aid=1904805&group_id=143636

-------------------------------------------------------------------------
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/
_______________________________________________
Sofia-sip-devel mailing list
Sofia-sip-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel

Reply via email to