Bugs item #1904805, was opened at 2008-02-29 16:37
Message generated for change (Comment added) made by sf-robot
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: Closed
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: SourceForge Robot (sf-robot)
Date: 2008-12-13 02:20

Message:
This Tracker item was closed automatically by the system. It was
previously set to a Pending status, and the original submitter
did not respond within 14 days (the time period specified by
the administrator of this Tracker).

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

Comment By: Pekka Pessi (ppessi)
Date: 2008-11-28 15:02

Message:
To be released in Sofia-SIP 1.12.10.

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

Comment By: Filippo Della Betta (fdellabetta)
Date: 2008-11-28 09:18

Message:
You can close the bug, everything is ok now, Thanks

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

Comment By: Filippo Della Betta (fdellabetta)
Date: 2008-11-27 08:14

Message:
The only problem I see now is on line 70 file su.h
#    if defined(IPPROTO_IPV6) || (_WIN32_WINNT >= 0x0600)
that is incorrect since IPPROTO_IPV6 is not yet a #define, and
_WIN32_WINNT >=0x0501 is better since means XP and later (>=0x0600 means
Vista and later). If you are targeting XP and later you get, infact, an
error since you are trying to include tpipv6.h that is useless.

In the tarball you sent (and in the darcs as well), I found that there is
a (minor) problem regarding line 2528 of file nua_session.c. There is a
signed/unsigned mismatch and since warnings are threated as errors (flag
/WX), the main projects do not compile.

I tried it with msvc 2005 and 2008

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

Comment By: Pekka Pessi (ppessi)
Date: 2008-11-26 20: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 15: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

------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
Sofia-sip-devel mailing list
Sofia-sip-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel

Reply via email to