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:39 
> UTC 
> 2012     r...@obrian.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386
> 
> clang -v: FreeBSD clang version 3.1 (branches/release_31 156863) 20120523
> Target: i386-unknown-freebsd9.0
> Thread model: posix
> 
> I try to update hugin (Chase OpenEXR lib update) with clang but I got an 
> error:
> 
> 
> In file included from 
> /usr/ports/graphics/hugin/work/hugin-2011.4.0/src/foreign/zthread/src/vanilla/SimpleAtomicCount.cxx:26:
> /usr/ports/graphics/hugin/work/hugin-2011.4.0/src/foreign/zthread/src/../include/zthread/Guard.h:117:9:
>  
> error: 
>       void function 'createScope' should not return a value [-Wreturn-type]
>         return false;
>         ^      ~~~~~
> /usr/ports/graphics/hugin/work/hugin-2011.4.0/src/foreign/zthread/src/../include/zthread/Guard.h:121:5:
>  
> error: 
>       void function 'createScope' should not return a value [-Wreturn-type]
>     return true;
>     ^      ~~~~
> 2 errors generated.
> *** [src/foreign/zthread/src/CMakeFiles/ZThread.dir/AtomicCount.cxx.o] Error 
> code 1
[...]

Hello,

Do you have

CC=clang
CXX=clang++
CPP=clang-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.

-- 
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
Index: Makefile
===================================================================
--- Makefile	(revision 310584)
+++ Makefile	(working copy)
@@ -38,6 +38,8 @@
 CMAKE_ARGS=	-DwxWidgets_CONFIG_EXECUTABLE=${WX_CONFIG}
 CMAKE_VERBOSE=	yes
 
+USE_GCC=	yes
+
 USE_WX=		2.8+
 WX_UNICODE=	yes
 
Index: files/patch-__usr__ports__graphics__hugin__work__hugin-2011.4.0__src__foreign__flann__util__logger.h
===================================================================
--- files/patch-__usr__ports__graphics__hugin__work__hugin-2011.4.0__src__foreign__flann__util__logger.h	(revision 0)
+++ files/patch-__usr__ports__graphics__hugin__work__hugin-2011.4.0__src__foreign__flann__util__logger.h	(working copy)
@@ -0,0 +1,10 @@
+--- /usr/ports/graphics/hugin/work/hugin-2011.4.0/src/foreign/flann/util/logger.h.orig	2013-01-18 09:26:49.000000000 +0200
++++ /usr/ports/graphics/hugin/work/hugin-2011.4.0/src/foreign/flann/util/logger.h	2013-01-18 09:26:20.000000000 +0200
+@@ -32,6 +32,7 @@
+ #define LOGGER_H
+ 
+ #include <cstdio>
++#include <stdarg.h>
+ #include "flann/general.h"
+ 
+ namespace flann

Attachment: pgp58PXFzaokE.pgp
Description: PGP signature

Reply via email to