tanghong123 / googletest

Automatically exported from code.google.com/p/googletest
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Some tests fail to compile on FreeBSD #83

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. make distcheck

What is the expected output? What do you see instead?
depbase=`echo test/gtest_unittest.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;
g++ -DHAVE_CONFIG_H -I. -I./build-aux -I..   -I.. -I../include   -g -O2 -MT
test/gtest_unittest.o -MD -MP -MF $depbase.Tpo -c -o test/gtest_unittest.o
../samples/../test/gtest_unittest.cc && mv -f $depbase.Tpo $depbase.Po
../samples/../test/gtest_unittest.cc: In static member function `static
void
<unnamed>::ExpectFailureTest_ExpectFatalFaliure_Test::TestBody()::GTestExpectFat
alFailureHelper::Execute()':
../samples/../test/gtest_unittest.cc:771: error: `static void
<unnamed>::ScopedFakeTestPartResultReporterTest::AddFailure(<unnamed>::ScopedFak
eTestPartResultReporterTest::FailureMode)'
is protected
../samples/../test/gtest_unittest.cc:855: error: within this context
../samples/../test/gtest_unittest.cc: In static member function `static
void
<unnamed>::ExpectFailureTest_ExpectFatalFailureOnAllThreads_Test::TestBody()::GT
estExpectFatalFailureHelper::Execute()':
../samples/../test/gtest_unittest.cc:771: error: `static void
<unnamed>::ScopedFakeTestPartResultReporterTest::AddFailure(<unnamed>::ScopedFak
eTestPartResultReporterTest::FailureMode)'
is protected
../samples/../test/gtest_unittest.cc:864: error: within this context
../samples/../test/gtest_unittest.cc: In static member function `static
void
<unnamed>::ExpectFailureTest_AcceptsMacroThatExpandsToUnprotectedComma_Test::Tes
tBody()::GTestExpectFatalFailureHelper::Execute()':
../samples/../test/gtest_unittest.cc:771: error: `static void
<unnamed>::ScopedFakeTestPartResultReporterTest::AddFailure(<unnamed>::ScopedFak
eTestPartResultReporterTest::FailureMode)'
is protected
../samples/../test/gtest_unittest.cc:881: error: within this context
../samples/../test/gtest_unittest.cc: In static member function `static
void
<unnamed>::ExpectFailureTest_AcceptsMacroThatExpandsToUnprotectedComma_Test::Tes
tBody()::GTestExpectFatalFailureHelper::Execute()':
../samples/../test/gtest_unittest.cc:771: error: `static void
<unnamed>::ScopedFakeTestPartResultReporterTest::AddFailure(<unnamed>::ScopedFak
eTestPartResultReporterTest::FailureMode)'
is protected
../samples/../test/gtest_unittest.cc:886: error: within this context
../samples/../test/gtest_unittest.cc: In static member function `static
void
<unnamed>::SingleEvaluationTest_FailedASSERT_STREQ_Test::TestBody()::GTestExpect
FatalFailureHelper::Execute()':
../samples/../test/gtest_unittest.cc:2400: error: `static void
<unnamed>::SingleEvaluationTest::CompareAndIncrementCharPtrs()' is protected
../samples/../test/gtest_unittest.cc:2428: error: within this context
../samples/../test/gtest_unittest.cc: In static member function `static
void
<unnamed>::SingleEvaluationTest_FailedASSERT_NE_Test::TestBody()::GTestExpectFat
alFailureHelper::Execute()':
../samples/../test/gtest_unittest.cc:2405: error: `static void
<unnamed>::SingleEvaluationTest::CompareAndIncrementInts()' is protected
../samples/../test/gtest_unittest.cc:2451: error: within this context
*** Error code 1 (continuing)
`test/gtest_unittest' not remade because of errors.
[...]
creating test/gtest_list_tests_unittest_
depbase=`echo test/gtest_output_test_.o | sed
's|[^/]*$|.deps/&|;s|\.o$||'`; g++ -DHAVE_CONFIG_H -I. -I./build-aux -I.. 
 -I.. -I../include   -g -O2 -MT test/gtest_output_test_.o -MD -MP -MF
$depbase.Tpo -c -o test/gtest_output_test_.o
../samples/../test/gtest_output_test_.cc && mv -f $depbase.Tpo $depbase.Po
../samples/../test/gtest_output_test_.cc: In static member function `static
void
ExpectFailureTest_ExpectFatalFailure_Test::TestBody()::GTestExpectFatalFailureHe
lper::Execute()':
../samples/../test/gtest_output_test_.cc:807: error: `static void
ExpectFailureTest::AddFailure(ExpectFailureTest::FailureMode)' is protected
../samples/../test/gtest_output_test_.cc:822: error: within this context
../samples/../test/gtest_output_test_.cc: In static member function `static
void
ExpectFailureTest_ExpectFatalFailure_Test::TestBody()::GTestExpectFatalFailureHe
lper::Execute()':
../samples/../test/gtest_output_test_.cc:807: error: `static void
ExpectFailureTest::AddFailure(ExpectFailureTest::FailureMode)' is protected
../samples/../test/gtest_output_test_.cc:826: error: within this context
../samples/../test/gtest_output_test_.cc: In static member function `static
void
ExpectFailureTest_ExpectFatalFailureOnAllThreads_Test::TestBody()::GTestExpectFa
talFailureHelper::Execute()':
../samples/../test/gtest_output_test_.cc:807: error: `static void
ExpectFailureTest::AddFailure(ExpectFailureTest::FailureMode)' is protected
../samples/../test/gtest_output_test_.cc:903: error: within this context
../samples/../test/gtest_output_test_.cc: In static member function `static
void
ExpectFailureTest_ExpectFatalFailureOnAllThreads_Test::TestBody()::GTestExpectFa
talFailureHelper::Execute()':
../samples/../test/gtest_output_test_.cc:807: error: `static void
ExpectFailureTest::AddFailure(ExpectFailureTest::FailureMode)' is protected
../samples/../test/gtest_output_test_.cc:907: error: within this context
*** Error code 1 (continuing)
`test/gtest_output_test_' not remade because of errors.

What version of the product are you using? On what operating system?
Found in tags/release-1.2.1

FreeBSD 5.5-RELEASE-p14 FreeBSD 5.5-RELEASE-p14
g++ (GCC) 3.4.2 [FreeBSD] 20040728

Please provide any additional information below.
Note that it works if I configure with ../configure CC=gcc41 CXX=g++41
(which gives me g++41 (GCC) 4.1.3 20070806 (prerelease)).

Original issue reported on code.google.com by tsuna...@gmail.com on 11 Dec 2008 at 6:03

GoogleCodeExporter commented 9 years ago

Original comment by shiq...@gmail.com on 16 Dec 2008 at 4:23

GoogleCodeExporter commented 9 years ago

Original comment by zhanyong...@gmail.com on 22 Feb 2009 at 5:51

GoogleCodeExporter commented 9 years ago
Changed priority to low since no one is interested in working on it and no user 
has
been complaining.

Original comment by w...@google.com on 10 Dec 2009 at 6:10

GoogleCodeExporter commented 9 years ago
Not worth it.

Original comment by w...@google.com on 6 Mar 2010 at 6:06