You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[ 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;
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.
Activity
bmatheny commentedon Sep 9, 2015
@jsedgwick
SPLICE_F_NONBLOCKis certainly a Linux only thing. Probably need an#ifndef SPLICE_F_NONBLOCK.umanwizard commentedon Sep 9, 2015
I think ::splice doesn't exist on OSX
bmatheny commentedon Sep 9, 2015
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
flagswas used).umanwizard commentedon Sep 11, 2015
FYI, this is blocking FBThrift from building on OSX (see the issue I referenced above)
ryanrhee commentedon Oct 21, 2015
ping
umanwizard commentedon Nov 25, 2015
Ping, is this still the state of the world?
djwatson commentedon Dec 8, 2015
Send a pull request? We can probably just disable FileRegion entirely for osx
elbamos commentedon Jan 2, 2016
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.
elbamos commentedon Jan 2, 2016
Oh - and after simply deleting FileRegion from the cmake files, wangle does compile, and most tests pass, but:
oh-its-jimjam commentedon Jan 12, 2016
Playing devil's advocate here... we could create an OS X implementation of
FileRegionusingsendfile? It's equivalent tosplicebut limited to writing to sockets.wangle/service:ServiceTest: fix ASAN test
Fix ASAN-reported heap-use-after-free in FilePoller
Fix memory leak in EvbHandshakeHelperTest::TestDropConnection.
Document and assert expectations on AcceptorHandshakeHelper implement…