Opened 10 years ago

Closed 9 years ago

#41172 closed defect (fixed)

thrift: error: no member named 'bind' in namespace 'std'

Reported by: vanjab@… Owned by: n0ts (Naoya Nakazawa)
Priority: Normal Milestone:
Component: ports Version: 2.2.1
Keywords: mavericks Cc: blair (Blair Zajac), ctreleaven (Craig Treleaven), mkae (Marko Käning), josephwinston (Joseph Winston), jgmath2000@…, h_atac@…, delo_men@…, mina.macports@…, bikehead@…, pat@…, n0ts (Naoya Nakazawa), michaelld (Michael Dickens)
Port: thrift

Description (last modified by ryandesign (Ryan Carsten Schmidt))

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.

Change History (19)

comment:1 Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: blair@… added
Description: modified (diff)
Keywords: thrift removed
Owner: changed from macports-tickets@… to naoya.n@…
Summary: Thrift fails to build under MacOSX 10.9 mavericksthrift: error: no member named 'bind' in namespace 'std'

comment:2 Changed 10 years ago by ctreleaven (Craig Treleaven)

Cc: ctreleaven@… added

Cc Me!

comment:3 Changed 10 years ago by mkae (Marko Käning)

Cc: mk@… added

Cc Me!

comment:4 Changed 10 years ago by mkae (Marko Käning)

#41371 seems to have a working patch for this issue. Perhaps the same could be done for this port.

comment:5 Changed 10 years ago by josephwinston (Joseph Winston)

Cc: josephwinston@… added

Cc Me!

comment:6 Changed 10 years ago by ruiguo@…

Cc: ruiguo@… added

Cc Me!

comment:7 Changed 10 years ago by ruiguo@…

Cc: ruiguo@… removed

Cc Me!

comment:8 Changed 10 years ago by ruiguo@…

Cc: ruiguo@… added

Cc Me!

comment:9 Changed 10 years ago by ruiguo@…

Cc: ruiguo@… removed

Cc Me!

comment:10 Changed 10 years ago by jgmath2000@…

Cc: jgmath2000@… added

Cc Me!

comment:11 Changed 10 years ago by h_atac@…

Cc: h_atac@… added

Cc Me!

comment:12 Changed 10 years ago by delo_men@…

Cc: delo_men@… added

Cc Me!

comment:13 Changed 10 years ago by mina.macports@…

Cc: mina.macports@… added

Cc Me!

comment:14 Changed 10 years ago by mina.macports@…

This is a problem upstream in 0.9.0 as well as 0.9.1

The good news is that it works with thrift's git master, but even then it requires adding -std=c++11 to CXXFLAGS

It might make sense to just wait it out till 0.9.2 is out and bump there.

comment:15 Changed 10 years ago by bikehead@…

Cc: bikehead@… added

Cc Me!

comment:16 Changed 10 years ago by pat@…

Cc: pat@… added

Cc Me!

comment:17 Changed 9 years ago by n0ts (Naoya Nakazawa)

Cc: naoya.n@… added

Cc Me!

comment:18 Changed 9 years ago by michaelld (Michael Dickens)

Cc: michaelld@… added

Cc Me!

comment:19 Changed 9 years ago by blair (Blair Zajac)

Resolution: fixed
Status: newclosed

The thrift port is now at 0.9.2. Let me know if it doesn't work for you.

I'm closing this now, reopen if it doesn't work for you. See #46745.

Note: See TracTickets for help on using tickets.