Results 1 to 1 of 1

Thread: OpenSSLPluginI.cpp, invalid static cast on FreeBSD

  1. #1
    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 Attached Files
    --
    Craig Rodrigues

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. why cast
    By rodolfo.bamberg in forum Help Center
    Replies: 2
    Last Post: 04-21-2008, 03:52 PM
  2. proxy cast
    By mutschaedi in forum Help Center
    Replies: 6
    Last Post: 06-13-2006, 06:50 AM
  3. Replies: 8
    Last Post: 03-21-2006, 08:34 PM
  4. OpenSSLPluginI.cpp problem on FreeBSD-CURRENT
    By rodrigc in forum Bug Reports
    Replies: 2
    Last Post: 05-30-2003, 08:54 AM
  5. Replies: 3
    Last Post: 02-19-2003, 11:25 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •