[GRASS5] calculating averages on raster map patches?

Glynn Clements glynn at gclements.plus.com
Fri Aug 26 20:59:34 EDT 2005

Markus Neteler wrote:

> > > On a 64bit box I get a segfault from r.stats (called by r.average) after this
> > > message:
> > > 
> ...
> > > Any ideas?
> > 
> > Was this compiled without optimisation? If you enable optimisation
> > (e.g. -O2, which is added by default unless you manually specify
> > CFLAGS when configuring), output from gdb is often meaningless.
> Sorry, disabled now. BTW: It's hard to tell configure to disable the
> optimization:

Unless the behaviour of AC_PROG_CC has changed recently, you can force
the initial CFLAGS setting by setting the environment variable CFLAGS
before running configure, e.g.:

	CFLAGS=-g ./configure

More information about the grass-dev mailing list