zf8848 / libjingle

Automatically exported from code.google.com/p/libjingle
0 stars 0 forks source link

libjingle fails to compile when using OpenSSL on Windows #136

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Define FEATURE_ENABLE_SSL, SSL_USE_OPENSSL and HAVE_OPENSSL_SSL_H and 
compile libjingle

What is the expected output? What do you see instead?
Should compile without errors. Instead the following errors occur:

in openssladapter.cc
- pthread_t is undefined (used by id_function()) at line 166
- cannot cast ASN1_ITEM_EXP* to const ASN1_ITEM* at line 700

What version of the product are you using? On what operating system?
libjingle 0.52 on Windows 7

Please provide any additional information below.

Fixed the first compilation error by defining pthread_t in the #ifdef WIN32 
block at the beginning of the file using typedef DWORD pthread_t;

The second error was fixed by using reinterpret_cast<const ASN1_ITEM*> but not 
sure if that's a safe/correct solution..

Original issue reported on code.google.com by mfle...@gmail.com on 4 Feb 2011 at 8:42

GoogleCodeExporter commented 9 years ago

Original comment by juberti@google.com on 31 May 2013 at 8:32