[GRASS-dev] Re: [GRASS GIS] #399: Added "backlink" functionality to r.walk, r.cost & r.drain

GRASS GIS trac at osgeo.org
Wed Mar 4 07:32:14 EST 2009

#399: Added "backlink" functionality to r.walk, r.cost & r.drain
  Reporter:  cnielsen     |       Owner:  grass-dev at lists.osgeo.org
      Type:  enhancement  |      Status:  new                      
  Priority:  major        |   Milestone:  6.4.0                    
 Component:  Raster       |     Version:  unspecified              
Resolution:               |    Keywords:                           
  Platform:  All          |         Cpu:  All                      
Comment (by neteler):

 Replying to [comment:12 cmbarton]:
 > The r.drain patch doesn't compile. Error below
 > Michael
 > =======================
 > cmb-MBP-2:r.drain cmbarton$ patch -p0 < 6devdrain.patchpatching file
 > patching file description.html
 > cmb-MBP-2:r.drain cmbarton$ make
 > gcc -I/Users/cmbarton/grass_dev/grass6_src/dist.i386-apple-
 darwin9.6.0/include  -arch i386 -Os
 -DPACKAGE=\""grassmods"\"  -I/Users/cmbarton/grass_dev/grass6_src/dist.
 i386-apple-darwin9.6.0/include -o OBJ.i386-apple-darwin9.6.0/main.o -c
 > main.c: In function ‘main’:
 > main.c:608: error: too many arguments to function ‘Vect_build’
 > make: *** [OBJ.i386-apple-darwin9.6.0/main.o] Error 1
 > cmb-MBP-2:r.drain cmbarton$

 The newer prototype is (only one argument, delete the second):

 int Vect_build(struct Map_info *Map)

 This indicates that the patch was prepared with an older GRASS version.


Ticket URL: <http://trac.osgeo.org/grass/ticket/399#comment:14>
GRASS GIS <http://grass.osgeo.org>

More information about the grass-dev mailing list