Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 25 Jul 2012 17:37:58 +0300
From:      Andriy Gapon <avg@FreeBSD.org>
To:        Yi-Jheng Lin <yzlin@FreeBSD.org>
Cc:        office@FreeBSD.org, Jung-uk Kim <jkim@FreeBSD.org>
Subject:   Re: cppunit: gcc 4.2 vs 4.6 and libreoffice too
Message-ID:  <501004C6.3030508@FreeBSD.org>
In-Reply-To: <5010033F.3060907@FreeBSD.org>
References:  <5010033F.3060907@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help

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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?501004C6.3030508>