You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Guilherme Defreitas (JIRA)" <ji...@apache.org> on 2013/10/16 22:45:06 UTC

[jira] [Comment Edited] (THRIFT-2229) thrift failed to build on OSX 10.9 GM

    [ https://issues.apache.org/jira/browse/THRIFT-2229?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13797233#comment-13797233 ] 

Guilherme Defreitas edited comment on THRIFT-2229 at 10/16/13 8:44 PM:
-----------------------------------------------------------------------

Using '-std=c++0x' in AM_CXXFLAGS almost works... but failed in another file. It seems that I need to specify -std=c++0x in another configuration file, but I don't know where.


/bin/sh ../../../libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../.. -I../../../lib/cpp/src/thrift -I../../../lib/cpp/src -I/usr/local/include  -Wall -g -O2 -MT DebugProtoTest_types.lo -MD -MP -MF .deps/DebugProtoTest_types.Tpo -c -o DebugProtoTest_types.lo `test -f 'gen-cpp/DebugProtoTest_types.cpp' || echo './'`gen-cpp/DebugProtoTest_types.cpp
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I../../.. -I../../../lib/cpp/src/thrift -I../../../lib/cpp/src -I/usr/local/include -Wall -g -O2 -MT DebugProtoTest_types.lo -MD -MP -MF .deps/DebugProtoTest_types.Tpo -c gen-cpp/DebugProtoTest_types.cpp  -fno-common -DPIC -o .libs/DebugProtoTest_types.o
In file included from gen-cpp/DebugProtoTest_types.cpp:7:
In file included from gen-cpp/DebugProtoTest_types.h:15:
../../../lib/cpp/src/thrift/cxxfunctional.h:93:18: error: no member named 'bind' in namespace 'std'
    using ::std::bind;
          ~~~~~~~^
1 error generated.
make[4]: *** [DebugProtoTest_types.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



was (Author: guidefreitas):
Using -std=c++0x in AM_CXXFLAGS almost works... but failed in another file. It seems that I need to specify -std=c++0x in another configuration file, but I don't know where.


/bin/sh ../../../libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../.. -I../../../lib/cpp/src/thrift -I../../../lib/cpp/src -I/usr/local/include  -Wall -g -O2 -MT DebugProtoTest_types.lo -MD -MP -MF .deps/DebugProtoTest_types.Tpo -c -o DebugProtoTest_types.lo `test -f 'gen-cpp/DebugProtoTest_types.cpp' || echo './'`gen-cpp/DebugProtoTest_types.cpp
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I../../.. -I../../../lib/cpp/src/thrift -I../../../lib/cpp/src -I/usr/local/include -Wall -g -O2 -MT DebugProtoTest_types.lo -MD -MP -MF .deps/DebugProtoTest_types.Tpo -c gen-cpp/DebugProtoTest_types.cpp  -fno-common -DPIC -o .libs/DebugProtoTest_types.o
In file included from gen-cpp/DebugProtoTest_types.cpp:7:
In file included from gen-cpp/DebugProtoTest_types.h:15:
../../../lib/cpp/src/thrift/cxxfunctional.h:93:18: error: no member named 'bind' in namespace 'std'
    using ::std::bind;
          ~~~~~~~^
1 error generated.
make[4]: *** [DebugProtoTest_types.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


> thrift failed to build on OSX 10.9 GM
> -------------------------------------
>
>                 Key: THRIFT-2229
>                 URL: https://issues.apache.org/jira/browse/THRIFT-2229
>             Project: Thrift
>          Issue Type: Bug
>    Affects Versions: 0.9.1
>         Environment: Mac OSX 10.9 GM
>            Reporter: Guilherme Defreitas
>
> Gist with compilation errors: https://gist.github.com/guidefreitas/7012084



--
This message was sent by Atlassian JIRA
(v6.1#6144)