Bugs item #1904805, was opened at 2008-02-29 18:37 Message generated for change (Comment added) made by ppessi 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: Pending >Resolution: Fixed 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) ---------------------------------------------------------------------- >Comment By: Pekka Pessi (ppessi) Date: 2008-11-26 22:20 Message: Mike's patch last February 27th should have fixed these issues, however, I have not closed this bug. Please confirm if the current Darcs version or latest release candidate from http://sofia-sip.org/~ppessi/sofia-sip-1.12.9pre10rc1.tar.gz works with msvc 2005 and 2008. ---------------------------------------------------------------------- Comment By: Stefan Brozinski (sbmat) Date: 2008-11-24 17:29 Message: I kindly request to use Visual Studio 2008 instead of 2005 when addressing this issue. ---------------------------------------------------------------------- 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 the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Sofia-sip-devel mailing list Sofia-sip-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel