Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
0.9.2
-
None
-
OSX 10.10.3
Apple LLVM version 6.1.0 (clang-602.0.53) (based on LLVM 3.6.0svn)
Description
I cannot successfully build a project using Thrift or build Thrift itself from source.
When trying to build the project from source I've run into problems addressed in several, now closed issues:
https://issues.apache.org/jira/browse/THRIFT-2229
https://issues.apache.org/jira/browse/THRIFT-2467
Here is the output of configure and make:
https://gist.github.com/danem/145a8c6ae1ada9445fa2
Alternatively, when I install thrift via homebrew, Thrift itself builds, but projects using it fail with this error:
In file included from /usr/local/include/thrift/transport/TSocket.h:27:
In file included from /usr/local/include/thrift/transport/TServerSocket.h:25:
/usr/local/include/thrift/cxxfunctional.h:93:18: error: no member named 'bind' in namespace 'std'; did you mean 'find'?
using ::std::bind;
~~~~~~~^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/algorithm:862:1: note:
'find' declared here
find(InputIterator __first, _InputIterator __last, const _Tp& __value)
^
1 error generated.
edit: I was actually able to get the homebrew installation to build my test project correctly. Sorry for the false alarm. I needed to use -std=c++11