[GRASSLIST:7229] Re: Compile Errors continue in 6.0.0

Hamish hamish_nospam at yahoo.com
Sat Jun 18 23:37:43 EDT 2005


> > cd gmath
> > make
> > gcc -I/grass/grass-6.0.0/include
> > -I/grass/grass-6.0.0/dist.x86_64-unknown-linux-gnu/include/grass  -g -O2 
> > -Wall -Wconversion -Wno-implicit-int   -fPIC    -DPACKAGE=\""grasslibs"\" 
> >     -DPACKAGE=\""grasslibs"\"  -I/grass/grass-6.0.0/include
> > -I/grass/grass-6.0.0/dist.x86_64-unknown-linux-gnu/include/grass \
> >         -o OBJ.x86_64-unknown-linux-gnu/del2g.o -c del2g.c
> > In file included from del2g.c:23:
> > numerical.h:47: error: array type has incomplete element type
> 
> Odd.
> 
> Try removing the following lines from lib/gmath/numeric.h:
> 
> 	/* jacobi.c */
> 	#define MC 50
> 	extern char outputfile[50];
> 	extern char groupname[50], subgroup[50], signame[50];
...
> > What could be causing this?
> 
> The above error regarding line 47 of numerical.h. line 47 appears
> empty, but the jacobi.c section is the closest match,

Note that in the 6.0.0 source (inferred from the above gcc command) line 47
read as follows:

extern struct Command_keys Command_keys[];


This is the line Brad removed 3 weeks ago. The CVS commit comment is
"Remove unused Command_keys[] for GCC4 compatibility."

http://freegis.org/cgi-bin/viewcvs.cgi/grass6/lib/gmath/numerical.h.diff?r1=2.0&r2=2.1&diff_format=u

I postulate that the problem is already fixed?


Thomas wrote:
>>> In file included from del2g.c:23:
>>> numerical.h:47: error: array type has incomplete element type
..
> 6.1 snapshot...a few hours? Just updated.
..
> Same errors with 6.0 and 6.1....

Do you still see the error in numerical.h line 47 using the latest CVS??




Hamish




More information about the grass-user mailing list