[GRASS5] Misc. Module Errors

On Tuesday, December 5, 2000, at 11:20 PM, Eric G . Miller wrote:

> #################################################################
> v.in.shape reported an error that it could not access malloc.h, so
> after copying malloc.h from
> "/System/Library/Frameworks/System.framework/Versions/B/Headers/bsd/sys/"
> to "src/include/" it only gets one error:

malloc.h should be part of the Standard C lib. I'm thinking there must
be a problem somewhere between the C preprocessor, and the compilation
phase. Based on your other error reports, it would seem various macros
in included header files may not be getting expanded correctly, and
hence generating errors. All the 'illegal expression, found }' lead me
to believe that some kind of expansion is happening in the preprocessor
that is generating illegal code for the compiler. Also, could be this
thing with the switch construct (see below).

>
> /usr/src/grass/src/mapdev/v.in.shape make -f
> OBJ.powerpc-apple-darwin1.2/make.rules cc -g -O2
> -I/usr/src/grass/src/include -c shp2dig.c -o
> OBJ.powerpc-apple-darwin1.2/shp2dig.o shp2dig.c:807: illegal
> expression, found `}' make: ***
> [OBJ.powerpc-apple-darwin1.2/shp2dig.o] Error 1
>
> #################################################################

Greetings all,

Well I do not now if what I did will cause some problems, but I got v.in.shape to compile by adding a 1 at the switch end:

<shp2dig.c line 807> end:
<shp2dig.c line 808> 1; (I added this line)

And it compiles, it looks like the same problem as I had before with the empty switch.

Yours,

Jeshua Lacock
Cartographer/Owner
http://SierraMaps.com
http://3dTopoMaps.com
Telephone: (760) 935-4481
----------------------------------------
If you want to unsubscribe from GRASS Development Team mailing list write to:
minordomo@geog.uni-hannover.de with
subject 'unsubscribe grass5'