You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "David Snopek (JIRA)" <ji...@apache.org> on 2009/02/10 21:33:59 UTC

[jira] Issue Comment Edited: (THRIFT-337) trunk does not build on debian etch

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

dsnopek edited comment on THRIFT-337 at 2/10/09 12:32 PM:
---------------------------------------------------------------

I am also experiencing this problem on Debian Etch.  I was able to get it to finish building successfully by removing the "test" directory from the build by taking it out of the Makefile.am.  I'm not sure if it actually works because I have nothing to try it with, since I am evaluating Thrift now for the first time.

Here is a patch representing the change I made to get it build:

--- Makefile.am (revision 743071)
+++ Makefile.am (working copy)
@@ -1,6 +1,6 @@
 ACLOCAL_AMFLAGS = -I ./aclocal
 
-SUBDIRS = compiler/cpp lib test
+SUBDIRS = compiler/cpp lib
 \#\# Don't run make dist from a subversion working copy
 \#\# because it will pull in your .svn directories.
 EXTRA_DIST = bootstrap.sh cleanup.sh doc test tutorial contrib \


      was (Author: dsnopek):
    
I am also experiencing this problem on Debian Etch.  I was able to get it to finish building successfully by removing the "test" directory from the build by taking it out of the Makefile.am.  I'm not sure if it actually works because I have nothing to try it with, since I am evaluating Thrift now for the first time.

Here is a patch representing the change I made to get it build:

--- Makefile.am (revision 743071)
+++ Makefile.am (working copy)
@@ -1,6 +1,6 @@
 ACLOCAL_AMFLAGS = -I ./aclocal
 
-SUBDIRS = compiler/cpp lib test
+SUBDIRS = compiler/cpp lib
 ## Don't run make dist from a subversion working copy
 ## because it will pull in your .svn directories.
 EXTRA_DIST = bootstrap.sh cleanup.sh doc test tutorial contrib \

  
> trunk does not build on debian etch
> -----------------------------------
>
>                 Key: THRIFT-337
>                 URL: https://issues.apache.org/jira/browse/THRIFT-337
>             Project: Thrift
>          Issue Type: Bug
>          Components: Compiler (C++)
>         Environment: etch 32-bit
>            Reporter: Jonathan Ellis
>            Assignee: David Reiss
>            Priority: Blocker
>
> trunk gen-cpp does not build on debian etch:
> /bin/sh ../libtool --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I.. -I../lib/cpp/src -I/usr/include   -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
> mkdir .libs
>  g++ -DHAVE_CONFIG_H -I. -I.. -I../lib/cpp/src -I/usr/include -g -O2 -MT DebugProtoTest_types.lo -MD -MP -MF .deps/DebugProtoTest_types.Tpo -c gen-cpp/DebugProtoTest_types.cpp  -fPIC -DPIC -o .libs/DebugProtoTest_types.o
> gen-cpp/DebugProtoTest_types.cpp: In member function 'uint32_t thrift::test::debug::CompactProtoTestStruct::read(apache::thrift::protocol::TProtocol*)':
> gen-cpp/DebugProtoTest_types.cpp:2634: error: no matching function for call to 'apache::thrift::protocol::TProtocol::readBool(std::_Bit_reference)'
> ../lib/cpp/src/protocol/TProtocol.h:200: note: candidates are: virtual uint32_t apache::thrift::protocol::TProtocol::readBool(bool&)
> make[3]: *** [DebugProtoTest_types.lo] Error 1
> After configure --disable-gen-cpp, a different error:
> /bin/sh ../libtool --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I.. -I../lib/cpp/src -I/usr/include   -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
> mkdir .libs
>  g++ -DHAVE_CONFIG_H -I. -I.. -I../lib/cpp/src -I/usr/include -g -O2 -MT DebugProtoTest_types.lo -MD -MP -MF .deps/DebugProtoTest_types.Tpo -c gen-cpp/DebugProtoTest_types.cpp  -fPIC -DPIC -o .libs/DebugProtoTest_types.o
> gen-cpp/DebugProtoTest_types.cpp: In member function 'uint32_t thrift::test::debug::CompactProtoTestStruct::read(apache::thrift::protocol::TProtocol*)':
> gen-cpp/DebugProtoTest_types.cpp:2634: error: no matching function for call to 'apache::thrift::protocol::TProtocol::readBool(std::_Bit_reference)'
> ../lib/cpp/src/protocol/TProtocol.h:200: note: candidates are: virtual uint32_t apache::thrift::protocol::TProtocol::readBool(bool&)
> make[3]: *** [DebugProtoTest_types.lo] Error 1
> I'm on revision 743059.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.