[GRASS-dev] diglib test.c fails on 64bit win

Markus Metz markus.metz.giswork at googlemail.com
Wed May 12 02:12:34 EDT 2010

On Wed, May 12, 2010 at 7:27 AM, Martin Landa <landa.martin at gmail.com> wrote:
> Hi,
> 2010/4/13 Martin Landa <landa.martin at gmail.com>:
>> 2010/4/12 Glynn Clements <glynn at gclements.plus.com>:
>>> That should be fixed, then. On Windows, --enable-largefile has no
>>> effect other than breaking the diglib test.
>> then probably diglib test should be disabled on 64bit Windows machines
>> or better to be fixed.
> any chance to fix this issue?

The root of the problem is that LFS is enabled although LFS is not
available. This is done by configure, which defines USE_LARGEFILES
globally which in turn sets LFS_CFLAGS = -D_FILE_OFFSET_BITS=64 in
Grass.make. If USE_LARGEFILES would not be defined if LFS is not
available, the diglib test would be passed. Maybe it is a good thing
to have this test not only for portability, but also for testing if
LFS is actually working.


#ifdef __MINGW32__
#define off_t off64_t
#define fseeko fseeko64
#define ftello ftello64

in config.h have any effect?

Markus M

More information about the grass-dev mailing list