Date: Sat, 18 Sep 2004 15:20:29 GMT From: Sean Farley <sean-freebsd@farley.org> To: freebsd-ports-bugs@FreeBSD.org Subject: Re: ports/71658: graphics/xsane update 0.93 -> 0.97 Message-ID: <200409181520.i8IFKTAn014390@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/71658; it has been noted by GNATS. From: Sean Farley <sean-freebsd@farley.org> To: Dominik Brettnacher <domi@saargate.de> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200409181520.i8IFKTAn014390>