[MacPorts] #41172: thrift: error: no member named 'bind' in namespace 'std' (was: Thrift fails to build under MacOSX 10.9 mavericks)

MacPorts noreply at macports.org
Mon Nov 4 11:19:47 PST 2013


#41172: thrift: error: no member named 'bind' in namespace 'std'
-----------------------+-----------------------
  Reporter:  vanjab@…  |      Owner:  naoya.n@…
      Type:  defect    |     Status:  new
  Priority:  Normal    |  Milestone:
 Component:  ports     |    Version:  2.2.1
Resolution:            |   Keywords:  mavericks
      Port:  thrift    |
-----------------------+-----------------------
Changes (by ryandesign@…):

 * keywords:  thrift mavericks => mavericks
 * owner:  macports-tickets@… => naoya.n@…
 * cc: blair@… (added)


Old description:

> Assuming some change in compiler behavior related to namespaces.
>
> #> sudo /opt/local/bin/port install thrift
> ....
> :debug:main OS darwin/13.0.0 (Mac OS X 10.9) arch i386
> :debug:main compiler clang 500.2.79 not blacklisted because it doesn't
> match {clang < 421}
> ....
> :info:build make[4]: Entering directory
> `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_thrift/thrift/work/thrift-0.9.0/lib/cpp'
> :info:build /bin/sh ../../libtool  --tag=CXX   --mode=compile
> /usr/bin/clang++ -DHAVE_CONFIG_H -I. -I../..  -I/opt/local/include
> -I./src -I./src/thrift -I/opt/local/include -Wall -Os -arch x86_64 -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
> :info:build libtool: compile:  /usr/bin/clang++ -DHAVE_CONFIG_H -I.
> -I../.. -I/opt/local/include -I./src -I./src/thrift -I/opt/local/include
> -Wall -Os -arch x86_64 -MT ThreadManager.lo -MD -MP -MF
> .deps/ThreadManager.Tpo -c src/thrift/concurrency/ThreadManager.cpp
> -fno-common -DPIC -o .libs/ThreadManager.o
> :info:build In file included from
> src/thrift/concurrency/ThreadManager.cpp:24:
> :info:build In file included from
> src/thrift/concurrency/ThreadManager.h:24:
> :info:build ./src/thrift/cxxfunctional.h:93:18: error: no member named
> 'bind' in namespace 'std'
> :info:build     using ::std::bind;
> :info:build           ~~~~~~~^
> :info:build src/thrift/concurrency/ThreadManager.cpp:571:8: warning:
> private field 'firstTime_' is not used [-Wunused-private-field]
> :info:build   bool firstTime_;
> :info:build        ^
> :info:build 1 warning and 1 error generated.

New description:

 Assuming some change in compiler behavior related to namespaces.

 {{{
 #> sudo /opt/local/bin/port install thrift
 ....
 :debug:main OS darwin/13.0.0 (Mac OS X 10.9) arch i386
 :debug:main compiler clang 500.2.79 not blacklisted because it doesn't
 match {clang < 421}
 ....
 :info:build make[4]: Entering directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_thrift/thrift/work/thrift-0.9.0/lib/cpp'
 :info:build /bin/sh ../../libtool  --tag=CXX   --mode=compile
 /usr/bin/clang++ -DHAVE_CONFIG_H -I. -I../..  -I/opt/local/include -I./src
 -I./src/thrift -I/opt/local/include -Wall -Os -arch x86_64 -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
 :info:build libtool: compile:  /usr/bin/clang++ -DHAVE_CONFIG_H -I.
 -I../.. -I/opt/local/include -I./src -I./src/thrift -I/opt/local/include
 -Wall -Os -arch x86_64 -MT ThreadManager.lo -MD -MP -MF
 .deps/ThreadManager.Tpo -c src/thrift/concurrency/ThreadManager.cpp  -fno-
 common -DPIC -o .libs/ThreadManager.o
 :info:build In file included from
 src/thrift/concurrency/ThreadManager.cpp:24:
 :info:build In file included from
 src/thrift/concurrency/ThreadManager.h:24:
 :info:build ./src/thrift/cxxfunctional.h:93:18: error: no member named
 'bind' in namespace 'std'
 :info:build     using ::std::bind;
 :info:build           ~~~~~~~^
 :info:build src/thrift/concurrency/ThreadManager.cpp:571:8: warning:
 private field 'firstTime_' is not used [-Wunused-private-field]
 :info:build   bool firstTime_;
 :info:build        ^
 :info:build 1 warning and 1 error generated.
 }}}

--

-- 
Ticket URL: <https://trac.macports.org/ticket/41172#comment:1>
MacPorts <http://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list