From owner-freebsd-ports-bugs@FreeBSD.ORG Mon May 21 21:00:17 2007 Return-Path: X-Original-To: freebsd-ports-bugs@hub.freebsd.org Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 762E816A46B for ; Mon, 21 May 2007 21:00:17 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id 52E0A13C484 for ; Mon, 21 May 2007 21:00:17 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id l4LL0H0l004595 for ; Mon, 21 May 2007 21:00:17 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id l4LL0HFF004594; Mon, 21 May 2007 21:00:17 GMT (envelope-from gnats) Resent-Date: Mon, 21 May 2007 21:00:17 GMT Resent-Message-Id: <200705212100.l4LL0HFF004594@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Giorgos Keramidas Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id AAE4F16A468 for ; Mon, 21 May 2007 20:56:27 +0000 (UTC) (envelope-from keramida@ceid.upatras.gr) Received: from igloo.linux.gr (igloo.linux.gr [62.1.205.36]) by mx1.freebsd.org (Postfix) with ESMTP id 269C313C4C8 for ; Mon, 21 May 2007 20:56:26 +0000 (UTC) (envelope-from keramida@ceid.upatras.gr) Received: from kobe.laptop (host5.bedc.ondsl.gr [62.103.39.229]) (authenticated bits=128) by igloo.linux.gr (8.13.8/8.13.8/Debian-3) with ESMTP id l4LKtD97007377 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Mon, 21 May 2007 23:55:23 +0300 Received: from kobe.laptop (kobe.laptop [127.0.0.1]) by kobe.laptop (8.14.1/8.14.1) with ESMTP id l4LKskVS019208 for ; Mon, 21 May 2007 23:55:03 +0300 (EEST) (envelope-from keramida@kobe.laptop) Received: (from keramida@localhost) by kobe.laptop (8.14.1/8.14.1/Submit) id l4LKshwp019207; Mon, 21 May 2007 23:54:44 +0300 (EEST) (envelope-from keramida) Message-Id: <200705212054.l4LKshwp019207@kobe.laptop> Date: Mon, 21 May 2007 23:54:44 +0300 (EEST) From: Giorgos Keramidas To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: ports/112841: [PATCH] devel/gindent breaks with gcc42 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Giorgos Keramidas List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 May 2007 21:00:17 -0000 >Number: 112841 >Category: ports >Synopsis: [PATCH] devel/gindent breaks with gcc42 >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Mon May 21 21:00:16 GMT 2007 >Closed-Date: >Last-Modified: >Originator: Giorgos Keramidas >Release: FreeBSD 7.0-CURRENT i386 >Organization: >Environment: System: FreeBSD kobe 7.0-CURRENT FreeBSD 7.0-CURRENT #1: Mon May 21 03:46:20 EEST 2007 \ build@kobe:/home/build/obj/home/build/src/sys/KOBE i386 >Description: devel/gindent is broken with gcc42. The build fails with: %%% output.c:26: error: static declaration of 'output' follows non-static declaration indent.h:100: error: previous declaration of 'output' was here output.c: In function 'open_output': output.c:1149: warning: incompatible implicit declaration of built-in function 'exit' *** Error code 1 Stop in /var/tmp/1/gindent/work/indent-2.2.9/src. *** Error code 1 %%% >How-To-Repeat: >Fix: The following port-patch fixes the build. Can be applied in a CVS checkout with: % cd ports/devel/gindent % gpatch -p1 < patchfile --- gindent-patch begins here --- diff -r 6f8a0a66aae7 -r 81b583ffa833 files/patch-output.c --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/files/patch-output.c Mon May 21 23:50:50 2007 +0300 @@ -0,0 +1,11 @@ +--- src/output.c.orig Mon May 21 23:45:36 2007 ++++ src/output.c Mon May 21 23:47:36 2007 +@@ -23,7 +23,7 @@ + + RCSTAG_CC ("$Id: output.c,v 1.5 2002/12/12 17:36:49 david Exp $"); + +-static FILE * output = NULL; ++FILE * output = NULL; + static BOOLEAN inhibited = 0; + static buf_break_st_ty * buf_break_list = NULL; + --- gindent-patch ends here --- >Release-Note: >Audit-Trail: >Unformatted: