|
|
|
|||||
|
'Thread support not enabled' error
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" Code:
#define OPENSSL_THREAD_DEFINES #include <openssl/opensslconf.h> #if defined(THREADS) #else #error "Thread support not enabled" #endif 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. |
|
|||||
|
This is a result of changes made to OpenSSL 0.9.7. It works fine against 0.9.6 as the macro is called just "THREADS" in that version.
You'll have to change it if you decide to support 0.9.7 Regards, Derek. "The are too many [preprocessor macros] these days. I suggest removing three of them" -- Abe Simpson. |
|
|||||
|
Hi,
Could you use the OPENSSL_VERSION_NUMBER macro defined in opensslv.h to do what you need? something like: #if OPENSSL_VERSION_NUMBER < 0090700fL && defined(THREADS) \ || OPENSSL_VERSION_NUMBER >= 0090700fL && defined(OPENSSL_THREADS) I'm not sure what the correct OPENSSL_VERSION_NUMBER is, I don't have 0.9.7.
__________________
-- Craig Rodrigues |
|
|||||
|
Re: OPENSSL_VERSION_NUMBER?
Quote:
![]() Regards, Derek. "I tied an onion to my belt! It was the style at the time ..." - Abe Simpson. |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| is IcePy conCurrency enabled. | alexm | Help Center | 1 | 10-10-2006 07:48 PM |
| Does the thread model of ice support SCOPE_SYSTEM semantic | genelee | Help Center | 2 | 05-17-2005 07:40 AM |
| a thread problem | fw_csha | Help Center | 2 | 05-15-2005 05:41 AM |
| Thread support not enabled | chenhong_sz | Help Center | 7 | 10-12-2004 08:36 AM |
| Ice::Thread and GUI with Qt | catalin | Help Center | 5 | 09-08-2004 10:20 AM |