[GRASSLIST:3960] GRASS 5.0.3 (linux) and r.cva, problems in compiling r.cva module

Lars Forseth larsf at powertech.no
Mon Jul 19 12:50:58 EDT 2004


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
make: *** [OBJ.i686-pc-linux-gnu/make_point3.o] Error 1
-----------------------------------------------------------------------------------------------------------------
end of output
 
-----------------------------------------------
Lars Forseth
Nord-Trøndelag Fylkeskommune
------------------------------------------------




More information about the grass-user mailing list