Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 21 May 2007 23:54:44 +0300 (EEST)
From:      Giorgos Keramidas <keramida@FreeBSD.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/112841: [PATCH] devel/gindent breaks with gcc42
Message-ID:  <200705212054.l4LKshwp019207@kobe.laptop>
Resent-Message-ID: <200705212100.l4LL0HFF004594@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200705212054.l4LKshwp019207>