You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by Rush Manbert <ru...@manbert.com> on 2009/03/31 21:59:36 UTC

How to get CPP tests to work?

I checked out the head from SVN on Friday and I'm trying to build and  
run the C++ code in the test subdirectory tree.

I started in test/cpp with this:

	make -f Makefile.thrift

I'm getting lots of undefined symbols errors. Some of them are shown  
below:

  "thrift::test::Insanity::operator<(thrift::test::Insanity const&)  
const", referenced from:
        
thrift 
::test::CrazyNesting::read(apache::thrift::protocol::TProtocol*)   in  
ccEhuBEo.o

       std::_Rb_tree<thrift::test::Insanity,  
std::pair<thrift::test::Insanity const, std::basic_string<char,  
std::char_traits<char>, std::allocator<char> > >,  
std::_Select1st<std::pair<thrift::test::Insanity const,  
std::basic_string<char, std::char_traits<char>, std::allocator<char> >  
 > >, std::less<thrift::test::Insanity>,  
std::allocator<std::pair<thrift::test::Insanity const,  
std::basic_string<char, std::char_traits<char>, std::allocator<char> >  
 > > >::lower_bound(thrift::test::Insanity const&)in ccEhuBEo.o

I have a feeling that I'm doing something wrong, but I haven't been  
able to find any info on running the tests.

Can anyone please point me in the right direction?

Thanks,
Rush

Re: How to get CPP tests to work?

Posted by Rush Manbert <ru...@manbert.com>.
You rule! Thanks.

On Apr 2, 2009, at 4:50 PM, David Reiss wrote:

> I just fixed this.  Sorry for the inconvenience.
> I also renamed Makefile.thrift to Thrift-test.mk.
>
> Rush Manbert wrote:
>> I checked out the head from SVN on Friday and I'm trying to build and
>> run the C++ code in the test subdirectory tree.
>>
>> I started in test/cpp with this:
>>
>> 	make -f Makefile.thrift
>>
>> I'm getting lots of undefined symbols errors. Some of them are shown
>> below:
>>
>>  "thrift::test::Insanity::operator<(thrift::test::Insanity const&)
>> const", referenced from:
>>
>> thrift
>> ::test::CrazyNesting::read(apache::thrift::protocol::TProtocol*)   in
>> ccEhuBEo.o
>>
>>       std::_Rb_tree<thrift::test::Insanity,
>> std::pair<thrift::test::Insanity const, std::basic_string<char,
>> std::char_traits<char>, std::allocator<char> > >,
>> std::_Select1st<std::pair<thrift::test::Insanity const,
>> std::basic_string<char, std::char_traits<char>,  
>> std::allocator<char> >
>>>> , std::less<thrift::test::Insanity>,
>> std::allocator<std::pair<thrift::test::Insanity const,
>> std::basic_string<char, std::char_traits<char>,  
>> std::allocator<char> >
>>>>> ::lower_bound(thrift::test::Insanity const&)in ccEhuBEo.o
>>
>> I have a feeling that I'm doing something wrong, but I haven't been
>> able to find any info on running the tests.
>>
>> Can anyone please point me in the right direction?
>>
>> Thanks,
>> Rush


Re: How to get CPP tests to work?

Posted by David Reiss <dr...@facebook.com>.
I just fixed this.  Sorry for the inconvenience.
I also renamed Makefile.thrift to Thrift-test.mk.

Rush Manbert wrote:
> I checked out the head from SVN on Friday and I'm trying to build and  
> run the C++ code in the test subdirectory tree.
> 
> I started in test/cpp with this:
> 
> 	make -f Makefile.thrift
> 
> I'm getting lots of undefined symbols errors. Some of them are shown  
> below:
> 
>   "thrift::test::Insanity::operator<(thrift::test::Insanity const&)  
> const", referenced from:
>         
> thrift 
> ::test::CrazyNesting::read(apache::thrift::protocol::TProtocol*)   in  
> ccEhuBEo.o
> 
>        std::_Rb_tree<thrift::test::Insanity,  
> std::pair<thrift::test::Insanity const, std::basic_string<char,  
> std::char_traits<char>, std::allocator<char> > >,  
> std::_Select1st<std::pair<thrift::test::Insanity const,  
> std::basic_string<char, std::char_traits<char>, std::allocator<char> >  
>  > >, std::less<thrift::test::Insanity>,  
> std::allocator<std::pair<thrift::test::Insanity const,  
> std::basic_string<char, std::char_traits<char>, std::allocator<char> >  
>  > > >::lower_bound(thrift::test::Insanity const&)in ccEhuBEo.o
> 
> I have a feeling that I'm doing something wrong, but I haven't been  
> able to find any info on running the tests.
> 
> Can anyone please point me in the right direction?
> 
> Thanks,
> Rush

Re: How to get CPP tests to work?

Posted by Kevin Clark <ke...@gmail.com>.
I believe you could also just do ./configure --without-py

On Tue, Mar 31, 2009 at 1:25 PM, Rush Manbert <ru...@manbert.com> wrote:
> On Mar 31, 2009, at 1:03 PM, Jérémie BORDIER wrote:
>
>> On Tue, Mar 31, 2009 at 8:59 PM, Rush Manbert <ru...@manbert.com> wrote:
>>>
> <snip>
>
>> Hi Rush,
>>
>> i can't help you with the tests in test/cpp, but there's a bunch of
>> tests you can run by disabling the python tests that fails in test/
>>
>> Edit test/Makefile.am and add a comment to SUBDIRS += py, run make and
>> make check
>>
>> David, any hint for test/cpp ?
>>
>
> Thank you very much Jérémie. All of those tests pass.
>
> - Rush
>
>
>
>



-- 
Kevin Clark
http://glu.ttono.us

Re: How to get CPP tests to work?

Posted by Rush Manbert <ru...@manbert.com>.
On Mar 31, 2009, at 1:03 PM, Jérémie BORDIER wrote:

> On Tue, Mar 31, 2009 at 8:59 PM, Rush Manbert <ru...@manbert.com>  
> wrote:
>>
<snip>

> Hi Rush,
>
> i can't help you with the tests in test/cpp, but there's a bunch of
> tests you can run by disabling the python tests that fails in test/
>
> Edit test/Makefile.am and add a comment to SUBDIRS += py, run make and
> make check
>
> David, any hint for test/cpp ?
>

Thank you very much Jérémie. All of those tests pass.

- Rush




Re: How to get CPP tests to work?

Posted by Jérémie BORDIER <ah...@gmail.com>.
On Tue, Mar 31, 2009 at 8:59 PM, Rush Manbert <ru...@manbert.com> wrote:
> I checked out the head from SVN on Friday and I'm trying to build and run
> the C++ code in the test subdirectory tree.
>
> I started in test/cpp with this:
>
>        make -f Makefile.thrift
>
> I'm getting lots of undefined symbols errors. Some of them are shown below:
>
>  "thrift::test::Insanity::operator<(thrift::test::Insanity const&) const",
> referenced from:
>      thrift::test::CrazyNesting::read(apache::thrift::protocol::TProtocol*)
>   in ccEhuBEo.o
>
>      std::_Rb_tree<thrift::test::Insanity, std::pair<thrift::test::Insanity
> const, std::basic_string<char, std::char_traits<char>, std::allocator<char>
>> >, std::_Select1st<std::pair<thrift::test::Insanity const,
> std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >,
> std::less<thrift::test::Insanity>,
> std::allocator<std::pair<thrift::test::Insanity const,
> std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >
>>::lower_bound(thrift::test::Insanity const&)in ccEhuBEo.o
>
> I have a feeling that I'm doing something wrong, but I haven't been able to
> find any info on running the tests.
>
> Can anyone please point me in the right direction?
>
> Thanks,
> Rush
>

Hi Rush,

i can't help you with the tests in test/cpp, but there's a bunch of
tests you can run by disabling the python tests that fails in test/

Edit test/Makefile.am and add a comment to SUBDIRS += py, run make and
make check

David, any hint for test/cpp ?

-- 
Jérémie 'ahFeel' BORDIER