Hi,
I get a 'Thread support not enabled' when building OpenSSLPluginI.cpp against OpenSSL 0.97.
Code:
c++ -c -I.. -I/usr/local/ssl/include -I../../include -I/home/derekt/e2fsprogs-1.32/lib -g -ftemplate-depth-128 -fPIC -Wall OpenSSLPluginI.cpp
OpenSSLPluginI.cpp:45:2: #error "Thread support not enabled"
This is due to the code:
Code:
#define OPENSSL_THREAD_DEFINES
#include <openssl/opensslconf.h>
#if defined(THREADS)
#else
#error "Thread support not enabled"
#endif
If I change "defined(THREADS)" to "defined(OPENSSL_THREADS)", which OpenSSL defines in opensslconf.h, then it's fine.
I don't know if this was meant to be referring to OPENSSL_THREADS or some other macro, or if OpenSSL changed the macro name between 0.96 or 0.97, but there it is.
Regards,
Derek.
PS I am not a crackpot.