[GRASS-dev] correction: d.thematic.area doesn't compile

It turns out that while arraystats compiles, d.thematic.area and v.class have stopped compiling in develbranch_6. Here is the successful compile of arraystats and the errors with d.thematic.area and v.class

cmb-MBP-2:grass6_src cmbarton$ cd ./lib/arraystats
cmb-MBP-2:arraystats cmbarton$ make
cc -dynamiclib -compatibility_version 6.4 -current_version 6.4 -install_name /Applications/GRASS/GRASS-6.4.app/Contents/MacOS/lib/libgrass_arraystats.dylib -o /Users/cmbarton/grass_dev/grass6_src/dist.i386-apple-darwin9.4.0/lib/libgrass_arraystats.6.4.svn.dylib -L/Users/cmbarton/grass_dev/grass6_src/dist.i386-apple-darwin9.4.0/lib -arch i386 -Os -g -arch i386 -Os -g OBJ.i386-apple-darwin9.4.0/basic.o OBJ.i386-apple-darwin9.4.0/class.o -lgrass_gis -lgrass_datetime -lz && \
  (cd /Users/cmbarton/grass_dev/grass6_src/dist.i386-apple-darwin9.4.0/lib; ln -f -s libgrass_arraystats.6.4.svn.dylib /Users/cmbarton/grass_dev/grass6_src/dist.i386-apple-darwin9.4.0/lib/libgrass_arraystats.dylib)

cmb-MBP-2:lib cmbarton$ cd /Users/cmbarton/grass_dev/grass6_src/display/d.thematic.area
cmb-MBP-2:d.thematic.area cmbarton$ make
gcc -I/Users/cmbarton/grass_dev/grass6_src/dist.i386-apple-darwin9.4.0/include -arch i386 -Os -g -I/Library/Frameworks/GDAL.framework/Versions/1.5/Headers -DPACKAGE=\""grassmods"\" -I/Users/cmbarton/grass_dev/grass6_src/dist.i386-apple-darwin9.4.0/include -o OBJ.i386-apple-darwin9.4.0/main.o -c main.c
main.c: In function ‘main’:
main.c:133: error: ‘G_OPT_DB_WHERE’ undeclared (first use in this function)
main.c:133: error: (Each undeclared identifier is reported only once
main.c:133: error: for each function it appears in.)
make: *** [OBJ.i386-apple-darwin9.4.0/main.o] Error 1

cmb-MBP-2:d.thematic.area cmbarton$ cd /Users/cmbarton/grass_dev/grass6_src/vector/v.class
cmb-MBP-2:v.class cmbarton$ make
gcc -I/Users/cmbarton/grass_dev/grass6_src/dist.i386-apple-darwin9.4.0/include -arch i386 -Os -g -I/Library/Frameworks/GDAL.framework/Versions/1.5/Headers -DPACKAGE=\""grassmods"\" -I/Users/cmbarton/grass_dev/grass6_src/dist.i386-apple-darwin9.4.0/include -o OBJ.i386-apple-darwin9.4.0/main.o -c main.c
main.c: In function ‘main’:
main.c:60: error: ‘G_OPT_DB_WHERE’ undeclared (first use in this function)
main.c:60: error: (Each undeclared identifier is reported only once
main.c:60: error: for each function it appears in.)
make: *** [OBJ.i386-apple-darwin9.4.0/main.o] Error 1
cmb-MBP-2:v.class cmbarton$

Michael

Michael:

It turns out that while arraystats compiles, d.thematic.area and
v.class have stopped compiling in develbranch_6. Here is the
successful compile of arraystats and the errors with d.thematic.area
and v.class

....

main.c: In function ‘main’:
main.c:133: error: ‘G_OPT_DB_WHERE’ undeclared (first use in this
function)

In grass7 svn lib/gis/parser.c changed the default G_OPT_WHERE standard
option definition to be G_OPT_DB_WHERE to match the form of other standard
parser options. This wasn't backported to devbr6, but the modules try to
use it anyway.

Solutions:
- change devbr6 versions of v.class and d.thematic.area to use old name
- backport the libgis change and adjust all modules.
  (grep will ensure we don't miss any modules)
- backport change and add aliases to the old name so that any 3rd party
  addon modules still compile. (or add aliases to the new names)

Hamish