Uploaded image for project: 'Thrift'
  1. Thrift
  2. THRIFT-1492

enabling c_glib render thrift unusable (even for C++ code)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.8, 0.9
    • 0.9
    • None
    • None
    • Mac OS 10.6.8 x86/64 on an air 11" 1.4GHz core 2 duo, gcc 4.5.3, gcc 4.6.2

    Description

      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.

      Attachments

        Activity

          People

            jfarrell Jake Farrell
            philou@philou.ch Philippe STRAUSS
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: