[GRASSLIST:9708] Error in r.cva compilation

Hi list!

Recently I was trying to perform a viewshed analysis of the mountains around my
home. If I remember right for this kind of task r.cva is prefered over r.los.
However when trying to build the module (gmake55) the following error appears
(stderror output).

make_point3.c: In function 'make_point':
make_point3.c:66: error: conflicting types for 'G_malloc'
/home/src/CVSROOT/grassrepository/grass/src/include/gisdefs.h:43: error:
previous declaration of 'G_malloc' was here
make[1]: *** [OBJ.i686-pc-linux-gnu/make_point3.o] Error 1
make: *** [all] Error 1

I have Fedora Core 4 and the last cvs tarball.

Is there any easy way to make it work?

Thanks in advance,
Miha Staut

___________________________________________________________
To help you stay safe and secure online, we've developed the all new Yahoo! Security Centre. http://uk.security.yahoo.com

Dear Miha,

Recently I was trying to perform a viewshed analysis of the mountains around my
home. If I remember right for this kind of task r.cva is prefered over r.los.
However when trying to build the module (gmake55) the following error appears
(stderror output).

Can you tell me where you got the r.cva code? Was it my website (http://www.ucl.ac.uk/~tcrnmar/index.html), or from Benjamin Ducke (http://www.uni-kiel.de/ufg/ufg_BerDucke.htm)?

Also, which version of GRASS are you running?

Mark

--
Dr Mark Lake

Institute of Archaeology
University College London
31-34 Gordon Square
London. WC1H 0PY

Tel: +44 (0)207 679 7495
Fax: +44 (0)207 383 2572

--- Mark Lake <mark.lake@ucl.ac.uk> wrote:

Dear Miha,
>
> Recently I was trying to perform a viewshed analysis of the
> mountains around my
> home. If I remember right for this kind of task r.cva is prefered
> over r.los.
> However when trying to build the module (gmake55) the following
> error appears
> (stderror output).

Can you tell me where you got the r.cva code? Was it my website
(http://www.ucl.ac.uk/~tcrnmar/index.html), or from Benjamin Ducke
(http://www.uni-kiel.de/ufg/ufg_BerDucke.htm)?

Also, which version of GRASS are you running?

Mark

Dear Mark!

Thanks for replying. I got the code from the following web site
http://www.ucl.ac.uk/~tcrnmar/. I just followed the links from the GRASS
add-ons web site. And I have got GRASS 5.5 from the grass cvs tree (tarball)
dowloaded yesterday. However also a month old version gave me the same error. I
run Fedora Core 4 on a PC.

All best,
Miha Staut

___________________________________________________________
To help you stay safe and secure online, we've developed the all new Yahoo! Security Centre. http://uk.security.yahoo.com

You should get Benjamin Ducke's GRASS Extension manager
<http://www.uni-kiel.de/ufg/ufg_BerDucke.htm&gt;,
with cva and more (and Dempster Shafer Theory predictive modeling).

Michael
__________________________________________
Michael Barton, Professor of Anthropology
School of Human Evolution and Social Change
Arizona State University
Tempe, AZ 85287-2402

phone: 480-965-6213
fax: 480-965-7671
www: http://www.public.asu.edu/~cmbarton

From: Miha Staut <mihastaut@yahoo.co.uk>
Date: Wed, 4 Jan 2006 09:00:35 +0000 (GMT)
To: <grasslist@baylor.edu>
Subject: [GRASSLIST:9708] Error in r.cva compilation

Hi list!

Recently I was trying to perform a viewshed analysis of the mountains around
my
home. If I remember right for this kind of task r.cva is prefered over r.los.
However when trying to build the module (gmake55) the following error appears
(stderror output).

make_point3.c: In function 'make_point':
make_point3.c:66: error: conflicting types for 'G_malloc'
/home/src/CVSROOT/grassrepository/grass/src/include/gisdefs.h:43: error:
previous declaration of 'G_malloc' was here
make[1]: *** [OBJ.i686-pc-linux-gnu/make_point3.o] Error 1
make: *** [all] Error 1

I have Fedora Core 4 and the last cvs tarball.

Is there any easy way to make it work?

Thanks in advance,
Miha Staut

___________________________________________________________
To help you stay safe and secure online, we've developed the all new Yahoo!
Security Centre. http://uk.security.yahoo.com