Bug 112990 - graphics/xfig, graphics/xfig-devel build broken in -current with GCC 4.2
Summary: graphics/xfig, graphics/xfig-devel build broken in -current with GCC 4.2
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Martin Wilke
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-05-25 14:00 UTC by Hyogeol Lee
Modified: 2007-06-06 15:30 UTC (History)
0 users

See Also:


Attachments
file.diff (701 bytes, patch)
2007-05-25 14:00 UTC, Hyogeol Lee
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Hyogeol Lee 2007-05-25 14:00:11 UTC
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
Comment 1 Martin Wilke freebsd_committer freebsd_triage 2007-05-29 16:09:10 UTC
Responsible Changed
From-To: freebsd-ports-bugs->miwi

I'll take it.
Comment 2 dfilter service freebsd_committer freebsd_triage 2007-06-06 15:27:36 UTC
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"
Comment 3 Martin Wilke freebsd_committer freebsd_triage 2007-06-06 15:27:41 UTC
State Changed
From-To: open->closed

Committed. Thanks!