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

Build Error on MacOSX

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.9.1
    • 0.9.2
    • Deployment
    • None
    • Mac OS 10.9.2

    Description

      I'm unable to get thrift to build on mac os. Here's the build error.

      $ sudo make
      /Applications/Xcode.app/Contents/Developer/usr/bin/make all-recursive
      Making all in compiler/cpp
      /Applications/Xcode.app/Contents/Developer/usr/bin/make all-am
      make[3]: Nothing to be done for `all-am'.
      Making all in lib
      Making all in cpp
      Making all in .
      /bin/sh ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I../../lib/cpp/src/thrift -I/usr/local/include -I./src -Wall -g -O2 -MT ThreadManager.lo -MD -MP -MF .deps/ThreadManager.Tpo -c -o ThreadManager.lo `test -f 'src/thrift/concurrency/ThreadManager.cpp' || echo './'`src/thrift/concurrency/ThreadManager.cpp
      libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -I../../lib/cpp/src/thrift -I/usr/local/include -I./src -Wall -g -O2 -MT ThreadManager.lo -MD -MP -MF .deps/ThreadManager.Tpo -c src/thrift/concurrency/ThreadManager.cpp -fno-common -DPIC -o .libs/ThreadManager.o
      In file included from src/thrift/concurrency/ThreadManager.cpp:22:
      In file included from ./src/thrift/concurrency/ThreadManager.h:24:
      ./src/thrift/cxxfunctional.h:93:18: error: no member named 'bind' in namespace 'std'
      using ::std::bind;
      ~~~~~~~^
      src/thrift/concurrency/ThreadManager.cpp:569:8: warning: private field 'firstTime_' is not used [-Wunused-private-field]
      bool firstTime_;
      ^
      1 warning and 1 error generated.
      make[4]: *** [ThreadManager.lo] Error 1
      make[3]: *** [all-recursive] Error 1
      make[2]: *** [all-recursive] Error 1
      make[1]: *** [all-recursive] Error 1
      make: *** [all] Error 2

      Attachments

        Activity

          People

            jfarrell Jake Farrell
            aruns911 Arun
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: