[GRASSLIST:402] 5.0.2 & snpsh20030614 Compilation errors
Soil & Water Lab.
swlab at cornell.edu
Mon Jun 16 10:35:46 EDT 2003
Hello,
I'm trying to compile the 5.0.2 version (finally...), along with the CVS
version (snapshot 2003_06_14).
The "src.contrib/GMSL/g3d" module compiles without problem in v5.0.2 , but the
snaphsot version gives me this:
make[1]: Entering directory
`/opt/src/grass5/grass50_exp_2003_06_14/src.contrib/GMSL/NVIZ2.2/src'
gcc -I/opt/src/grass5/grass50_exp_2003_06_14/src/include -g -O2
-I/usr/X11R6/include
-I/opt/src/grass5/grass50_exp_2003_06_14/src/libes/ogsf -D_NO_PROTO
-D__STDC__ -c nvizAppInit.c -o OBJ.i686-pc-linux-gnu/nvizAppInit.o
In file included from nvizAppInit.c:9:
interface.h:259: conflicting types for `Tk_SetAppName'
/usr/local/include/tkDecls.h:568: previous declaration of `Tk_SetAppName'
make[1]: *** [OBJ.i686-pc-linux-gnu/nvizAppInit.o] Error 1
make[1]: Leaving directory
`/opt/src/grass5/grass50_exp_2003_06_14/src.contrib/GMSL/NVIZ2.2/src'
make: *** [nvwish] Error 2
************************************************************************
Both v5.0.2. and snapshot fail to compile NVIZ2.2, and they both give me the
same error (FYI, I run tcltk8.4):
make[1]: Entering directory
`/opt/src/grass5/grass50_exp_2003_06_14/src.contrib/GMSL/NVIZ2.2/src'
gcc -I/opt/src/grass5/grass50_exp_2003_06_14/src/include -g -O2
-I/usr/X11R6/include
-I/opt/src/grass5/grass50_exp_2003_06_14/src/libes/ogsf -D_NO_PROTO
-D__STDC__ -c nvizAppInit.c -o OBJ.i686-pc-linux-gnu/nvizAppInit.o
In file included from nvizAppInit.c:9:
interface.h:259: conflicting types for `Tk_SetAppName'
/usr/local/include/tkDecls.h:568: previous declaration of `Tk_SetAppName'
make[1]: *** [OBJ.i686-pc-linux-gnu/nvizAppInit.o] Error 1
make[1]: Leaving directory
`/opt/src/grass5/grass50_exp_2003_06_14/src.contrib/GMSL/NVIZ2.2/src'
make: *** [nvwish] Error 2
************************************************************************
d.text.freetype also fails to compile (on both version):
#################################################################
/opt/src/grass5/grass50_exp_2003_06_14/src/display/d.text.freetype
make -f OBJ.i686-pc-linux-gnu/make.rules
gcc -I/opt/src/grass5/grass50_exp_2003_06_14/src/include -g -O2
-I/usr/local/include/freetype2/freetype -c main.c -o
OBJ.i686-pc-linux-gnu/main.o
main.c:75: parse error before `library'
main.c:76: parse error before `face'
main.c:78: parse error before `face'
main.c:80: parse error before `*'
main.c:81: parse error before `FT_Face'
main.c:83: parse error before `FT_Face'
main.c: In function `main':
main.c:118: `FT_Library' undeclared (first use in this function)
main.c:118: (Each undeclared identifier is reported only once
main.c:118: for each function it appears in.)
main.c:118: parse error before `library'
main.c:119: `FT_Face' undeclared (first use in this function)
main.c:120: `FT_Vector' undeclared (first use in this function)
main.c:299: `face' undeclared (first use in this function)
main.c:299: `library' undeclared (first use in this function)
main.c:346: `pen' undeclared (first use in this function)
main.c: In function `convert_text':
main.c:726: warning: passing arg 2 of `iconv' from incompatible pointer type
main.c: At top level:
main.c:815: parse error before `library'
main.c: In function `set_font':
main.c:817: `face' undeclared (first use in this function)
main.c:819: `library' undeclared (first use in this function)
main.c:819: `path' undeclared (first use in this function)
main.c: At top level:
main.c:826: parse error before `face'
main.c: In function `get_dimension':
main.c:829: `FT_Matrix' undeclared (first use in this function)
main.c:829: parse error before `matrix'
main.c:830: `FT_Vector' undeclared (first use in this function)
main.c:832: `matrix' undeclared (first use in this function)
main.c:834: `pen' undeclared (first use in this function)
main.c:837: `l' undeclared (first use in this function)
main.c:839: `out' undeclared (first use in this function)
main.c:841: `face' undeclared (first use in this function)
main.c:845: `FT_LOAD_DEFAULT' undeclared (first use in this function)
main.c:847: `ft_render_mode_mono' undeclared (first use in this function)
main.c:878: `dim' undeclared (first use in this function)
main.c: At top level:
main.c:885: parse error before `face'
main.c: In function `get_ll_coordinates':
main.c:888: `FT_Vector' undeclared (first use in this function)
main.c:888: parse error before `dim'
main.c:890: `align' undeclared (first use in this function)
main.c:892: `face' undeclared (first use in this function)
main.c:892: `out' undeclared (first use in this function)
main.c:892: `l' undeclared (first use in this function)
main.c:892: `dim' undeclared (first use in this function)
main.c:899: `pen' undeclared (first use in this function)
main.c:899: `rotation' undeclared (first use in this function)
main.c:897: warning: unreachable code at beginning of switch statement
main.c:911: warning: unreachable code at beginning of switch statement
main.c: At top level:
main.c:930: parse error before `*'
main.c: In function `set_matrix':
main.c:932: `matrix' undeclared (first use in this function)
main.c:932: `FT_Fixed' undeclared (first use in this function)
main.c:932: `rotation' undeclared (first use in this function)
main.c: At top level:
main.c:941: parse error before `FT_Face'
main.c: In function `draw_character':
main.c:948: `face' undeclared (first use in this function)
main.c:948: `matrix' undeclared (first use in this function)
main.c:948: `pen' undeclared (first use in this function)
main.c:950: `ch' undeclared (first use in this function)
main.c:952: `FT_LOAD_DEFAULT' undeclared (first use in this function)
main.c:954: `ft_render_mode_mono' undeclared (first use in this function)
main.c:966: `win' undeclared (first use in this function)
main.c:979: `color' undeclared (first use in this function)
main.c: At top level:
main.c:1019: parse error before `FT_Face'
main.c: In function `draw_text':
main.c:1023: `FT_Matrix' undeclared (first use in this function)
main.c:1023: parse error before `matrix'
main.c:1025: `matrix' undeclared (first use in this function)
main.c:1025: `rotation' undeclared (first use in this function)
main.c:1027: `l' undeclared (first use in this function)
main.c:1029: `out' undeclared (first use in this function)
main.c:1030: `win' undeclared (first use in this function)
main.c:1030: `face' undeclared (first use in this function)
main.c:1030: `pen' undeclared (first use in this function)
main.c:1030: `color' undeclared (first use in this function)
make: *** [OBJ.i686-pc-linux-gnu/main.o] Error 1
************************************************************************
And at last, d.labels
/opt/src/grass5/grass50_exp_2003_06_14/src/display/d.labels
make -f OBJ.i686-pc-linux-gnu/make.rules
gcc -L/opt/src/grass5/grass50_exp_2003_06_14/src/libes/LIB.i686-pc-linux-gnu
-o
/opt/src/grass5/grass50_exp_2003_06_14/dist.i686-pc-linux-gnu/etc/bin/inter/d.labels
OBJ.i686-pc-linux-gnu/main.o OBJ.i686-pc-linux-gnu/get_loc.o
OBJ.i686-pc-linux-gnu/opencell.o OBJ.i686-pc-linux-gnu/display.o
OBJ.i686-pc-linux-gnu/in_window.o OBJ.i686-pc-linux-gnu/check_resp.o
OBJ.i686-pc-linux-gnu/show.o OBJ.i686-pc-linux-gnu/where.o
OBJ.i686-pc-linux-gnu/modify.o OBJ.i686-pc-linux-gnu/output.o
OBJ.i686-pc-linux-gnu/gather.o OBJ.i686-pc-linux-gnu/proc_new.o
OBJ.i686-pc-linux-gnu/proc_old.o OBJ.i686-pc-linux-gnu/setup.o
OBJ.i686-pc-linux-gnu/show_a_label.o OBJ.i686-pc-linux-gnu/do_label.o
OBJ.i686-pc-linux-gnu/update.o -lvask -ldisplay -lraster -lgis -lncurses
-lbsd-compat -lm -lz
OBJ.i686-pc-linux-gnu/main.o: In function `main':
/opt/src/grass5/grass50_exp_2003_06_14/src/display/d.labels/main.c:29:
undefined reference to `atexit'
collect2: ld returned 1 exit status
make: ***
[/opt/src/grass5/grass50_exp_2003_06_14/dist.i686-pc-linux-gnu/etc/bin/inter/d.labels]
Error 1
************************************************************************
Any ideas/comments welcomed,
Thanks in advance
--
------------------------------
Soil and Water Laboratory
Biological and Environmental Engineering Department
Cornell University
Riley-Robb Hall
ITHACA, NY 14853 - USA
More information about the grass-user
mailing list