[GRASS-dev] compiling error in db.select

I just did an update and tried to compile trunk. I got an error in db.select. Note that I did a make distclean followed by an svn up before configuring and compiling.

Michaels-MacBook-Air:grass70_dev cmbarton$ cd /Users/Shared/grass_dev/grass70_dev/db/db.select
Michaels-MacBook-Air:db.select cmbarton$ make
gcc -g -O2 -arch i386 -I/Users/Shared/grass_dev/grass70_dev/dist.i386-apple-darwin11.2.0/include -I/Users/Shared/grass_dev/grass70_dev/dist.i386-apple-darwin11.2.0/include -D_FILE_OFFSET_BITS=64 -DPACKAGE="“grassmods”" -I/Users/Shared/grass_dev/grass70_dev/dist.i386-apple-darwin11.2.0/include -I/Users/Shared/grass_dev/grass70_dev/dist.i386-apple-darwin11.2.0/include -o OBJ.i386-apple-darwin11.2.0/main.o -c main.c
main.c: In function ‘main’:
main.c:56: error: ‘ERROR’ undeclared (first use in this function)
main.c:56: error: (Each undeclared identifier is reported only once
main.c:56: error: for each function it appears in.)
main.c:84: error: ‘OK’ undeclared (first use in this function)
main.c: In function ‘sel’:
main.c:112: error: ‘ERROR’ undeclared (first use in this function)
main.c:114: error: ‘OK’ undeclared (first use in this function)
make: *** [OBJ.i386-apple-darwin11.2.0/main.o] Error 1

Michael


C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Arizona State University

voice: 480-965-6262 (SHESC), 480-727-9746 (CSDC)
fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC)

www: http://www.public.asu.edu/~cmbarton, http://csdc.asu.edu

2011/11/11 Michael Barton <Michael.Barton@asu.edu>:

main.c: In function ‘sel’:
main.c:112: error: ‘ERROR’ undeclared (first use in this function)
main.c:114: error: ‘OK’ undeclared (first use in this function)
make: *** [OBJ.i386-apple-darwin11.2.0/main.o] Error 1

I have cleaned up the `include` directory. There were 50% of headers
unused, one empty, some dated back to G5. You need to run `make
distclean`.

Martin

--
Martin Landa <landa.martin gmail.com> * http://geo.fsv.cvut.cz/~landa