Skip to content

Build error on OSX #6

Closed
Closed

Description

@umanwizard

[ 30%] Building CXX object CMakeFiles/wangle.dir/channel/FileRegion.cpp.o
/Users/btv/wangle/wangle/channel/FileRegion.cpp:54:15: error: use of undeclared identifier 'SPLICE_F_NONBLOCK'
int flags = SPLICE_F_NONBLOCK | SPLICE_F_MORE;

Activity

  1. bmatheny commented on Sep 9, 2015

    @bmatheny

    @jsedgwick SPLICE_F_NONBLOCK is certainly a Linux only thing. Probably need an #ifndef SPLICE_F_NONBLOCK.

  2. umanwizard commented on Sep 9, 2015

    @umanwizard
    Author

    I think ::splice doesn't exist on OSX

  3. bmatheny commented on Sep 9, 2015

    @bmatheny

    It does not. Sorry I wasn't at a computer, I only saw the line of code from the error (not the function call where flags was used).

  4. umanwizard commented on Sep 11, 2015

    @umanwizard
    Author

    FYI, this is blocking FBThrift from building on OSX (see the issue I referenced above)

  5. ryanrhee commented on Oct 21, 2015

    @ryanrhee

    ping

  6. umanwizard commented on Nov 25, 2015

    @umanwizard
    Author

    Ping, is this still the state of the world?

  7. djwatson commented on Dec 8, 2015

    @djwatson

    Send a pull request? We can probably just disable FileRegion entirely for osx

  8. elbamos commented on Jan 2, 2016

    @elbamos

    This problem still exists as of today. Is there any way I can help?

    BTW - @umanwizard thank you for your efforts in collating and organizing all the various reasons the FB packages fail to build on OS X.

  9. elbamos commented on Jan 2, 2016

    @elbamos

    Oh - and after simply deleting FileRegion from the cmake files, wangle does compile, and most tests pass, but:

    The following tests FAILED:
          5 - BootstrapTest (OTHER_FAULT)
          7 - BroadcastPoolTest (OTHER_FAULT)
         15 - ThreadPoolExecutorTest (OTHER_FAULT)
    
  10. oh-its-jimjam commented on Jan 12, 2016

    @oh-its-jimjam

    Playing devil's advocate here... we could create an OS X implementation of FileRegion using sendfile? It's equivalent to splice but limited to writing to sockets.

  11. ghost closed this as completedin 1ae9efdon Mar 15, 2016
  12. ghost added a commit that references this issue on Aug 17, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions