[GRASS5] nviz / tcl compile problem

Markus Neteler neteler at itc.it
Wed Feb 13 05:32:01 EST 2002


On Wed, Feb 13, 2002 at 10:22:44AM +0000, M Lennert wrote:
> Hello,
> 
> I have trouble compiling nviz. Here's the message just before the compiler stops:
> 
> ****snip*****
>  -I/home/mlennert/SRC/grass/src/include -O3 -mcpu=pentium -Wall   -I/usr/X11R6/include -I/usr/include/tcl8.2 -I/usr/include/tcl8.2 -
> I/home/mlennert/SRC/grass/src/libes/ogsf  -D_NO_PROTO -D__STDC__   -I/usr/include/postgresql  -c togl.c -o OBJ.i586-pc-linux-gnu/togl.o
> In file included from togl.c:146:
> tkInt8.2.3.h:36: conflicting types for `Tk_PostscriptInfo'
> /usr/include/tcl8.2/tk.h:116: previous declaration of `Tk_PostscriptInfo'
> togl.c: In function `Togl_Cmd':
> togl.c:1088: warning: `main' is usually a function
> make[1]: *** [OBJ.i586-pc-linux-gnu/togl.o] Error 1
> make[1]: Leaving directory `/home/mlennert/SRC/grass/src.contrib/GMSL/NVIZ2.2/src'
> make: *** [nvwish] Error 2
> *****snip*****
> 
> It sounds like a problem linked to the tcl versions (as you can see I have 8.2)

Hi,

a few days ago I have added
src.contrib/GMSL/NVIZ2.2/src/tkInt8.2.3.h etc.
to the source code:

2002-02-06 15:43  markus
 
        * tkInt8.1.1.h, tkInt8.2.3.h, tkIntDecls8.1.1.h, tkIntDecls8.2.3.h,
        tkInt8.1.1.h, tkInt8.2.3.h, tkIntDecls8.1.1.h, tkIntDecls8.2.3.h:
        added tkIntDecls8.2.3.h tkIntDecls8.1.1.h to fix Irix compile
        problem

obviously it's less easy. This include stuff of Tcl/TK is really
a mess in general. Do we have to conditionalize the function in
tkInt8.2.3.h?

Moritz: try to comment line 36 in tkInt8.2.3.h.

Markus



More information about the grass-dev mailing list