From owner-freebsd-ports-bugs@FreeBSD.ORG Fri May 25 13:00:12 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 F09B216A468 for ; Fri, 25 May 2007 13:00:11 +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 CE86D13C45D for ; Fri, 25 May 2007 13:00:11 +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 l4PD0Bps050962 for ; Fri, 25 May 2007 13:00:11 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id l4PD0BHA050961; Fri, 25 May 2007 13:00:11 GMT (envelope-from gnats) Resent-Date: Fri, 25 May 2007 13:00:11 GMT Resent-Message-Id: <200705251300.l4PD0BHA050961@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, Hyogeol Lee Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id A743B16A46B for ; Fri, 25 May 2007 12:52:50 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [69.147.83.33]) by mx1.freebsd.org (Postfix) with ESMTP id 7DCC013C4BA for ; Fri, 25 May 2007 12:52:50 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.13.1/8.13.1) with ESMTP id l4PCqopd025310 for ; Fri, 25 May 2007 12:52:50 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.13.1/8.13.1/Submit) id l4PCqonk025309; Fri, 25 May 2007 12:52:50 GMT (envelope-from nobody) Message-Id: <200705251252.l4PCqonk025309@www.freebsd.org> Date: Fri, 25 May 2007 12:52:50 GMT From: Hyogeol Lee To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.0 Cc: Subject: ports/112990: graphics/xfig, graphics/xfig-devel build broken in -current with GCC 4.2 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 May 2007 13:00:12 -0000 >Number: 112990 >Category: ports >Synopsis: graphics/xfig, graphics/xfig-devel build broken in -current with GCC 4.2 >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri May 25 13:00:11 GMT 2007 >Closed-Date: >Last-Modified: >Originator: Hyogeol Lee >Release: -current 7.0 >Organization: >Environment: FreeBSD localhost.localdomain 7.0-CURRENT FreeBSD 7.0-CURRENT #1: Fri May 25 02:23:16 KST 2007 ez8@localhost.localdomain:/usr/obj/elftoolchain/usr/src/sys/EZ8KERNEL amd64 >Description: graphics/xfig, graphics/xfig-devel build broken in -current with GCC 4.2 because of early extern declaration. Error message is below. cc -c -O2 -pipe -fno-strict-aliasing -march=athlon64 -I/usr/local/include -I/usr/local/include/libpng -I/usr/local/include/X11 -I/usr/local/include/X11/Xaw3d -I/usr/local/include -DCSRG_BASED -DFUNCPROTO=15 -DNARROWPROTO -DUSE_INLINE -DUSE_XPM -DXAW3D -DUSE_JPEG -DI18N -DWHEELMOUSE d_text.c In file included from d_text.c:26: u_fonts.h:35: error: array type has incomplete element type u_fonts.h:35: error: array type has incomplete element type u_fonts.h:36: error: array type has incomplete element type u_fonts.h:37: error: array type has incomplete element type *** Error code 1 >How-To-Repeat: Build graphics/xfig, graphics/xfig-devel in -current with GCC 4.2 >Fix: I attached patch file, and that patch file can works with both ports xfig, xfig-devel. Patch attached with submission follows: --- u_fonts.h.orig Fri May 25 21:39:29 2007 +++ u_fonts.h Fri May 25 21:40:07 2007 @@ -32,9 +32,6 @@ extern int psfontnum(); extern int latexfontnum(); -extern struct _xfstruct x_fontinfo[], x_backup_fontinfo[]; -extern struct _fstruct ps_fontinfo[]; -extern struct _fstruct latex_fontinfo[]; /* element of linked list for each font The head of list is for the different font NAMES, @@ -60,6 +57,10 @@ struct xfont *xfontlist; /* linked list of X fonts for different point * sizes */ }; + +extern struct _xfstruct x_fontinfo[], x_backup_fontinfo[]; +extern struct _fstruct ps_fontinfo[]; +extern struct _fstruct latex_fontinfo[]; int x_fontnum(); #endif /* U_FONTS_H */ >Release-Note: >Audit-Trail: >Unformatted: