You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Mina Naguib (Commented) (JIRA)" <ji...@apache.org> on 2012/03/02 02:44:57 UTC

[jira] [Commented] (THRIFT-1492) enabling c_glib render thrift unusable (even for C++ code)

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

Mina Naguib commented on THRIFT-1492:
-------------------------------------

This is probably the same thing I reported in THRIFT-1128 ( https://issues.apache.org/jira/browse/THRIFT-1128 )
                
> enabling c_glib render thrift unusable (even for C++ code)
> ----------------------------------------------------------
>
>                 Key: THRIFT-1492
>                 URL: https://issues.apache.org/jira/browse/THRIFT-1492
>             Project: Thrift
>          Issue Type: Bug
>    Affects Versions: 0.8, 0.9
>         Environment: Mac OS 10.6.8 x86/64 on an air 11" 1.4GHz core 2 duo, gcc 4.5.3, gcc 4.6.2
>            Reporter: Philippe STRAUSS
>
> It's been a while I didn't touched my project which use thrift.
> After updating, either using svn or 0.8.0, with gcc-4.5.3, got the following when trying to build my project (this one was with thrift 0.8.0 tarball):
> *** omake: changing directory to /Users/philou/mysrc
> *** omake: reading OMakefiles
> *** omake: finished reading OMakefiles (0.64 sec)
> - build jack_preamp rc_types.o
> + /opt/gnucc/bin/g++ -Wall -DHAVE_NETINET_IN_H -DHAVE_INTTYPES_H -DDEBUG -O3 -march=core2 -mssse3 -I/usr/local/include -I/opt/local/include -I/opt/misc/include -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include -I/opt/misc/include/thrift -I/opt/av/include -I/opt/num/include -I../common.c -I../jackc -I../config -I../sigpath -c -o rc_types.o rc_types.cpp
> In file included from rc_types.h:11:0,
>                 from rc_types.cpp:7:
> /opt/misc/include/thrift/TApplicationException.h:32:49: erreur: expected class-name before '{' token
> /opt/misc/include/thrift/TApplicationException.h:57:31: erreur: 'string' in namespace 'std' does not name a type
> /opt/misc/include/thrift/TApplicationException.h:57:44: erreur: ISO C++ forbids declaration of 'message' with no type [-fpermissive]
> /opt/misc/include/thrift/TApplicationException.h:62:31: erreur: 'string' in namespace 'std' does not name a type
> /opt/misc/include/thrift/TApplicationException.h:62:44: erreur: ISO C++ forbids declaration of 'message' with no type [-fpermissive]
> /opt/misc/include/thrift/TApplicationException.h:94:3: erreur: 'uint32_t' does not name a type
> /opt/misc/include/thrift/TApplicationException.h:95:3: erreur: 'uint32_t' does not name a type
> /opt/misc/include/thrift/TApplicationException.h: In constructor 'apache::thrift::TApplicationException::TApplicationException()':
> /opt/misc/include/thrift/TApplicationException.h:50:5: erreur: class 'apache::thrift::TApplicationException' does not have any field named 'TException'
> ...
> TApplicationException.h:32:49: erreur: expected class-name before '{' token
> configure opts were :
> ./configure --prefix=/opt/misc/ --with-c_glib --with-haskell=no --with-php=no --with-ruby=no --with-java=no
> removing --with-c_glib and now I can build my C++ project.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira