[GRASSLIST:405] Re: 5.0.2 & snpsh20030614 Compilation errors

Soil & Water Lab. swlab at cornell.edu
Mon Jun 16 21:04:51 EDT 2003


> - I tried the 5.0 CVS version of NVIZ the other day and legends etc don't
> seem to be working in there yet. In the past I've used the Gimp to paste
> in labels and a legend from the normal grass monitor if that helps.

Well, too bad, guess we'll have to wait, then.

> - it is helpful to know what platform/distribution  running for
> broken compiles.

Oops, my bad. So, SuSE 7.1 on a i386. Seems that I had a problem of 
consistency with my "glibc", once fixed it solved the "d.labels" problem I 
had (bad refernce to atexit). I've been able to install tcl/tk 8.3 in a 
different directory than 8.4, and NVIZ eventually compiled without pb, when 
pointed to 8.3. I'll have to keep that in my mind.

So, now I just have two compilation errors (still with 
grass50_exp_2003_06_14):

*****
g3d failed to compile with the "./configure:make:make install" dance. Another 
try with gmake5 in src.contrib/GMSL/g3d gives me this:

make[3]: Entering directory 
`/opt/src/grass5/grass50_exp_2003_06_14/src.contrib/GMSL/g3d/src3d/raster/r3.showdspf.openGL'
gcc -I/opt/src/grass5/grass50_exp_2003_06_14/src/include -g -O2   
-I/opt/src/grass5/grass50_exp_2003_06_14/src/libes/dspf 
-I/opt/src/grass5/grass50_exp_2003_06_14/src/libes/ogsf   
-I/usr/X11R6/include   -c new_init_graphics.c -o 
OBJ.i686-pc-linux-gnu/new_init_graphics.o
new_init_graphics.c:16: Xm/Xm.h: No such file or directory
new_init_graphics.c:17: Xm/Form.h: No such file or directory
In file included from /usr/X11R6/include/GL/GLwMDrawA.h:47,
                 from new_init_graphics.c:19:
/usr/X11R6/include/GL/GLwDrawA.h:49: Xm/Xm.h: No such file or directory
In file included from /usr/X11R6/include/GL/GLwMDrawA.h:47,
                 from new_init_graphics.c:19:
/usr/X11R6/include/GL/GLwDrawA.h:165: #error "Sorry, unknown Motif version."
new_init_graphics.c:407: Xm/PushB.h: No such file or directory
new_init_graphics.c:408: Xm/RowColumn.h: No such file or directory
new_init_graphics.c:409: Xm/Label.h: No such file or directory
new_init_graphics.c:410: Xm/ToggleB.h: No such file or directory
new_init_graphics.c:411: Xm/Frame.h: No such file or directory
new_init_graphics.c:412: Xm/SeparatoG.h: No such file or directory
make[3]: *** [OBJ.i686-pc-linux-gnu/new_init_graphics.o] Error 1
make[3]: Leaving directory 
`/opt/src/grass5/grass50_exp_2003_06_14/src.contrib/GMSL/g3d/src3d/raster/r3.showdspf.openGL'
make[2]: *** [all] Error 2
make[2]: Leaving directory 
`/opt/src/grass5/grass50_exp_2003_06_14/src.contrib/GMSL/g3d/src3d/raster'
make[1]: *** [all] Error 1
make[1]: Leaving directory 
`/opt/src/grass5/grass50_exp_2003_06_14/src.contrib/GMSL/g3d/src3d'
make: *** [all] Error 2

[FYI, the config is:
  C compiler:                gcc -g -O2 
  C++ compiler:               
  FORTRAN compiler:          g77
  X11 support:                yes
  DBM support:                no
  GD support:                 yes
  OpenGL(R) support:          yes
  SGI IRIS GL support:        no
  Motif support:              no
  FreeType support:           yes
  GLw support:                no
  NLS support:                no
  Readline support:           no
  C++ support:                no
  External PROJ.4 support:    no]

*******

d.text.freetype also fails to compile. A gmake5 gives this :

################################################################
/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:

And some other errors (pretty much the same) in the following command.

main.c:815: parse error before `library'
main.c: In function `set_font':
main.c: In function `get_dimension':
main.c: In function `get_ll_coordinates':
main.c: In function `set_matrix':
main.c: In function `draw_character':
main.c: In function `draw_text':
make: *** [OBJ.i686-pc-linux-gnu/main.o] Error 1

*************

Sorry for this huge message.
Any suggestion welcomed.
Thanks for all

P.





More information about the grass-user mailing list