From owner-freebsd-current@FreeBSD.ORG Mon May 7 18:22:20 2012 Return-Path: Delivered-To: freebsd-current@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6CB3F106566B; Mon, 7 May 2012 18:22:20 +0000 (UTC) (envelope-from dimitry@andric.com) Received: from tensor.andric.com (tensor.andric.com [87.251.56.140]) by mx1.freebsd.org (Postfix) with ESMTP id B53B08FC08; Mon, 7 May 2012 18:22:19 +0000 (UTC) Received: from [IPv6:2001:7b8:3a7:0:fd0e:5dcd:eba1:c82a] (unknown [IPv6:2001:7b8:3a7:0:fd0e:5dcd:eba1:c82a]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id 3ECED5C37; Mon, 7 May 2012 20:22:18 +0200 (CEST) Message-ID: <4FA812D8.3060304@andric.com> Date: Mon, 07 May 2012 20:22:16 +0200 From: Dimitry Andric User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:13.0) Gecko/20120425 Thunderbird/13.0 MIME-Version: 1.0 To: "Hartmann, O." References: <4FA66EF0.7090306@zedat.fu-berlin.de> <20120506135256.GL17325@azathoth.lan> <20120506141526.GM17325@azathoth.lan> <4FA6923F.5000408@zedat.fu-berlin.de> <20120506225842.GN17325@azathoth.lan> <4FA76996.5030106@FreeBSD.org> <20120507093518.GO17325@azathoth.lan> <4FA7A25D.8050607@zedat.fu-berlin.de> In-Reply-To: <4FA7A25D.8050607@zedat.fu-berlin.de> X-Enigmail-Version: 1.5a1pre Content-Type: multipart/mixed; boundary="------------020803030100040201090205" Cc: Baptiste Daroussin , Current FreeBSD , Andriy Gapon , Ports FreeBSD Subject: Re: Binary packages for LibreOffice 3.5 or 3.4 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 May 2012 18:22:20 -0000 This is a multi-part message in MIME format. --------------020803030100040201090205 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit On 2012-05-07 12:22, Hartmann, O. wrote: ... > The error I faced was introduced by the port net/libcmis, which in my > case was built via gcc 4.6 (and doesn't build with CLANG). After > building libcmis with legacy gcc 4.2.1, I was able to build > editors/libreoffice without problems (as far as the selected options > concern). Here's a diff for the net/libcmis port, to make it compile with clang. Can someone from ports please apply this? The software has some very basic C++ problems, such as non-virtual destructors, and tends to compile everything with -Werror -Wall -pedantic, so some errors are expected. :) Another approach, which takes less modifications, is to just run its configure script with --disable-error. --------------020803030100040201090205 Content-Type: text/x-diff; name="clangports-net-libcmis-1.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="clangports-net-libcmis-1.diff" Index: net/libcmis/files/patch-configure =================================================================== RCS file: net/libcmis/files/patch-configure diff -N net/libcmis/files/patch-configure --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ net/libcmis/files/patch-configure 7 May 2012 18:11:21 -0000 @@ -0,0 +1,42 @@ +--- configure.orig 2011-10-04 10:45:11.000000000 +0200 ++++ configure 2012-05-07 20:03:00.000000000 +0200 +@@ -3178,19 +3178,6 @@ else + + fi + +-if test x"$enable_werror" != "xno"; then : +- +- CFLAGS="$CFLAGS -Werror" +- CXXFLAGS="$CXXFLAGS -Werror" +- +-fi +-if test x"$GCC" = xyes; then : +- +- # Be tough with warnings and produce less careless code +- CFLAGS="$CFLAGS -Wall -pedantic" +- CXXFLAGS="$CXXFLAGS -Wall -pedantic" +- +-fi + + LIBCMIS_API_VERSION=0.2 + +@@ -15971,6 +15958,19 @@ fi + + ac_config_files="$ac_config_files Makefile libcmis.pc src/Makefile src/libcmis/Makefile" + ++if test x"$enable_werror" != "xno"; then : ++ ++ CFLAGS="$CFLAGS -Werror" ++ CXXFLAGS="$CXXFLAGS -Werror" ++ ++fi ++if test x"$GCC" = xyes; then : ++ ++ # Be tough with warnings and produce less careless code ++ CFLAGS="$CFLAGS -Wall -pedantic" ++ CXXFLAGS="$CXXFLAGS -Wall -pedantic" ++ ++fi + cat >confcache <<\_ACEOF + # This file is a shell script that caches the results of configure + # tests run on this system so they can be shared between configure Index: net/libcmis/files/patch-src__libcmis__atom-document.hxx =================================================================== RCS file: net/libcmis/files/patch-src__libcmis__atom-document.hxx diff -N net/libcmis/files/patch-src__libcmis__atom-document.hxx --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ net/libcmis/files/patch-src__libcmis__atom-document.hxx 7 May 2012 18:11:21 -0000 @@ -0,0 +1,11 @@ +--- src/libcmis/atom-document.hxx.orig 2011-10-01 14:26:15.000000000 +0200 ++++ src/libcmis/atom-document.hxx 2012-05-07 20:06:51.000000000 +0200 +@@ -44,7 +44,7 @@ class AtomDocument : public libcmis::Doc + public: + AtomDocument( AtomPubSession* session, std::string url ); + AtomDocument( AtomPubSession* session, xmlNodePtr entryNd ); +- ~AtomDocument( ); ++ virtual ~AtomDocument( ); + + // Override content methods + virtual FILE* getContent( const char* path = NULL ); Index: net/libcmis/files/patch-src__libcmis__atom-folder.hxx =================================================================== RCS file: net/libcmis/files/patch-src__libcmis__atom-folder.hxx diff -N net/libcmis/files/patch-src__libcmis__atom-folder.hxx --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ net/libcmis/files/patch-src__libcmis__atom-folder.hxx 7 May 2012 18:11:21 -0000 @@ -0,0 +1,11 @@ +--- src/libcmis/atom-folder.hxx.orig 2011-09-30 20:52:01.000000000 +0200 ++++ src/libcmis/atom-folder.hxx 2012-05-07 20:06:29.000000000 +0200 +@@ -42,7 +42,7 @@ class AtomFolder : public libcmis::Folde + public: + AtomFolder( AtomPubSession* session, std::string url ); + AtomFolder( AtomPubSession* session, xmlNodePtr entryNd ); +- ~AtomFolder( ); ++ virtual ~AtomFolder( ); + + // virtual pure methods from Folder + virtual std::vector< libcmis::CmisObjectPtr > getChildren( ); Index: net/libcmis/files/patch-src__libcmis__session.hxx =================================================================== RCS file: net/libcmis/files/patch-src__libcmis__session.hxx diff -N net/libcmis/files/patch-src__libcmis__session.hxx --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ net/libcmis/files/patch-src__libcmis__session.hxx 7 May 2012 18:11:21 -0000 @@ -0,0 +1,10 @@ +--- src/libcmis/session.hxx.orig 2011-09-30 20:38:39.000000000 +0200 ++++ src/libcmis/session.hxx 2012-05-07 19:23:43.000000000 +0200 +@@ -36,6 +36,7 @@ namespace libcmis + class Session + { + public: ++ virtual ~Session( ) { } + + /** Get the Root folder of the repository + */ --------------020803030100040201090205--