From owner-freebsd-ports-bugs@FreeBSD.ORG Sat Sep 18 15:20:33 2004 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 85C7216A4CE for ; Sat, 18 Sep 2004 15:20:33 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7104543D31 for ; Sat, 18 Sep 2004 15:20:33 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) i8IFKXYC014396 for ; Sat, 18 Sep 2004 15:20:33 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.11/8.12.11/Submit) id i8IFKTAn014390; Sat, 18 Sep 2004 15:20:29 GMT (envelope-from gnats) Date: Sat, 18 Sep 2004 15:20:29 GMT Message-Id: <200409181520.i8IFKTAn014390@freefall.freebsd.org> To: freebsd-ports-bugs@FreeBSD.org From: Sean Farley Subject: Re: ports/71658: graphics/xsane update 0.93 -> 0.97 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Sean Farley List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 18 Sep 2004 15:20:33 -0000 The following reply was made to PR ports/71658; it has been noted by GNATS. From: Sean Farley To: Dominik Brettnacher Cc: freebsd-gnats-submit@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@farley.org