From owner-svn-ports-head@FreeBSD.ORG Mon Apr 20 10:47:06 2015 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id BD9294CF; Mon, 20 Apr 2015 10:47:06 +0000 (UTC) Received: from shepard.synsport.net (mail.synsport.com [208.69.230.148]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 95BB7D1C; Mon, 20 Apr 2015 10:47:06 +0000 (UTC) Received: from [192.168.1.22] (233.Red-79-156-124.staticIP.rima-tde.net [79.156.124.233]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by shepard.synsport.net (Postfix) with ESMTP id 853FE43BC7; Mon, 20 Apr 2015 05:46:57 -0500 (CDT) Message-ID: <5534D91E.5090301@marino.st> Date: Mon, 20 Apr 2015 12:46:54 +0200 From: John Marino Reply-To: marino@freebsd.org User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 MIME-Version: 1.0 To: Jan Beich , ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: Re: svn commit: r384340 - head/games/openbor/files References: <201504200925.t3K9Pqft004438@svn.freebsd.org> In-Reply-To: <201504200925.t3K9Pqft004438@svn.freebsd.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Apr 2015 10:47:06 -0000 On 4/20/2015 11:25, Jan Beich wrote: > Author: jbeich > Date: Mon Apr 20 09:25:51 2015 > New Revision: 384340 > URL: https://svnweb.freebsd.org/changeset/ports/384340 > > Log: > Unbreak build with gcc5 (and clang in future) > > In file included from source/webmlib/halloc/halloc.c:19:0: > source/webmlib/halloc/align.h:42:25: error: conflicting types for 'max_align_t' > typedef union max_align max_align_t; > ^ > In file included from source/webmlib/halloc/halloc.h:18:0, > from source/webmlib/halloc/halloc.c:18: > /usr/local/lib/gcc5/gcc/x86_64-portbld-freebsd11.0/5.0.1/include/stddef.h:429:3: note: previous declaration of 'max_align_t' was here > } max_align_t; > ^ > > Reported by: DPorts > > Added: > head/games/openbor/files/patch-source_webmlib_halloc_align.h (contents, props changed) > > +--- source/webmlib/halloc/align.h.orig 2015-04-09 22:13:36 UTC > ++++ source/webmlib/halloc/align.h > +@@ -22,7 +22,7 @@ > + */ > + typedef double max_align_t; > + > +-#else > ++#elif !defined(__CLANG_MAX_ALIGN_T_DEFINED) && !defined(_GCC_MAX_ALIGN_T) > + > + /* > + * a type with the most strict alignment requirements > Thanks! It doesn't fix it on dports though (see below). DragonFly has max_align_t in /usr/include/stddef.h and as a result does not install the gcc version of stddef.h. I've seen this error on another port -- we just renamed the type (it was only showing in 2 places). Regards, John cc -pipe -O2 -fno-strict-aliasing -DAMD64 -I"sdl" -I"'libpng-config" -I"--prefix'/include/libpng" -I"." -I"source" -I"source/adpcmlib" -I"source/gamelib" -I"source/preprocessorlib" -I"source/ramlib" -I"source/randlib" -I"source/scriptlib" -I"source/pnglib" -I"source/gfxlib" -I"source/webmlib" -I"/usr/local/include" -DLINUX -Wall -fsigned-char `pkg-config sdl2 --cflags` -fno-ident -DSDL -DOV_EXCLUDE_STATIC_CALLBACKS -DOPENGL -DLOADGL -DWEBM -c source/webmlib/halloc/halloc.c -o source/webmlib/halloc/halloc.o In file included from source/webmlib/halloc/halloc.c:19:0: source/webmlib/halloc/align.h:42:25: error: conflicting types for 'max_align_t' typedef union max_align max_align_t; ^ In file included from source/webmlib/halloc/halloc.h:18:0, from source/webmlib/halloc/halloc.c:18: /usr/include/stddef.h:78:3: note: previous declaration of 'max_align_t' was here } max_align_t; ^ Makefile:783: recipe for target 'source/webmlib/halloc/halloc.o' failed