[sldev] [SNOW][HELP] gcc looking for old c++ stl?
Sharven Raabe
sharven.raabe at googlemail.com
Thu Jul 30 07:13:21 PDT 2009
Hello,
since I had some problems compiling snowglobe as is with the gcc
included in Ubuntu Jaunty I installed gcc from sources und /usr/local.
The compiler threw out a lot of deprecated warnings so I had to set
-Wno-deprecated. It through out a lot warnings for missing
paranthesis, so I added those. I'll provide a patch once I am sure I
found all of those. But right when I thought that this time it would
compile through it complained because it was missing the C++ 3.4.11
standard template library library. Does anyone have an idea why it
wants that and what I may do against it?
I am using revision 2571 from
https://svn.secondlife.com/svn/linden/projects/2009/snowglobe/trunk/indra
#######################
Error message:
/home/sharven/local/src/snowglobe/indra/viewer-linux-x86_64-release/llimage/llimageworker_test:
/usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required
by /home/sharven/local/src/snowglobe/indra/viewer-linux-x86_64-release/llimage/llimageworker_test)
-- Failure running:
/home/sharven/local/src/snowglobe/indra/viewer-linux-x86_64-release/llimage/llimageworker_test;--touch=/home/sharven/local/src/snowglobe/indra/viewer-linux-x86_64-release/llimage/llimageworker_test_ok.txt;--sourcedir=/home/sharven/local/src/snowglobe/indra/llimage
CMake Error at /home/sharven/local/src/snowglobe/indra/cmake/RunBuildTest.cmake:19
(message):
Error: 1
########################
Config:
export CC=/usr/local/bin/gcc
export CXX=/usr/local/bin/g++
export CFLAGS="-march=core2 -O2 -pipe -Wno-deprecated"
export CXXFLAGS="$CFLAGS"
$ LANG=C $CC --version
gcc (GCC) 4.4.1
$./develop.py -m64 --standalone -N -G KDevelop3 -t Release configure
$ cd viewer-linux-x86_64-release
$ make -j4
########################
I had to modify test/test.cpp, otherwise it would throw those errors:
/home/sharven/local/src/snowglobe/indra/test/test.cpp: In member
function 'virtual void LLTestCallback::test_completed(const
tut::test_result&)':
/home/sharven/local/src/snowglobe/indra/test/test.cpp:111: error:
'skip' is not a member of 'tut::test_result'
/home/sharven/local/src/snowglobe/indra/test/test.cpp: In function
'void wouldHaveCrashed(const std::string&)':
/home/sharven/local/src/snowglobe/indra/test/test.cpp:238: error:
cannot convert 'std::basic_string<char, std::char_traits<char>,
std::allocator<char> >' to 'const char*' for argument '1' to 'void
tut::<unnamed>::fail(const char*)'
The changes in test/test.cpp are as follows. I used the same changes
with the gcc from the package system and it compiled through:
Index: test/test.cpp
===================================================================
--- test/test.cpp (revision 2571)
+++ test/test.cpp (working copy)
@@ -108,10 +108,10 @@
++mFailedTests;
out << "abnormal termination";
break;
- case tut::test_result::skip:
+ /* case tut::test_result::skip:
++mSkippedTests;
out << "skipped known failure";
- break;
+ break; */
default:
++mFailedTests;
out << "unknown";
@@ -235,7 +235,7 @@
void wouldHaveCrashed(const std::string& message)
{
- tut::fail("llerrs message: " + message);
+ tut::fail(("llerrs message: " + message).c_str());
}
int main(int argc, char **argv)
########################
Config:
export CC=/usr/local/bin/gcc
export CXX=/usr/local/bin/g++
export CFLAGS="-march=core2 -O2 -pipe -Wno-deprecated"
export CXXFLAGS="$CFLAGS"
$ LANG=C $CC --version
gcc (GCC) 4.4.1
$./develop.py -m64 --standalone -N -G KDevelop3 -t Release configure
$ cd viewer-linux-x86_64-release
$ make -j4
More information about the SLDev
mailing list