Uploaded image for project: 'Thrift'
  1. Thrift
  2. THRIFT-762

Cocoa library won't compile on Mac OS X

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • 0.2, 0.3
    • None
    • Cocoa - Library
    • None
    • Mac OS X Snow Leopard 10.6, Mac OS X Leopard 10.5

    • Patch Available

    Description

      The cocoa library will not compile for Objective-C Cocoa applications on Mac OS X because it tries to include <CFNetwork/CFSocketStream.h> in transport/TSocketClient.m. This should be a pound-define that includes <CoreServices/CoreServices.h> if being compiled on Mac OS X or <CFNetwork/CFNetwork.h> if being compiled for iPhone OS.

      Also, the Mac OS X build will give a warning because the NSStreamDelegate protocol is not implemented in transport/TNSStreamTransport.

      {h,m}

      I have attached a patch to fix both issues.

      Attachments

        1. build_on_osx.patch
          2 kB
          Jeremy Fergason

        Activity

          People

            geechorama Andrew McGeachie
            jdfergason Jeremy Fergason
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: