Im trying to compile sofia-sip on windows with TLS support and im having a
little trouble on doing that. When i include the tport_tls.c and the
tport_tls.h on the project i got the following error:

C:\ARQUIVOS DE PROGRAMAS\MICROSOFT SDK\INCLUDE\winsock2.h(109) : error
C2011: 'fd_set' : 'struct' type redefinition
C:\ARQUIVOS DE PROGRAMAS\MICROSOFT SDK\INCLUDE\winsock2.h(144) : warning
C4005: 'FD_SET' : macro redefinition
        C:\ARQUIVOS DE PROGRAMAS\MICROSOFT SDK\INCLUDE\winsock.h(88) : see
previous definition of 'FD_SET'
C:\ARQUIVOS DE PROGRAMAS\MICROSOFT SDK\INCLUDE\winsock2.h(153) : error
C2011: 'timeval' : 'struct' type redefinition
C:\ARQUIVOS DE PROGRAMAS\MICROSOFT SDK\INCLUDE\winsock2.h(209) : error
C2011: 'hostent' : 'struct' type redefinition
C:\ARQUIVOS DE PROGRAMAS\MICROSOFT SDK\INCLUDE\winsock2.h(222) : error
C2011: 'netent' : 'struct' type redefinition
C:\ARQUIVOS DE PROGRAMAS\MICROSOFT SDK\INCLUDE\winsock2.h(229) : error
C2011: 'servent' : 'struct' type redefinition
C:\ARQUIVOS DE PROGRAMAS\MICROSOFT SDK\INCLUDE\winsock2.h(241) : error
C2011: 'protoent' : 'struct' type redefinition
C:\ARQUIVOS DE PROGRAMAS\MICROSOFT SDK\INCLUDE\winsock2.h(397) : error
C2011: 'sockaddr_in' : 'struct' type redefinition
C:\ARQUIVOS DE PROGRAMAS\MICROSOFT SDK\INCLUDE\winsock2.h(407) : error
C2011: 'WSAData' : 'struct' type redefinition
C:\ARQUIVOS DE PROGRAMAS\MICROSOFT SDK\INCLUDE\winsock2.h(467) : warning
C4005: 'SO_DONTLINGER' : macro redefinition


the error keeps going on saying that a lot of things are being redefined, i
dont changed anything...just added the files. I already tried to define
HAVE_TLS and HAVE_OPENSSL on the win32/config.h, but the error is the same.

Can anyone tell me what im doing wrong, or at least give a hint, im kinda
lost? i did not find any doc on how to compile on win32 with TLS.

sorry for the lousy english

best regards

Tiago

-- 
"it might be a profitable thing to learn Java, but it has no intellectual
value whatsoever" Alexander Stepanov
-------------------------------------------------------------------------
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

Reply via email to