[GRASS-dev] grass7 compilation error
Markus Neteler
neteler at osgeo.org
Mon Aug 16 03:28:56 EDT 2010
On Mon, Aug 16, 2010 at 9:15 AM, Martin Landa <landa.martin at gmail.com> wrote:
> Hi,
>
> there is new problem with compiling grass7 on Windows
>
> landa at GEO1 /osgeo4w/usr/src/grass_trunk/raster3d/r3.in.v5d
> $ make
> gcc -I/c/OSGeo4W/apps/gdal-16/include -I/c/OSGeo4W/include -g -O2
> -I/c/OSGeo4W/apps/gdal-16/include -I/c/OSGeo4W/include
> -I/osgeo4w/usr/src/grass_trunk/dist.i686-pc-mingw32/include
> -I/osgeo4w/usr/src/grass_trunk/dist.i686-pc-mingw32/include
> -D_FILE_OFFSET_BITS=64 -DLITTLE -DPACKAGE=\""grassmods"\"
> -I/osgeo4w/usr/src/grass_trunk/dist.i686-pc-mingw32/include
> -I/osgeo4w/usr/src/grass_trunk/dist.i686-pc-mingw32/include -o
> OBJ.i686-pc-mingw32/v5d.o -c v5d.c
> v5d.c: In function `v5dCreateFile':
> v5d.c:2342: error: `mode_t' undeclared (first use in this function)
> v5d.c:2342: error: (Each undeclared identifier is reported only once
> v5d.c:2342: error: for each function it appears in.)
> v5d.c:2342: error: syntax error before "mask"
> v5d.c:2345: error: `mask' undeclared (first use in this function)
> make: *** [OBJ.i686-pc-mingw32/v5d.o] Error 1
>
> Could be related to LFS issue?
I guess unlikely:
man 2 chmod
SYNOPSIS
#include <sys/stat.h>
int chmod(const char *path, mode_t mode);
int fchmod(int fd, mode_t mode);
Can you try adding
#include <sys/stat.h>
?
Markus
More information about the grass-dev
mailing list