You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Tyler Peterson (JIRA)" <ji...@apache.org> on 2011/03/28 20:18:05 UTC

[jira] [Commented] (THRIFT-1060) fb303 build error for cpp

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

Tyler Peterson commented on THRIFT-1060:
----------------------------------------

This defect hit me today on Ubuntu 10.04. I first tried building the latest release, 0.6.0.  Then built from trunk (r1086298).  Got the err described above both times.  I patched compiler/cpp/src/generate/t_cpp_generator.cc as shown in the patch. After rebuilding thrift I found that I could now successfully build fb303. I can't really say if the patch is _right_, but applying it _did_ allow my build of fb303 to succeed, both in the 0.6.0 release and HEAD of trunk (as of this morning).

> fb303 build error for cpp 
> --------------------------
>
>                 Key: THRIFT-1060
>                 URL: https://issues.apache.org/jira/browse/THRIFT-1060
>             Project: Thrift
>          Issue Type: Bug
>          Components: C++ - Compiler
>    Affects Versions: 0.6, 0.7
>            Reporter: Sudhir Jorwekar
>              Labels: 0.6, fb303, thrift
>         Attachments: commit-55acf75
>
>
> steps:
> ./bootstrap.sh
> ./configure
> make
> sudo make install
> cd contrib/fb303
> ./bootstrap.sh
> ./configure
> make
> Fails with error:
> gen-cpp/fb303_types.cpp:11: error: 'fb_status' is not a class or namespace
> gen-cpp/fb303_types.cpp:12: error: 'fb_status' is not a class or namespace
> gen-cpp/fb303_types.cpp:13: error: 'fb_status' is not a class or namespace
> gen-cpp/fb303_types.cpp:14: error: 'fb_status' is not a class or namespace
> gen-cpp/fb303_types.cpp:15: error: 'fb_status' is not a class or namespace
> gen-cpp/fb303_types.cpp:16: error: 'fb_status' is not a class or namespace
> make[3]: *** [fb303_types.o] Error 1
> make[3]: Leaving directory `/home/sudhir/workspace/scribe/thrift-apache/contrib/fb303/cpp'
> make[2]: *** [all] Error 2
> make[2]: Leaving directory `/home/sudhir/workspace/scribe/thrift-apache/contrib/fb303/cpp'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/home/sudhir/workspace/scribe/thrift-apache/contrib/fb303'
> make: *** [all] Error 2

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira