[GRASSLIST:3963] Re: GRASS 5.0.3 (linux) and r.cva, problems in
compiling r.cva module
Paul Kelly
paul-grass at stjohnspoint.co.uk
Mon Jul 19 15:36:24 EDT 2004
On Mon, 19 Jul 2004, Lars Forseth wrote:
> Hello!
>
> I've tried to compile Mark Lake's r.cva module for line of sight and viewshed
> analysis. After having edited "$GISSRC/src/CMD/head.i686-pc-linux-gnu" to
> reflect my bin dir for grass I managed to start compiling of the module.
> Under you find the result, i.e the error message (for it failed).
>
> What is the problem?
>
> regards
> larsf
>
> output of gmake5
> --------------------------------------------------------------------------------------------------------
> yoda:/usr/local/grass-5.0.3/src.contrib/MWL/r.cva/cmd # /usr/local/bin/gmake5
> SRC = /usr/local/grass-5.0.3/src
> CMD = /usr/local/grass-5.0.3/src/CMD
> UNUSED = /usr/local/grass-5.0.3/unused
> HEADER = head.i686-pc-linux-gnu
> ARCH = i686-pc-linux-gnu
> GISBASE = /usr/local/grass5
> VERSION = 5.0.3 October 2003
> #################################################################
> /usr/local/grass-5.0.3/src.contrib/MWL/r.cva/cmd
> make -f OBJ.i686-pc-linux-gnu/make.rules
>
> gcc -I/usr/local/grass-5.0.3/src/include -g -O2 -c make_point3.c -o
> OBJ.i686-pc-linux-gnu/make_point3.o
> make_point3.c: In function `make_point':
> make_point3.c:66: error: conflicting types for `G_malloc'
> /usr/local/grass-5.0.3/src/include/gisdefs.h:43: error: previous declaration
> of `G_malloc'
> make_point3.c:66: warning: extern declaration of `G_malloc' doesn't match
> global one
Probably there is a (wrong) local prototype for G_malloc() at line 66 in
make_point3.c, that you should delete.
More information about the grass-user
mailing list