[GRASS5] [bug #3974] (grass) r.mapcalc/libgis failure with LFS enabled

Glynn Clements glynn at gclements.plus.com
Tue Jan 10 12:15:03 EST 2006


Request Tracker wrote:

> this bug's URL: http://intevation.de/rt/webrt?serial_num=3974
> -------------------------------------------------------------------------
> 
> Subject: r.mapcalc/libgis failure with LFS enabled

One thing which I note about the implemention of LFS in GRASS is that
it works by defining the macros in config.h.

Consequently, every file which uses off_t must include config.h before
including any other headers. Otherwise, you will have different source
files assuming different sizes for off_t.

Historically, files have typically only included config.h if they need
to explicitly use a specific macro which it defines.

In adding the _FILE_OFFSET_BITS setting to config.h, you need to
re-evaluate the set of files which need to include config.h.

If I intended to enable LFS globally, I would have done so by adding
-D_FILE_OFFSET_BITS=64 to the compiler flags in Grass.make. That
guarantees that the same settings will be used throughout.

-- 
Glynn Clements <glynn at gclements.plus.com>




More information about the grass-dev mailing list