[GRASS-dev] [GRASS GIS] #826: i.topo.corr fail to build

#826: i.topo.corr fail to build
-----------------------+----------------------------------------------------
Reporter: yarma | Owner: grass-dev@lists.osgeo.org
     Type: defect | Status: new
Priority: normal | Milestone: 6.5.0
Component: Compiling | Version: svn-develbranch6
Keywords: | Platform: Linux
      Cpu: x86-64 |
-----------------------+----------------------------------------------------
I tried to build the addon i.topo.corr and get an error (other addons like
i.landsat.toar worked fine).
I did a fresh svn update on grass-addons, grass64_release, grass6_devel
and grass_trunk, recompile the 3 grass version and there is always this
compilation error ...

# make MODULE_TOPDIR=/opt/grass65/grass-6.5.svn
[[BR]]/opt/grass65/grass-6.5.svn/include/Make/Module.make:25: attention :
écrasement des commandes pour la cible « install »
[[BR]]/opt/grass65/grass-6.5.svn/include/Make/Rules.make:82: attention :
anciennes commandes ignorées pour la cible « install »
[[BR]]test -d OBJ.x86_64-unknown-linux-gnu || mkdir -p OBJ.x86_64-unknown-
linux-gnu
[[BR]]gcc -I/home/yarma/src_grass/grass6_devel/dist.x86_64-unknown-linux-
gnu/include -I/usr/include/ -O0 -ggdb -Wall -Werror-implicit-function-
declaration -I/usr/include/ -DPACKAGE=\""grassmods"\"
-I/home/yarma/src_grass/grass6_devel/dist.x86_64-unknown-linux-gnu/include
-o OBJ.x86_64-unknown-linux-gnu/correction.o -c correction.c
[[BR]]correction.c: In function ‘eval_tcor’:
[[BR]]correction.c:12: attention : unused variable ‘i’
[[BR]]gcc -I/home/yarma/src_grass/grass6_devel/dist.x86_64-unknown-linux-
gnu/include -I/usr/include/ -O0 -ggdb -Wall -Werror-implicit-function-
declaration -I/usr/include/ -DPACKAGE=\""grassmods"\"
-I/home/yarma/src_grass/grass6_devel/dist.x86_64-unknown-linux-gnu/include
-o OBJ.x86_64-unknown-linux-gnu/illumination.o -c illumination.c
[[BR]]illumination.c: In function ‘eval_c_cosi’:
[[BR]]illumination.c:14: attention : unused variable ‘i’
[[BR]]illumination.c: In function ‘eval_f_cosi’:
[[BR]]illumination.c:101: attention : unused variable ‘i’
[[BR]]illumination.c: In function ‘eval_d_cosi’:
[[BR]]illumination.c:188: attention : unused variable ‘i’
[[BR]]gcc -I/home/yarma/src_grass/grass6_devel/dist.x86_64-unknown-linux-
gnu/include -I/usr/include/ -O0 -ggdb -Wall -Werror-implicit-function-
declaration -I/usr/include/ -DPACKAGE=\""grassmods"\"
-I/home/yarma/src_grass/grass6_devel/dist.x86_64-unknown-linux-gnu/include
-o OBJ.x86_64-unknown-linux-gnu/main.o -c main.c
[[BR]]main.c: In function ‘main’:
[[BR]]main.c:167: erreur: implicit declaration of function ‘eval_c_cosi’
[[BR]]main.c:172: erreur: implicit declaration of function ‘eval_f_cosi’
[[BR]]main.c:177: erreur: implicit declaration of function ‘eval_d_cosi’
[[BR]]main.c:181: attention : le format n'est pas une chaîne littérale et
pas d'argument de format
[[BR]]main.c:210: attention : le format n'est pas une chaîne littérale et
pas d'argument de format
[[BR]]main.c:67: attention : unused variable ‘col’
[[BR]]main.c:67: attention : unused variable ‘row’
[[BR]]main.c:67: attention : unused variable ‘ncols’
[[BR]]main.c:67: attention : unused variable ‘nrows’
[[BR]]make: *** [OBJ.x86_64-unknown-linux-gnu/main.o] Erreur 1

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/826&gt;
GRASS GIS <http://grass.osgeo.org>

#826: i.topo.corr fail to build
------------------------+---------------------------------------------------
  Reporter: yarma | Owner: grass-dev@lists.osgeo.org
      Type: defect | Status: new
  Priority: normal | Milestone: 6.5.0
Component: Compiling | Version: svn-develbranch6
Resolution: | Keywords:
  Platform: Linux | Cpu: x86-64
------------------------+---------------------------------------------------
Comment (by neteler):

An attempt to fix in r39799. If it works, please close the ticket.

Markus

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/826#comment:1&gt;
GRASS GIS <http://grass.osgeo.org>

#826: i.topo.corr fail to build
------------------------+---------------------------------------------------
  Reporter: yarma | Owner: grass-dev@lists.osgeo.org
      Type: defect | Status: closed
  Priority: normal | Milestone: 6.5.0
Component: Compiling | Version: svn-develbranch6
Resolution: fixed | Keywords:
  Platform: Linux | Cpu: x86-64
------------------------+---------------------------------------------------
Changes (by yarma):

  * status: new => closed
  * resolution: => fixed

Comment:

the addon is compiling and working ...

thank you very much!

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/826#comment:2&gt;
GRASS GIS <http://grass.osgeo.org>