[bind10-dev] compiling with SunStudio12.1

Jeremy C. Reed jreed at isc.org
Tue Jun 22 19:21:01 UTC 2010


When building trunk configured with --with-gtest with CC (cc++) with 
SunStudio12.1 on SunOS/sparc 5.10 it fails with:

/bin/bash ../../../libtool --tag=CXX    --mode=link CC   -g  
-L/udir/jreed/pkg/lib -o run_unittests run_unittests-run_unittests.o  
run_unittests-exceptions_unittest.o .libs/libexceptions.a 
/export/home/users/jreed/pkg/lib/libgtest.la -lsocket -lnsl
libtool: link: CC -g -o run_unittests run_unittests-run_unittests.o 
run_unittests-exceptions_unittest.o  -L/udir/jreed/pkg/lib 
.libs/libexceptions.a /udir/jreed/pkg/lib/libgtest.so -L/usr/sfw/lib 
/usr/sfw/lib/libstdc++.so -lgcc_s -lm -lsocket -lnsl 
-R/udir/jreed/pkg/lib -R/usr/sfw/lib -R/udir/jreed/pkg/lib 
-R/usr/sfw/lib
Undefined                       first referenced
 symbol                             in file
testing::TestInfo*testing::internal::MakeAndRegisterTestInfo(const 
char*,const char*,const char*,const char*,const 
void*,void(*)(),void(*)(),testing::internal::TestFactoryBase*) 
run_unittests-exceptions_unittest.o
void testing::internal::AssertHelper::operator=(const 
testing::Message&)const run_unittests-exceptions_unittest.o
void testing::Test::TearDown()     run_unittests-exceptions_unittest.o
testing::internal::AssertHelper::AssertHelper(testing::TestPartResult::Type,const 
char*,int,const char*) run_unittests-exceptions_unittest.o
int testing::UnitTest::Run()      run_unittests-run_unittests.o
testing::AssertionResult testing::AssertionSuccess() 
run_unittests-exceptions_unittest.o
testing::internal::AssertHelper::~AssertHelper() 
run_unittests-exceptions_unittest.o
testing::Test::~Test #Nvariant 1()          
run_unittests-exceptions_unittest.o
testing::Test::Test #Nvariant 1()          
run_unittests-exceptions_unittest.o
void testing::InitGoogleTest(int*,char**) run_unittests-run_unittests.o
testing::AssertionResult testing::internal::EqFailure(const char*,const 
char*,const testing::internal::String&,const 
testing::internal::String&,bool) run_unittests-exceptions_unittest.o
testing::internal::String 
testing::internal::StrStreamToString(std::stringstream *) 
run_unittests-exceptions_unittest.o
testing::UnitTest*testing::UnitTest::GetInstance() 
run_unittests-run_unittests.o
void testing::Test::SetUp()        run_unittests-exceptions_unittest.o
testing::internal::String 
testing::internal::String::ShowCStringQuoted(const char*) 
run_unittests-exceptions_unittest.o
ld: fatal: Symbol referencing errors. No output written to run_unittests
*** Error code 1
make: Fatal error: Command failed for target `run_unittests'
Current working directory 
/export/home/users/jreed/sunstudio-test/src/lib/exceptions


I don't see the symbol listed though. Problem is in Google's gtest 
itself I think. 

I tried building with CXXFLAGS = -library=stlport4 but it didn't help.




More information about the bind10-dev mailing list