Go Back   ZeroC Forums > Patches

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 02-27-2003
rodrigc rodrigc is offline
Registered User
 
 
Join Date: Feb 2003
Location: Boston, MA, U.S.A.
Posts: 27
Thumbs up OpenSSLPluginI.cpp, invalid static cast on FreeBSD

Hi,

With Ice 1.0.1, I get the following compilation error on FreeBSD:

OpenSSLPluginI.cpp: In function `long unsigned int IceSSL::idFunction()':
OpenSSLPluginI.cpp:154: invalid static_cast from type `pthread*' to type `long
unsigned int'


The reason for this is that on FreeBSD, pthread_t is a pointer to a struct, so you
cannot static_cast it. Here is a patch to do a reinterpret_cast<> on FreeBSD.
Attached Files
File Type: txt opensslplugini.cpp.patch.txt (361 Bytes, 404 views)
__________________
--
Craig Rodrigues
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
proxy cast mutschaedi Help Center 6 06-13-2006 07:50 AM
How to detect an invalid proxy? ssergei Help Center 11 02-09-2005 05:41 AM
Question about the Ptr cast minifat Help Center 1 08-09-2004 10:15 PM
OpenSSLPluginI.cpp problem on FreeBSD-CURRENT rodrigc Bug Reports 2 05-30-2003 09:54 AM
OpenSSLPluginI.cpp doesn't compile against OpenSSL 0.97a dthomson Bug Reports 3 02-20-2003 12:25 AM


All times are GMT -4. The time now is 06:11 PM.


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.