[GRASSLIST:2630] problems compiling nviz 2.2

hi everyone,

i have tried searching the archives, but have not been able to figure out
what is causing this error when compiling NVIZ 2.2 (from the GRASS 5.0.3
src)

here is what happens:
in the NVIS dir:
$>gmake5
...
lots of compiling stuff
...
about 50 lines of:
init_commands.c:309: warning: passing arg 3 of `Tcl_CreateCommand' from
incompatible pointer type
...
In file included from togl.c:65:
tkInt8.0.2.h:35: conflicting types for `Tk_PostscriptInfo'
/usr/include/tk.h:109: previous declaration of `Tk_PostscriptInfo'
make[1]: *** [OBJ.i686-pc-linux-gnu/togl.o] Error 1
make[1]: Leaving directory
`/home/dylan/src/grass-5.0.3/src.contrib/GMSL/NVIZ2.2/src'
make: *** [nvwish] Error 2

... does anyone know why this is happening? i have Tcl 8.0 and Tk 8.0 header
files installed, and was able to create a working GRASS5 binary, with Tcl/Tk
front end...

NOTE, i am trying to compile the module from a clean source tree (i.e. i did
a 'make clean' before trying this.)

thanks in advance,

Dylan

dylan wrote:

i have tried searching the archives, but have not been able to figure out
what is causing this error when compiling NVIZ 2.2 (from the GRASS 5.0.3
src)

here is what happens:
in the NVIS dir:
$>gmake5
...
lots of compiling stuff
...
about 50 lines of:
init_commands.c:309: warning: passing arg 3 of `Tcl_CreateCommand' from
incompatible pointer type
...
In file included from togl.c:65:
tkInt8.0.2.h:35: conflicting types for `Tk_PostscriptInfo'
/usr/include/tk.h:109: previous declaration of `Tk_PostscriptInfo'
make[1]: *** [OBJ.i686-pc-linux-gnu/togl.o] Error 1
make[1]: Leaving directory
`/home/dylan/src/grass-5.0.3/src.contrib/GMSL/NVIZ2.2/src'
make: *** [nvwish] Error 2

The corresponding line has been commented out in tkInt8.0.h; I suggest
doing likewise for tkInt8.0.2.h.

--
Glynn Clements <glynn.clements@virgin.net>