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 Fix: I attached patch file, and that patch file can works with both ports xfig, xfig-devel. Patch attached with submission follows: How-To-Repeat: Build graphics/xfig, graphics/xfig-devel in -current with GCC 4.2
Responsible Changed From-To: freebsd-ports-bugs->miwi I'll take it.
miwi 2007-06-06 14:27:30 UTC FreeBSD ports repository Added files: graphics/xfig/files patch-u_fonts.h graphics/xfig-devel/files patch-u_fonts.h Log: - Fix build with gcc 4.2 PR: 112990 Submitted by: Hyogeol Lee <hyogeollee@gmail.com> Revision Changes Path 1.1 +32 -0 ports/graphics/xfig-devel/files/patch-u_fonts.h (new) 1.1 +32 -0 ports/graphics/xfig/files/patch-u_fonts.h (new) _______________________________________________ cvs-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/cvs-all To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
State Changed From-To: open->closed Committed. Thanks!