[GRASS5] Bugreport GRASS 5

Andreas Lange Andreas.Lange at Rhein-Main.de
Tue Jul 18 18:59:02 EDT 2000


giovanni.colatosti at sgi.com wrote:
..
> first step: src/libes/segment
> 
> GISGEN: src/libes/segment - Tue Jul 18 15:53:14 CEST 2000
> 
> #################################################################
> /giovanni1/grass5.0beta/src/libes/segment
>   make -f OBJ.mips-sgi-irix6.5/make.rules
> 
>         rm -f OBJ.mips-sgi-irix6.5/get_row.o
>         cc -g   -I/giovanni1/grass5.0beta/src/include  -c get_row.c
> cc-3316 cc: ERROR File = get_row.c, Line = 29
>   The expression must be a pointer to a complete object type.
> 
>         buf += size;
>         ^
> 
> 1 error detected in the compilation of "get_row.c".
> *** Error code 2 (bu21)
> GISGEN failure at STEP: src/libes/segment
> 

hi,

this problems stems from the fact that buf is defined as a void pointer.
But IMHO pointer arithmetics with void pointers is not allowed.
Different compilers behave differently on this, GNU GCC obviously does
not recognizes this error. 

This was introduced by the bug fix from Pierre de Mouveaux, but i have
no fix as i am not familiar with the source.

cu,

Andreas


-- 
Andreas Lange, 65187 Wiesbaden, Germany, Tel. +49 611 807850
Andreas.Lange at Rhein-Main.de - A.C.Lange at GMX.net


---------------------------------------- 
If you want to unsubscribe from GRASS Development Team mailing list write to:
minordomo at geog.uni-hannover.de with
subject 'unsubscribe grass5'



More information about the grass-dev mailing list