GRASS 5.0beta2

David Wheatley D.W.Wheatley at soton.ac.uk
Tue Jul 27 11:50:26 EDT 1999


Hi,

I'm trying to compile the new Grass5 beta2 on SGI Octane (R10000) using the
supplied MIPS C compiler. I'm getting a few errors, but the most significant
seems to be a problem with casting. It means that the display device library and
r.mapcalc (among others) won't compile. Nobody else has reported this, so the
sun and gcc compilers must think it's OK, I guess.

Anybody have any ideas (apart from 'use gcc' ...)

> src/display/devices/lib
> 
> cc -O2 -I/usr/local/grass5.0beta/src/include  -c SWITCHER.c
> "SWITCHER.c", line 900: error(1133): expression must be a modifiable lvalue
>               if ((stat=get1(((char* )buf)++)) != 0)
>                              ^

I get a similar complaint about src/paint/Interface:

> src/paint/Interface/driverlib
> cc -O2 all -I.. -DPAINT_DRIVERLIB -I/home/grass5.0beta/src/include  -c interface.c
> "interface.c", line 375: error(1133): expression must be a modifiable lvalue
>         (char *)buf += i;
>         ^

and r.mapcalc:

> src/raster/r.mapcalc/mapcalc
> cc -O2 -woff all  -I/home/grass5.0beta/src/include  -c maps.c
> "maps.c", line 336: error(1133): expression must be a modifiable lvalue
>                   (char *)values = vbuf, sizeof(vbuf));
>                   ^

========================
Dave Wheatley
Department of Archaeology
University of Southampton
dww at soton.ac.uk



More information about the grass-user mailing list