Go Back   ZeroC Forums > Bug Reports

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 02-19-2003
dthomson dthomson is offline
Registered User
 
 
Join Date: Feb 2003
Location: Brisbane, Australia
Posts: 34
'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"
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.
Reply With Quote
  #2 (permalink)  
Old 02-19-2003
dthomson dthomson is offline
Registered User
 
 
Join Date: Feb 2003
Location: Brisbane, Australia
Posts: 34
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.
Reply With Quote
  #3 (permalink)  
Old 02-21-2003
rodrigc rodrigc is offline
Registered User
 
 
Join Date: Feb 2003
Location: Boston, MA, U.S.A.
Posts: 27
Cool OPENSSL_VERSION_NUMBER?

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
Reply With Quote
  #4 (permalink)  
Old 02-21-2003
mes's Avatar
mes mes is offline
ZeroC Staff
 
Name: Mark Spruiell
Organization: ZeroC, Inc.
Project: Ice Developer
 
Join Date: Feb 2003
Location: California
Posts: 962
The next release will support OpenSSL 0.96x and 0.97x.
Reply With Quote
  #5 (permalink)  
Old 02-22-2003
dthomson dthomson is offline
Registered User
 
 
Join Date: Feb 2003
Location: Brisbane, Australia
Posts: 34
Thumbs up

Quote:
Originally posted by mes
The next release will support OpenSSL 0.96x and 0.97x.
<monty_burns> Huzzah! </monty_burns>

Reply With Quote
  #6 (permalink)  
Old 02-22-2003
dthomson dthomson is offline
Registered User
 
 
Join Date: Feb 2003
Location: Brisbane, Australia
Posts: 34
Re: OPENSSL_VERSION_NUMBER?

Quote:
Originally posted by rodrigc
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.
It'll work, but I'll repeat my paraphrasing of the immortal words of Abraham J. Simpson: "there are too many preprocessor macros these days!" I don't want to see yet more! There's got to be a better way ... once again I leave it to ZeroC to do the actual work

Regards,
Derek.

"I tied an onion to my belt! It was the style at the time ..." - Abe Simpson.
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

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


All times are GMT -4. The time now is 10:05 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0
(c) 2008 ZeroC, Inc.