[GRASSLIST:8964] Re: compilation of individual module

Ed Davison bfdi533 at cbacc-security3.mccombs.utexas.edu
Wed Nov 9 16:21:59 EST 2005


I have grass 6.0.1 src installed and am trying to compile an individual
module.  I have copied the Makefile line  Makefile from v.in.ascii and
changed the PGM line to the name of the module that I creating.  When I
try to compile it I get lots of make errors.  The was the same set of
errors that I got under the 6.0.0 src tree so it must be something
particular to my build environment.  

Does anyone have any ideas on why these include statements would not be
being processed properly?

gcc -I/home/bfdi533/gis/devel/grass-6.0.1/include
-I/home/bfdi533/gis/devel/grass-6.0.1/dist.i686-pc-linux-gnu/include/grass  -g -O2  -Wall -Wconversion -Wno-implicit-int   -I/usr/include/gdal     -DPACKAGE=\""grassmods"\"  -I/home/bfdi533/gis/devel/grass-6.0.1/include -I/home/bfdi533/gis/devel/grass-6.0.1/dist.i686-pc-linux-gnu/include/grass \
        -o OBJ.i686-pc-linux-gnu/main.o -c main.c
In file included
from /home/bfdi533/gis/devel/grass-6.0.1/include/vect/digit.h:3,

from /home/bfdi533/gis/devel/grass-6.0.1/include/Vect.h:4,
                 from main.c:27:
/home/bfdi533/gis/devel/grass-6.0.1/include/vect/dig_structs.h:15:17:
dgl.h: No such file or directory
/home/bfdi533/gis/devel/grass-6.0.1/include/vect/dig_structs.h:16:22:
shapefil.h: No such file or directory
/home/bfdi533/gis/devel/grass-6.0.1/include/vect/dig_structs.h:18:19:
rtree.h: No such file or directory
In file included
from /home/bfdi533/gis/devel/grass-6.0.1/include/vect/digit.h:3,

from /home/bfdi533/gis/devel/grass-6.0.1/include/Vect.h:4,
                 from main.c:27:
/home/bfdi533/gis/devel/grass-6.0.1/include/vect/dig_structs.h:357:
error: syntax error before "dglGraph_s"
/home/bfdi533/gis/devel/grass-6.0.1/include/vect/dig_structs.h:357:
warning: no semicolon at end of struct or union
/home/bfdi533/gis/devel/grass-6.0.1/include/vect/dig_structs.h:358:
warning: data definition has no type or storage class
/home/bfdi533/gis/devel/grass-6.0.1/include/vect/dig_structs.h:411:
error: syntax error before '}' token
/home/bfdi533/gis/devel/grass-6.0.1/include/vect/dig_structs.h:532:
error: syntax error before "GRAPH"
/home/bfdi533/gis/devel/grass-6.0.1/include/vect/dig_structs.h:532:
warning: data definition has no type or storage class
In file included from main.c:27:
/home/bfdi533/gis/devel/grass-6.0.1/include/Vect.h:278: error: syntax
error before '*' token
/home/bfdi533/gis/devel/grass-6.0.1/include/Vect.h:279: error: syntax
error before '*' token
/home/bfdi533/gis/devel/grass-6.0.1/include/Vect.h:280: error: syntax
error before '*' token
/home/bfdi533/gis/devel/grass-6.0.1/include/Vect.h:281: error: syntax
error before '*' token
/home/bfdi533/gis/devel/grass-6.0.1/include/Vect.h:282: error: syntax
error before '*' token
main.c: In function `main':
main.c:54: error: storage size of `VectMap' isn't known
main.c:463: warning: passing arg 3 of `Vect_cat_set' makes integer from
pointer without a cast
main.c:475: warning: passing arg 3 of `Vect_cat_set' makes integer from
pointer without a cast
main.c:487: warning: implicit declaration of function
`Vect_copy_xy_to_pnts'
main.c:54: warning: unused variable `VectMap'
make: *** [OBJ.i686-pc-linux-gnu/main.o] Error 1



-- 

--------------------------
Ed Davison
Sr. Systems Analyst
McCombs School of Business
512-232-6620 voice




More information about the grass-user mailing list