From owner-freebsd-ports@FreeBSD.ORG Fri Jan 18 07:37:17 2013 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 82927719; Fri, 18 Jan 2013 07:37:17 +0000 (UTC) (envelope-from vd@v5d.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 641A81D9; Fri, 18 Jan 2013 07:37:17 +0000 (UTC) Received: from mail.v5d.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.6/8.14.6) with ESMTP id r0I7bFHZ071751; Fri, 18 Jan 2013 07:37:17 GMT (envelope-from vd@v5d.org) Received: by mail.v5d.org (Postfix, from userid 1007) id B9DFF2E19F; Fri, 18 Jan 2013 09:37:15 +0200 (EET) Date: Fri, 18 Jan 2013 09:37:15 +0200 From: Vasil Dimov To: ajtiM Subject: Re: FreeBSD Port: graphics/hugin Message-ID: <20130118073715.GA17087@hag.hw.v5d.org> References: <201301171634.59322.lumiwa@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="KFztAG8eRSV9hGtP" Content-Disposition: inline In-Reply-To: <201301171634.59322.lumiwa@gmail.com> User-Agent: Mutt Cc: freebsd-ports@freebsd.org X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: vd@FreeBSD.org List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Jan 2013 07:37:17 -0000 --KFztAG8eRSV9hGtP Content-Type: multipart/mixed; boundary="UlVJffcvxoiEqYs2" Content-Disposition: inline --UlVJffcvxoiEqYs2 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Jan 17, 2013 at 16:34:59 -0600, ajtiM wrote: > My system: 9.1-RELEASE FreeBSD 9.1-RELEASE #0 r243826: Tue Dec 4 06:55:3= 9 UTC=20 > 2012 root@obrian.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386 >=20 > clang -v: FreeBSD clang version 3.1 (branches/release_31 156863) 20120523 > Target: i386-unknown-freebsd9.0 > Thread model: posix >=20 > I try to update hugin (Chase OpenEXR lib update) with clang but I got an= =20 > error: >=20 >=20 > In file included from=20 > /usr/ports/graphics/hugin/work/hugin-2011.4.0/src/foreign/zthread/src/van= illa/SimpleAtomicCount.cxx:26: > /usr/ports/graphics/hugin/work/hugin-2011.4.0/src/foreign/zthread/src/../= include/zthread/Guard.h:117:9:=20 > error:=20 > void function 'createScope' should not return a value [-Wreturn-typ= e] > return false; > ^ ~~~~~ > /usr/ports/graphics/hugin/work/hugin-2011.4.0/src/foreign/zthread/src/../= include/zthread/Guard.h:121:5:=20 > error:=20 > void function 'createScope' should not return a value [-Wreturn-typ= e] > return true; > ^ ~~~~ > 2 errors generated. > *** [src/foreign/zthread/src/CMakeFiles/ZThread.dir/AtomicCount.cxx.o] Er= ror=20 > code 1 [...] Hello, Do you have CC=3Dclang CXX=3Dclang++ CPP=3Dclang-cpp in your environment, e.g. /etc/make.conf ? hugin does not seem to compile with clang. I fixed the above error but a set of another ones spills out. Can you try the attached patch which should force it to compile with gcc and confirm whether it fixes the problem for you? The clang compilation issues would better be addressed with the hugin authors. --=20 Vasil Dimov gro.DSBeerF@dv % The difference between life and the movies is that a script has to make sense, and life doesn't. -- Joseph L. Mankiewicz --UlVJffcvxoiEqYs2 Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="hugin-force-gcc.diff" Content-Transfer-Encoding: quoted-printable Index: Makefile =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- Makefile (revision 310584) +++ Makefile (working copy) @@ -38,6 +38,8 @@ CMAKE_ARGS=3D -DwxWidgets_CONFIG_EXECUTABLE=3D${WX_CONFIG} CMAKE_VERBOSE=3D yes =20 +USE_GCC=3D yes + USE_WX=3D 2.8+ WX_UNICODE=3D yes =20 Index: files/patch-__usr__ports__graphics__hugin__work__hugin-2011.4.0__src= __foreign__flann__util__logger.h =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- files/patch-__usr__ports__graphics__hugin__work__hugin-2011.4.0__src__f= oreign__flann__util__logger.h (revision 0) +++ files/patch-__usr__ports__graphics__hugin__work__hugin-2011.4.0__src__f= oreign__flann__util__logger.h (working copy) @@ -0,0 +1,10 @@ +--- /usr/ports/graphics/hugin/work/hugin-2011.4.0/src/foreign/flann/util/l= ogger.h.orig 2013-01-18 09:26:49.000000000 +0200 ++++ /usr/ports/graphics/hugin/work/hugin-2011.4.0/src/foreign/flann/util/l= ogger.h 2013-01-18 09:26:20.000000000 +0200 +@@ -32,6 +32,7 @@ + #define LOGGER_H +=20 + #include ++#include + #include "flann/general.h" +=20 + namespace flann --UlVJffcvxoiEqYs2-- --KFztAG8eRSV9hGtP Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- iEYEARECAAYFAlD4+6sACgkQFw6SP/bBpCAzfACfaNIttm2qxvBe67UBCAxutaKQ 60oAoIwZFiQoPvR200KfSe4c6QzgYXMF =cnLZ -----END PGP SIGNATURE----- --KFztAG8eRSV9hGtP--