[GRASS5] nviz / tcl compile problem

M Lennert fa1079 at qmul.ac.uk
Wed Feb 13 05:42:55 EST 2002


On 13 Feb 02, at 11:32, Markus Neteler wrote:

> 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
>

As far as I could tell this change is already in the Feb 8 snapshot, so that did not solve the 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?

As a sidenote to that: the configure script for grass51 finds my tcl includes without a problem, but for grass5 I have to give the location (/usr/include/tcl8.2) explicitly.

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

I'll try that tonight.


Moritz



More information about the grass-dev mailing list