Date: Fri, 25 May 2007 12:52:50 GMT From: Hyogeol Lee<hyogeollee@gmail.com> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/112990: graphics/xfig, graphics/xfig-devel build broken in -current with GCC 4.2 Message-ID: <200705251252.l4PCqonk025309@www.freebsd.org> Resent-Message-ID: <200705251300.l4PD0BHA050961@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200705251252.l4PCqonk025309>