ports/71658: graphics/xsane update 0.93 -> 0.97

Sean Farley sean-freebsd at farley.org
Sat Sep 18 15:20:33 UTC 2004


The following reply was made to PR ports/71658; it has been noted by GNATS.

From: Sean Farley <sean-freebsd at farley.org>
To: Dominik Brettnacher <domi at saargate.de>
Cc: freebsd-gnats-submit at FreeBSD.org
Subject: Re: ports/71658: graphics/xsane update 0.93 -> 0.97
Date: Sat, 18 Sep 2004 10:14:04 -0500 (CDT)

 On Thu, 16 Sep 2004, Dominik Brettnacher wrote:
 
 > On Tue, 14 Sep 2004, Sean Farley wrote:
 >
 >> One last addition.  FreeBSD 4 should use GCC 3.3 (or maybe 3.2) to
 >> compile.  xsane tickles an optimization bug in GCC 2.95.4 which
 >> causes color previews to crash xsane.
 >
 > I'd hesitate to depend on a newer GCC version.
 >
 > As far as I know, the bug also disappears if you try different
 > compiler options (e.g. CFLAGS=-g).
 
 That is what I have read.  Removing the -O should work around the
 optimization bug.  Possibilities:
 1. Use newer GCC.  I tested with GCC v3.3.5.  This idea suffers from
     having to install another GCC.
 2. Prevent '-O' from being used.  The only problem is that the Makefile
     has to prevent -O from being in CFLAGS (even user-defined in
     make.conf) at least for the funciton in question
     (preview_autoselect_scanarea()/xsane-preview.c).  According to this
     post, the -g flag is not necessary; only removing -O is needed.
 
     http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&selm=b0clss%242nq%241%40newsreader2.netcologne.de
 
 Sean
 -----------------------
 sean-freebsd at farley.org



More information about the freebsd-ports-bugs mailing list