[GRASS-user] fatal error: libintl.h: no such file or directory

Dear grass user,

I am getting following error to compile the source code of only r.watershed.

$ make
make -C ram || echo /c/osgeo4w/usr/src/grass-6.4.svn_src_snapshot_2011_11_26/raster/r.watershed/ram >> /c/OSGeo4W/apps/grass/grass-6.5.svn/error.log
make[1]: Entering directory /c/osgeo4w/usr/src/grass-6.4.svn_src_snapshot_2011_11_26/raster/r.watershed/ram' 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:90: warning: ignoring old commands for target install' Makefile:14: warning: overriding commands for target htmletc’
C:\osgeo4w\apps\grass\grass-6.5.svn/include/Make/Html.make:53: warning: ignoring old commands for target htmletc' make OBJ.i686-pc-mingw32 make[2]: Entering directory /c/osgeo4w/usr/src/grass-6.4.svn_src_snapshot_2011_11_26/raster/r.watershed/ram’
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:90: warning: ignoring old commands for target install’
Makefile:14: warning: overriding commands for target htmletc' C:\osgeo4w\apps\grass\grass-6.5.svn/include/Make/Html.make:53: warning: ignoring old commands for target htmletc’
make[2]: OBJ.i686-pc-mingw32' is up to date. make[2]: Leaving directory /c/osgeo4w/usr/src/grass-6.4.svn_src_snapshot_2011_11_26/raster/r.watershed/ram’
gcc -I/c/OSGeo4W/apps/grass/grass-6.5.svn/include -I/c/OSGeo4W/include -g -O2 -I/c/OSGeo4W/include -DPACKAGE="“grassmods”" -I/c/OSGeo4W/apps/grass/grass-6.5.svn/include -o OBJ.i686-pc-mingw32/close_maps.o -c close_maps.c
In file included from close_maps.c:4:0:
c:/OSGeo4W/apps/grass/grass-6.5.svn/include/grass/glocale.h:9:21: fatal error: libintl.h: No such file or directory
compilation terminated.
make[1]: *** [OBJ.i686-pc-mingw32/close_maps.o] Error 1
make[1]: Leaving directory /c/osgeo4w/usr/src/grass-6.4.svn_src_snapshot_2011_11_26/raster/r.watershed/ram' make -C seg || echo /c/osgeo4w/usr/src/grass-6.4.svn_src_snapshot_2011_11_26/raster/r.watershed/seg >> /c/OSGeo4W/apps/grass/grass-6.5.svn/error.log make[1]: Entering directory /c/osgeo4w/usr/src/grass-6.4.svn_src_snapshot_2011_11_26/raster/r.watershed/seg’
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:90: warning: ignoring old commands for target install’
Makefile:14: warning: overriding commands for target htmletc' C:\osgeo4w\apps\grass\grass-6.5.svn/include/Make/Html.make:53: warning: ignoring old commands for target htmletc’
make OBJ.i686-pc-mingw32
make[2]: Entering directory /c/osgeo4w/usr/src/grass-6.4.svn_src_snapshot_2011_11_26/raster/r.watershed/seg' 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:90: warning: ignoring old commands for target install' Makefile:14: warning: overriding commands for target htmletc’
C:\osgeo4w\apps\grass\grass-6.5.svn/include/Make/Html.make:53: warning: ignoring old commands for target htmletc' make[2]: OBJ.i686-pc-mingw32’ is up to date.
make[2]: Leaving directory /c/osgeo4w/usr/src/grass-6.4.svn_src_snapshot_2011_11_26/raster/r.watershed/seg' gcc -I/c/OSGeo4W/apps/grass/grass-6.5.svn/include -I/c/OSGeo4W/include -g -O2 -I/c/OSGeo4W/include -DPACKAGE=\""grassmods"\" -I/c/OSGeo4W/apps/grass/grass-6.5.svn/include -o OBJ.i686-pc-mingw32/close_maps.o -c close_maps.c In file included from close_maps.c:3:0: c:/OSGeo4W/apps/grass/grass-6.5.svn/include/grass/glocale.h:9:21: fatal error: libintl.h: No such file or directory compilation terminated. make[1]: *** [OBJ.i686-pc-mingw32/close_maps.o] Error 1 make[1]: Leaving directory /c/osgeo4w/usr/src/grass-6.4.svn_src_snapshot_2011_11_26/raster/r.watershed/seg’
make -C front || echo /c/osgeo4w/usr/src/grass-6.4.svn_src_snapshot_2011_11_26/raster/r.watershed/front >> /c/OSGeo4W/apps/grass/grass-6.5.svn/error.log
make[1]: Entering directory /c/osgeo4w/usr/src/grass-6.4.svn_src_snapshot_2011_11_26/raster/r.watershed/front' 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:90: warning: ignoring old commands for target install' make OBJ.i686-pc-mingw32 make[2]: Entering directory /c/osgeo4w/usr/src/grass-6.4.svn_src_snapshot_2011_11_26/raster/r.watershed/front’
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:90: warning: ignoring old commands for target install’
make[2]: OBJ.i686-pc-mingw32' is up to date. make[2]: Leaving directory /c/osgeo4w/usr/src/grass-6.4.svn_src_snapshot_2011_11_26/raster/r.watershed/front’
gcc -I/c/OSGeo4W/apps/grass/grass-6.5.svn/include -I/c/OSGeo4W/include -g -O2 -I/c/OSGeo4W/include -DPACKAGE="“grassmods”" -I/c/OSGeo4W/apps/grass/grass-6.5.svn/include -o OBJ.i686-pc-mingw32/main.o -c main.c
In file included from main.c:21:0:
c:/OSGeo4W/apps/grass/grass-6.5.svn/include/grass/glocale.h:9:21: fatal error: libintl.h: No such file or directory
compilation terminated.
make[1]: *** [OBJ.i686-pc-mingw32/main.o] Error 1
make[1]: Leaving directory `/c/osgeo4w/usr/src/grass-6.4.svn_src_snapshot_2011_11_26/raster/r.watershed/front’

Please suggest me how can i resolve the error.

regards.

Sandip

On Mon, Dec 5, 2011 at 6:46 AM, Sandip Maity <sandip.stesalit@gmail.com> wrote:

Dear grass user,

I am getting following error to compile the source code of only r.watershed.

$ make
make -C ram || echo
/c/osgeo4w/usr/src/grass-6.4.svn_src_snapshot_2011_11_26/raster/r.watershed/ram

/c/OSGeo4W/apps/grass/grass-6.5.svn/error.log

make[1]: Entering directory
`/c/osgeo4w/usr/src/grass-6.4.svn_src_snapshot_2011_11_26/raster/r.watershed/ram'

...

`/c/osgeo4w/usr/src/grass-6.4.svn_src_snapshot_2011_11_26/raster/r.watershed/ram'
gcc -I/c/OSGeo4W/apps/grass/grass-6.5.svn/include -I/c/OSGeo4W/include -g
-O2 -I/c/OSGeo4W/include -DPACKAGE=\""grassmods"\"
-I/c/OSGeo4W/apps/grass/grass-6.5.svn/include -o
OBJ.i686-pc-mingw32/close_maps.o -c close_maps.c
In file included from close_maps.c:4:0:
c:/OSGeo4W/apps/grass/grass-6.5.svn/include/grass/glocale.h:9:21: fatal
error: libintl.h: No such file or directory
compilation terminated.

On my Linux box, the file libintl.h is in the glibc-devel package. I suspect
that you are missing the installation of a related development package
on your system.

Markus

On Mon, Dec 5, 2011 at 6:46 AM, Sandip Maity <sandip.stesalit@gmail.com> wrote:

Dear grass user,

I am getting following error to compile the source code of only r.watershed.

You are trying to compile the grass 6.4 version of r.watershed against
grass 6.5:

c:/OSGeo4W/apps/grass/grass-6.5.svn/include/grass/glocale.h:9:21: fatal

[...]

make[1]: Leaving directory
`/c/osgeo4w/usr/src/grass-6.4.svn_src_snapshot_2011_11_26/raster/r.watershed/ram'

This will most probably not work without some hacking.

Markus M