[GRASS-user] g.extension in WinGrass - compiling error with addons

Markus Neteler neteler at osgeo.org
Sat Jan 9 06:03:52 EST 2010


On Sat, Jan 9, 2010 at 12:05 AM, Helmut Kudrnovsky <hellik at web.de> wrote:
> hi,
>
> I've tested g.extension on a selfcompiled WinGrass65 (WinVista32, compiled in the osgeo4w-stack).
>
> (btw annoying to find a working windows-commandline-svn-version for msys in the osgeo4w-stack)
>
>      g.extension extension=r.stream.basins prefix=${GISBASE}:
>
> (Fri Jan 08 23:52:26 2010)
> g.extension extension=r.stream.basins prefix=${GISBASE}
> Fetching <r.stream.basins> from GRASS-Addons SVN (be patient)...
> A    r.stream.basins\main.c
> A    r.stream.basins\description.html
> A    r.stream.basins\global.h
> A    r.stream.basins\catchment.c
> A    r.stream.basins\io.c
> A    r.stream.basins\Makefile
> Checked out revision 40328.
> Compiling r.stream.basins...
> c:/OSGeo4W/apps/grass/grass-6.5.svn/include/Make/Module.make
> :25: warning: overriding commands for target `install'
> c:/OSGeo4W/apps/grass/grass-6.5.svn/include/Make/Rules.make:
> 82: warning: ignoring old commands for target `install'
> test -d OBJ.i686-pc-mingw32 || mkdir -p OBJ.i686-pc-mingw32
> gcc -I/c/osgeo4w/usr/src/grass6_devel/dist.i686-pc-mingw32/include -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/c/OSGeo4W/include     -DPACKAGE=\""grassmods"\"  -I/c/osgeo4w/usr/src/grass6_devel/dist.i686-pc-mingw32/include -o OBJ.i686-pc-mingw32/catchment.o -c catchment.c
...
> c:/osgeo4w/usr/src/grass6_devel/dist.i686-pc-
> mingw32/include/grass/gisdefs.h:1107: warning:
> `libintl_printf' is an unrecognized format function type
> gcc.exe:
> c:/OSGeo4W/apps/grass/grass-6.5.svn/lib/gis/OBJ.i686-pc-
> mingw32/fmode.o: No such file or directory
> make: *** [/c/osgeo4w/usr/src/grass6_devel/dist.i686-pc-
> mingw32/bin/r.stream.basins.exe] Error 1


The related snippet in lib/gis/Makefile is:

LIB_OBJS := $(subst .c,.o,$(wildcard *.c))
LIB_OBJS := $(filter-out fmode.o dllmain.o,$(LIB_OBJS))
ifneq ($(MINGW),)
LIB_OBJS := $(LIB_OBJS) dllmain.o fmode.o
endif

...

I wonder how this fails (since it seems to be ok when not using g.extension.
Any ideas,

Markus


More information about the grass-user mailing list