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

James E. King, III commented on THRIFT-3509:
--------------------------------------------

So I used docker to create an environment to build in (see build/docker, the 
.md file, for details on how).  Inside the docker container I did not see your 
reported error, but instead:

{noformat}
[ 40%] Building CXX object 
lib/cpp/test/CMakeFiles/testgencpp.dir/ThriftTest_extras.cpp.o
In file included from /thrift/src/lib/cpp/test/ThriftTest_extras.cpp:23:0:
/thrift/src/lib/cpp/test/gen-cpp/ThriftTest_types.h:36:8: error: 'reflection' 
in namespace 'apache::thrift' does not name a type
 extern ::apache::thrift::reflection::local::TypeSpec
        ^
In file included from /thrift/src/lib/cpp/test/ThriftTest_extras.cpp:23:0:
/thrift/src/lib/cpp/test/gen-cpp/ThriftTest_types.h:111:10: error: 'reflection' 
in namespace 'apache::thrift' does not name a type
   static ::apache::thrift::reflection::local::TypeSpec* local_reflection;
          ^
/thrift/src/lib/cpp/test/gen-cpp/ThriftTest_types.h:146:8: error: 'reflection' 
in namespace 'apache::thrift' does not name a type
 extern ::apache::thrift::reflection::local::TypeSpec
        ^
/thrift/src/lib/cpp/test/gen-cpp/ThriftTest_types.h:150:8: error: 'reflection' 
in namespace 'apache::thrift' does not name a type
 extern ::apache::thrift::reflection::local::TypeSpec
        ^
/thrift/src/lib/cpp/test/gen-cpp/ThriftTest_types.h:154:8: error: 'reflection' 
in namespace 'apache::thrift' does not name a type
 extern ::apache::thrift::reflection::local::TypeSpec
        ^
/thrift/src/lib/cpp/test/gen-cpp/ThriftTest_types.h:158:8: error: 'reflection' 
in namespace 'apache::thrift' does not name a type
 extern ::apache::thrift::reflection::local::TypeSpec
        ^
/thrift/src/lib/cpp/test/gen-cpp/ThriftTest_types.h:179:10: error: 'reflection' 
in namespace 'apache::thrift' does not name a type
   static ::apache::thrift::reflection::local::TypeSpec* local_reflection;
          ^
/thrift/src/lib/cpp/test/gen-cpp/ThriftTest_types.h:214:8: error: 'reflection' 
in namespace 'apache::thrift' does not name a type
 extern ::apache::thrift::reflection::local::TypeSpec
        ^
/thrift/src/lib/cpp/test/gen-cpp/ThriftTest_types.h:218:8: error: 'reflection' 
in namespace 'apache::thrift' does not name a type
 extern ::apache::thrift::reflection::local::TypeSpec
        ^
/thrift/src/lib/cpp/test/gen-cpp/ThriftTest_types.h:241:10: error: 'reflection' 
in namespace 'apache::thrift' does not name a type
   static ::apache::thrift::reflection::local::TypeSpec* local_reflection;
          ^
/thrift/src/lib/cpp/test/gen-cpp/ThriftTest_types.h:286:8: error: 'reflection' 
in namespace 'apache::thrift' does not name a type
 extern ::apache::thrift::reflection::local::TypeSpec
        ^
/thrift/src/lib/cpp/test/gen-cpp/ThriftTest_types.h:290:8: error: 'reflection' 
in namespace 'apache::thrift' does not name a type
 extern ::apache::thrift::reflection::local::TypeSpec
        ^
/thrift/src/lib/cpp/test/gen-cpp/ThriftTest_types.h:294:8: error: 'reflection' 
in namespace 'apache::thrift' does not name a type
 extern ::apache::thrift::reflection::local::TypeSpec
        ^
/thrift/src/lib/cpp/test/gen-cpp/ThriftTest_types.h:316:10: error: 'reflection' 
in namespace 'apache::thrift' does not name a type
   static ::apache::thrift::reflection::local::TypeSpec* local_reflection;
          ^
/thrift/src/lib/cpp/test/gen-cpp/ThriftTest_types.h:356:8: error: 'reflection' 
in namespace 'apache::thrift' does not name a type
 extern ::apache::thrift::reflection::local::TypeSpec
        ^
/thrift/src/lib/cpp/test/gen-cpp/ThriftTest_types.h:379:10: error: 'reflection' 
in namespace 'apache::thrift' does not name a type
   static ::apache::thrift::reflection::local::TypeSpec* local_reflection;
          ^
/thrift/src/lib/cpp/test/gen-cpp/ThriftTest_types.h:424:8: error: 'reflection' 
in namespace 'apache::thrift' does not name a type
 extern ::apache::thrift::reflection::local::TypeSpec
        ^
/thrift/src/lib/cpp/test/gen-cpp/ThriftTest_types.h:445:10: error: 'reflection' 
in namespace 'apache::thrift' does not name a type
   static ::apache::thrift::reflection::local::TypeSpec* local_reflection;
          ^
/thrift/src/lib/cpp/test/gen-cpp/ThriftTest_types.h:480:8: error: 'reflection' 
in namespace 'apache::thrift' does not name a type
 extern ::apache::thrift::reflection::local::TypeSpec
        ^
/thrift/src/lib/cpp/test/gen-cpp/ThriftTest_types.h:484:8: error: 'reflection' 
in namespace 'apache::thrift' does not name a type
 extern ::apache::thrift::reflection::local::TypeSpec
        ^
/thrift/src/lib/cpp/test/gen-cpp/ThriftTest_types.h:488:8: error: 'reflection' 
in namespace 'apache::thrift' does not name a type
 extern ::apache::thrift::reflection::local::TypeSpec
        ^
/thrift/src/lib/cpp/test/gen-cpp/ThriftTest_types.h:510:10: error: 'reflection' 
in namespace 'apache::thrift' does not name a type
   static ::apache::thrift::reflection::local::TypeSpec* local_reflection;
          ^
/thrift/src/lib/cpp/test/gen-cpp/ThriftTest_types.h:557:8: error: 'reflection' 
in namespace 'apache::thrift' does not name a type
 extern ::apache::thrift::reflection::local::TypeSpec
        ^
/thrift/src/lib/cpp/test/gen-cpp/ThriftTest_types.h:561:8: error: 'reflection' 
in namespace 'apache::thrift' does not name a type
 extern ::apache::thrift::reflection::local::TypeSpec
        ^
/thrift/src/lib/cpp/test/gen-cpp/ThriftTest_types.h:565:8: error: 'reflection' 
in namespace 'apache::thrift' does not name a type
 extern ::apache::thrift::reflection::local::TypeSpec
        ^
/thrift/src/lib/cpp/test/gen-cpp/ThriftTest_types.h:569:8: error: 'reflection' 
in namespace 'apache::thrift' does not name a type
 extern ::apache::thrift::reflection::local::TypeSpec
        ^
/thrift/src/lib/cpp/test/gen-cpp/ThriftTest_types.h:573:8: error: 'reflection' 
in namespace 'apache::thrift' does not name a type
 extern ::apache::thrift::reflection::local::TypeSpec
        ^
/thrift/src/lib/cpp/test/gen-cpp/ThriftTest_types.h:577:8: error: 'reflection' 
in namespace 'apache::thrift' does not name a type
 extern ::apache::thrift::reflection::local::TypeSpec
        ^
/thrift/src/lib/cpp/test/gen-cpp/ThriftTest_types.h:581:8: error: 'reflection' 
in namespace 'apache::thrift' does not name a type
 extern ::apache::thrift::reflection::local::TypeSpec
        ^
/thrift/src/lib/cpp/test/gen-cpp/ThriftTest_types.h:585:8: error: 'reflection' 
in namespace 'apache::thrift' does not name a type
 extern ::apache::thrift::reflection::local::TypeSpec
        ^
/thrift/src/lib/cpp/test/gen-cpp/ThriftTest_types.h:589:8: error: 'reflection' 
in namespace 'apache::thrift' does not name a type
 extern ::apache::thrift::reflection::local::TypeSpec
        ^
/thrift/src/lib/cpp/test/gen-cpp/ThriftTest_types.h:610:10: error: 'reflection' 
in namespace 'apache::thrift' does not name a type
   static ::apache::thrift::reflection::local::TypeSpec* local_reflection;
          ^
/thrift/src/lib/cpp/test/gen-cpp/ThriftTest_types.h:647:8: error: 'reflection' 
in namespace 'apache::thrift' does not name a type
 extern ::apache::thrift::reflection::local::TypeSpec
        ^
/thrift/src/lib/cpp/test/gen-cpp/ThriftTest_types.h:668:10: error: 'reflection' 
in namespace 'apache::thrift' does not name a type
   static ::apache::thrift::reflection::local::TypeSpec* local_reflection;
          ^
/thrift/src/lib/cpp/test/gen-cpp/ThriftTest_types.h:705:8: error: 'reflection' 
in namespace 'apache::thrift' does not name a type
 extern ::apache::thrift::reflection::local::TypeSpec
        ^
/thrift/src/lib/cpp/test/gen-cpp/ThriftTest_types.h:721:10: error: 'reflection' 
in namespace 'apache::thrift' does not name a type
   static ::apache::thrift::reflection::local::TypeSpec* local_reflection;
          ^
/thrift/src/lib/cpp/test/gen-cpp/ThriftTest_types.h:744:8: error: 'reflection' 
in namespace 'apache::thrift' does not name a type
 extern ::apache::thrift::reflection::local::TypeSpec
        ^
/thrift/src/lib/cpp/test/gen-cpp/ThriftTest_types.h:764:10: error: 'reflection' 
in namespace 'apache::thrift' does not name a type
   static ::apache::thrift::reflection::local::TypeSpec* local_reflection;
          ^
/thrift/src/lib/cpp/test/gen-cpp/ThriftTest_types.h:794:8: error: 'reflection' 
in namespace 'apache::thrift' does not name a type
 extern ::apache::thrift::reflection::local::TypeSpec
        ^
/thrift/src/lib/cpp/test/gen-cpp/ThriftTest_types.h:816:10: error: 'reflection' 
in namespace 'apache::thrift' does not name a type
   static ::apache::thrift::reflection::local::TypeSpec* local_reflection;
          ^
/thrift/src/lib/cpp/test/gen-cpp/ThriftTest_types.h:856:8: error: 'reflection' 
in namespace 'apache::thrift' does not name a type
 extern ::apache::thrift::reflection::local::TypeSpec
        ^
/thrift/src/lib/cpp/test/gen-cpp/ThriftTest_types.h:887:10: error: 'reflection' 
in namespace 'apache::thrift' does not name a type
   static ::apache::thrift::reflection::local::TypeSpec* local_reflection;
          ^
/thrift/src/lib/cpp/test/gen-cpp/ThriftTest_types.h:972:8: error: 'reflection' 
in namespace 'apache::thrift' does not name a type
 extern ::apache::thrift::reflection::local::TypeSpec
        ^
/thrift/src/lib/cpp/test/gen-cpp/ThriftTest_types.h:976:8: error: 'reflection' 
in namespace 'apache::thrift' does not name a type
 extern ::apache::thrift::reflection::local::TypeSpec
        ^
/thrift/src/lib/cpp/test/gen-cpp/ThriftTest_types.h:980:8: error: 'reflection' 
in namespace 'apache::thrift' does not name a type
 extern ::apache::thrift::reflection::local::TypeSpec
        ^
/thrift/src/lib/cpp/test/gen-cpp/ThriftTest_types.h:984:8: error: 'reflection' 
in namespace 'apache::thrift' does not name a type
 extern ::apache::thrift::reflection::local::TypeSpec
        ^
/thrift/src/lib/cpp/test/gen-cpp/ThriftTest_types.h:988:8: error: 'reflection' 
in namespace 'apache::thrift' does not name a type
 extern ::apache::thrift::reflection::local::TypeSpec
        ^
/thrift/src/lib/cpp/test/gen-cpp/ThriftTest_types.h:1009:10: error: 
'reflection' in namespace 'apache::thrift' does not name a type
   static ::apache::thrift::reflection::local::TypeSpec* local_reflection;
          ^
/thrift/src/lib/cpp/test/gen-cpp/ThriftTest_types.h:1044:8: error: 'reflection' 
in namespace 'apache::thrift' does not name a type
 extern ::apache::thrift::reflection::local::TypeSpec
        ^
/thrift/src/lib/cpp/test/gen-cpp/ThriftTest_types.h:1065:10: error: 
'reflection' in namespace 'apache::thrift' does not name a type
   static ::apache::thrift::reflection::local::TypeSpec* local_reflection;
          ^
/thrift/src/lib/cpp/test/gen-cpp/ThriftTest_types.h:1100:8: error: 'reflection' 
in namespace 'apache::thrift' does not name a type
 extern ::apache::thrift::reflection::local::TypeSpec
        ^
/thrift/src/lib/cpp/test/gen-cpp/ThriftTest_types.h:1104:8: error: 'reflection' 
in namespace 'apache::thrift' does not name a type
 extern ::apache::thrift::reflection::local::TypeSpec
        ^
/thrift/src/lib/cpp/test/gen-cpp/ThriftTest_types.h:1124:10: error: 
'reflection' in namespace 'apache::thrift' does not name a type
   static ::apache::thrift::reflection::local::TypeSpec* local_reflection;
          ^
/thrift/src/lib/cpp/test/gen-cpp/ThriftTest_types.h:1154:8: error: 'reflection' 
in namespace 'apache::thrift' does not name a type
 extern ::apache::thrift::reflection::local::TypeSpec
        ^
/thrift/src/lib/cpp/test/gen-cpp/ThriftTest_types.h:1158:8: error: 'reflection' 
in namespace 'apache::thrift' does not name a type
 extern ::apache::thrift::reflection::local::TypeSpec
        ^
/thrift/src/lib/cpp/test/gen-cpp/ThriftTest_types.h:1187:10: error: 
'reflection' in namespace 'apache::thrift' does not name a type
   static ::apache::thrift::reflection::local::TypeSpec* local_reflection;
          ^
/thrift/src/lib/cpp/test/gen-cpp/ThriftTest_types.h:1262:8: error: 'reflection' 
in namespace 'apache::thrift' does not name a type
 extern ::apache::thrift::reflection::local::TypeSpec
        ^
In file included from /thrift/src/lib/cpp/test/ThriftTest_extras.cpp:23:0:
/thrift/src/lib/cpp/test/gen-cpp/ThriftTest_types.h:1266:8: error: 'reflection' 
in namespace 'apache::thrift' does not name a type
 extern ::apache::thrift::reflection::local::TypeSpec
        ^
/thrift/src/lib/cpp/test/gen-cpp/ThriftTest_types.h:1286:10: error: 
'reflection' in namespace 'apache::thrift' does not name a type
   static ::apache::thrift::reflection::local::TypeSpec* local_reflection;
          ^
/thrift/src/lib/cpp/test/gen-cpp/ThriftTest_types.h:1316:8: error: 'reflection' 
in namespace 'apache::thrift' does not name a type
 extern ::apache::thrift::reflection::local::TypeSpec
        ^
/thrift/src/lib/cpp/test/gen-cpp/ThriftTest_types.h:1320:8: error: 'reflection' 
in namespace 'apache::thrift' does not name a type
 extern ::apache::thrift::reflection::local::TypeSpec
        ^
/thrift/src/lib/cpp/test/gen-cpp/ThriftTest_types.h:1340:10: error: 
'reflection' in namespace 'apache::thrift' does not name a type
   static ::apache::thrift::reflection::local::TypeSpec* local_reflection;
          ^
/thrift/src/lib/cpp/test/gen-cpp/ThriftTest_types.h:1370:8: error: 'reflection' 
in namespace 'apache::thrift' does not name a type
 extern ::apache::thrift::reflection::local::TypeSpec
        ^
/thrift/src/lib/cpp/test/gen-cpp/ThriftTest_types.h:1374:8: error: 'reflection' 
in namespace 'apache::thrift' does not name a type
 extern ::apache::thrift::reflection::local::TypeSpec
        ^
/thrift/src/lib/cpp/test/gen-cpp/ThriftTest_types.h:1396:10: error: 
'reflection' in namespace 'apache::thrift' does not name a type
   static ::apache::thrift::reflection::local::TypeSpec* local_reflection;
          ^
/thrift/src/lib/cpp/test/gen-cpp/ThriftTest_types.h:1436:8: error: 'reflection' 
in namespace 'apache::thrift' does not name a type
 extern ::apache::thrift::reflection::local::TypeSpec
        ^
/thrift/src/lib/cpp/test/gen-cpp/ThriftTest_types.h:1440:8: error: 'reflection' 
in namespace 'apache::thrift' does not name a type
 extern ::apache::thrift::reflection::local::TypeSpec
        ^
/thrift/src/lib/cpp/test/gen-cpp/ThriftTest_types.h:1444:8: error: 'reflection' 
in namespace 'apache::thrift' does not name a type
 extern ::apache::thrift::reflection::local::TypeSpec
        ^
/thrift/src/lib/cpp/test/gen-cpp/ThriftTest_types.h:1448:8: error: 'reflection' 
in namespace 'apache::thrift' does not name a type
 extern ::apache::thrift::reflection::local::TypeSpec
        ^
/thrift/src/lib/cpp/test/gen-cpp/ThriftTest_types.h:1468:10: error: 
'reflection' in namespace 'apache::thrift' does not name a type
   static ::apache::thrift::reflection::local::TypeSpec* local_reflection;
          ^
/thrift/src/lib/cpp/test/gen-cpp/ThriftTest_types.h:1498:8: error: 'reflection' 
in namespace 'apache::thrift' does not name a type
 extern ::apache::thrift::reflection::local::TypeSpec
        ^
/thrift/src/lib/cpp/test/gen-cpp/ThriftTest_types.h:1502:8: error: 'reflection' 
in namespace 'apache::thrift' does not name a type
 extern ::apache::thrift::reflection::local::TypeSpec
        ^
/thrift/src/lib/cpp/test/gen-cpp/ThriftTest_types.h:1522:10: error: 
'reflection' in namespace 'apache::thrift' does not name a type
   static ::apache::thrift::reflection::local::TypeSpec* local_reflection;
          ^
/thrift/src/lib/cpp/test/gen-cpp/ThriftTest_types.h:1552:8: error: 'reflection' 
in namespace 'apache::thrift' does not name a type
 extern ::apache::thrift::reflection::local::TypeSpec
        ^
/thrift/src/lib/cpp/test/gen-cpp/ThriftTest_types.h:1556:8: error: 'reflection' 
in namespace 'apache::thrift' does not name a type
 extern ::apache::thrift::reflection::local::TypeSpec
        ^
/thrift/src/lib/cpp/test/gen-cpp/ThriftTest_types.h:1560:8: error: 'reflection' 
in namespace 'apache::thrift' does not name a type
 extern ::apache::thrift::reflection::local::TypeSpec
        ^
/thrift/src/lib/cpp/test/gen-cpp/ThriftTest_types.h:1581:10: error: 
'reflection' in namespace 'apache::thrift' does not name a type
   static ::apache::thrift::reflection::local::TypeSpec* local_reflection;
          ^
/thrift/src/lib/cpp/test/gen-cpp/ThriftTest_types.h:1620:8: error: 'reflection' 
in namespace 'apache::thrift' does not name a type
 extern ::apache::thrift::reflection::local::TypeSpec
        ^
/thrift/src/lib/cpp/test/gen-cpp/ThriftTest_types.h:1636:10: error: 
'reflection' in namespace 'apache::thrift' does not name a type
   static ::apache::thrift::reflection::local::TypeSpec* local_reflection;
          ^
/thrift/src/lib/cpp/test/gen-cpp/ThriftTest_types.h:1664:8: error: 'reflection' 
in namespace 'apache::thrift' does not name a type
 extern ::apache::thrift::reflection::local::TypeSpec
        ^
/thrift/src/lib/cpp/test/gen-cpp/ThriftTest_types.h:1684:10: error: 
'reflection' in namespace 'apache::thrift' does not name a type
   static ::apache::thrift::reflection::local::TypeSpec* local_reflection;
          ^
/thrift/src/lib/cpp/test/gen-cpp/ThriftTest_types.h:1721:8: error: 'reflection' 
in namespace 'apache::thrift' does not name a type
 extern ::apache::thrift::reflection::local::TypeSpec
        ^
make[2]: *** [lib/cpp/test/CMakeFiles/testgencpp.dir/ThriftTest_extras.cpp.o] 
Error 1
make[1]: *** [lib/cpp/test/CMakeFiles/testgencpp.dir/all] Error 2
make: *** [all] Error 2
{noformat}

My guess is your gcc is too old, and the development tip is broken for another 
reason.  I tested that code you reported using gcc-4.6.3 originally.

> "make check" error
> ------------------
>
>                 Key: THRIFT-3509
>                 URL: https://issues.apache.org/jira/browse/THRIFT-3509
>             Project: Thrift
>          Issue Type: Question
>          Components: C++ - Compiler
>    Affects Versions: 0.9.3
>         Environment: centos6 , x86_64
>            Reporter: phoneli
>              Labels: bug, questions
>
> i clone the code from : https://git-wip-us.apache.org/repos/asf/thrift.git";
> when i do "make check" , it error .
> error mesage :
> "
> TServerIntegrationTest.cpp: In member function 'void 
> TServerIntegrationTest::test_stop_with_uninterruptable_clients_connected::test_method()':
> TServerIntegrationTest.cpp:382: error: 'template<class TServerType> class 
> TServerIntegrationTestFixture' used without template parameters
> TServerIntegrationTest.cpp:386: error: 'template<class TServerType> class 
> TServerIntegrationTestFixture' used without template parameters
> TServerIntegrationTest.cpp: In member function 'void 
> TServerIntegrationTest::test_concurrent_client_limit::test_method()':
> TServerIntegrationTest.cpp:418: error: 'template<class TServerType> class 
> TServerIntegrationTestFixture' used without template parameters
> "
> Is this an issue of source-code? 
> (my english is not good.)  



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to