cppunit: gcc 4.2 vs 4.6 and libreoffice too
Andriy Gapon
avg at FreeBSD.org
Wed Jul 25 14:38:01 UTC 2012
Not related to the thread-starting message, but another issue I've found with
cppunit. When it is compiled with GCC 4.6 it fails to use abi::__cxa_demangle in
TypeInfoHelper::getClassName because CPPUNIT_HAVE_GCC_ABI_DEMANGLE is not defined.
That happens because configure script fails to detect abi::__cxa_demangle
usability. And that is caused by a missing prototype/header for free(3) function
used in the detection code.
I suggest the following patches.
For configure:
--- configure.orig 2012-07-25 16:10:55.363997591 +0300
+++ configure 2012-07-25 16:11:52.753000184 +0300
@@ -21068,6 +21068,7 @@ cat >>conftest.$ac_ext <<_ACEOF
#include <typeinfo>
#include <cxxabi.h>
#include <string>
+#include <cstdlib>
template<typename TYPE>
class A {};
For the actual code:
--- src/cppunit/TypeInfoHelper.cpp.orig 2012-07-25 16:51:42.684996802 +0300
+++ src/cppunit/TypeInfoHelper.cpp 2012-07-25 16:59:06.149667846 +0300
@@ -7,6 +7,7 @@
#if CPPUNIT_HAVE_GCC_ABI_DEMANGLE
#include <cxxabi.h>
+#include <cstdlib>
#endif
--
Andriy Gapon
More information about the freebsd-office
mailing list