[OTR-dev] OTR + Second Life Client

chris-tuchs at hushmail.com chris-tuchs at hushmail.com
Wed Jun 24 16:19:44 EDT 2009


Sorry for the spam, but I am reposting to the devs list since that 
seems to be a better place than the users list.

I am working on integrating OTR into the second life client to 
encrypt IMs between users.  Is there some stuff I can read about 
getting a windows program to happily talk with libotr?  In 
particular the client is compiled with a Microsoft Visual C++ 
compiler, and not Cygwin's mingw + GNU C/C++.  Is there sample code 
of a Microsoft windows program communicating with libotr that I can 
look at?  Alternatively, has someone ported libotr to compile with 
the MS compiler?  Thanks for your time.

To get really technical, I was able to use cygwin to naively do 
"./configure; make" but the result was a ".a" file which I don't 
think the microsoft compiler is going to be happy with.  When I 
compile the second life client using the microsoft compiler, these 
are the sorts of compile time errors I get when including proto.h 
(from the libotr src directory.)

1>Compiling...
1>llappviewer.cpp
1>C:\cygwin\usr\include\sys/time.h(16) : error C2011: 'timeval' : 
'struct' type redefinition
1>        C:\Program Files\Microsoft 
SDKs\Windows\v6.1\Include\winsock2.h(176) : see declaration of 
'timeval'
1>C:\cygwin\usr\include\sys/time.h(37) : error C2079: 
'itimerval::it_interval' uses undefined struct 'timeval'
1>C:\cygwin\usr\include\sys/time.h(38) : error C2079: 
'itimerval::it_value' uses undefined struct 'timeval'
1>C:\cygwin\usr\include\gcrypt.h(190) : error C2059: syntax error : 
'*'
1>C:\cygwin\usr\include\gcrypt.h(190) : error C2091: function 
returns function
1>C:\cygwin\usr\include\gcrypt.h(190) : error C4430: missing type 
specifier - int assumed. Note: C++ does not support default-int
1>C:\cygwin\usr\include\gcrypt.h(190) : warning C4183: 'ssize_t': 
missing return type; assumed to be a member function returning 'int'
1>C:\cygwin\usr\include\gcrypt.h(191) : error C2059: syntax error : 
'*'
1>C:\cygwin\usr\include\gcrypt.h(191) : error C2091: function 
returns function
1>C:\cygwin\usr\include\gcrypt.h(191) : error C4430: missing type 
specifier - int assumed. Note: C++ does not support default-int
1>C:\cygwin\usr\include\gcrypt.h(191) : error C2556: 'int (__cdecl 
*gcry_thread_cbs::ssize_t(void))(int,const void *,size_t)' : 
overloaded function differs only by return type from 'int (__cdecl 
*gcry_thread_cbs::ssize_t(void))(int,void *,size_t)'
1>        C:\cygwin\usr\include\gcrypt.h(190) : see declaration of 
'gcry_thread_cbs::ssize_t'
1>C:\cygwin\usr\include\gcrypt.h(191) : error C2371: 
'gcry_thread_cbs::ssize_t' : redefinition; different basic types
1>        C:\cygwin\usr\include\gcrypt.h(190) : see declaration of 
'gcry_thread_cbs::ssize_t'
1>C:\cygwin\usr\include\gcrypt.h(191) : warning C4183: 'ssize_t': 
missing return type; assumed to be a member function returning 'int'
1>C:\cygwin\usr\include\gcrypt.h(193) : error C2059: syntax error : 
'*'
1>C:\cygwin\usr\include\gcrypt.h(194) : error C2091: function 
returns function
1>C:\cygwin\usr\include\gcrypt.h(194) : error C4430: missing type 
specifier - int assumed. Note: C++ does not support default-int
1>C:\cygwin\usr\include\gcrypt.h(194) : error C2556: 'int (__cdecl 
*gcry_thread_cbs::ssize_t(void))(int,void *,void *,void *,timeval 
*)' : overloaded function differs only by return type from 'int 
(__cdecl *gcry_thread_cbs::ssize_t(void))(int,void *,size_t)'
1>        C:\cygwin\usr\include\gcrypt.h(190) : see declaration of 
'gcry_thread_cbs::ssize_t'
1>C:\cygwin\usr\include\gcrypt.h(194) : warning C4183: 'ssize_t': 
missing return type; assumed to be a member function returning 'int'
1>C:\cygwin\usr\include\gcrypt.h(195) : error C2059: syntax error : 
'*'
1>C:\cygwin\usr\include\gcrypt.h(195) : error C2091: function 
returns function
1>C:\cygwin\usr\include\gcrypt.h(195) : error C4430: missing type 
specifier - int assumed. Note: C++ does not support default-int
1>C:\cygwin\usr\include\gcrypt.h(195) : error C2556: 'int (__cdecl 
*gcry_thread_cbs::ssize_t(void))(pid_t,int *,int)' : overloaded 
function differs only by return type from 'int (__cdecl 
*gcry_thread_cbs::ssize_t(void))(int,void *,size_t)'
1>        C:\cygwin\usr\include\gcrypt.h(190) : see declaration of 
'gcry_thread_cbs::ssize_t'
1>C:\cygwin\usr\include\gcrypt.h(195) : warning C4183: 'ssize_t': 
missing return type; assumed to be a member function returning 'int'

--
Lose up to 20 lbs in one month with a new diet. Click here.
 http://tagline.hushmail.com/fc/BLSrjkqbR3fgu1vxtCrZ6MqUF8AhrUgXCBYhc9f93wQqJY0eNUh4qqVokVK/




More information about the OTR-dev mailing list