[GRASS5] [bug #2009] (grass) Compilation problems (NVIZ)

Glynn Clements glynn.clements at virgin.net
Tue Jul 8 20:05:05 EDT 2003


Request Tracker wrote:

> Subject: Compilation problems (NVIZ)

> GRASS Version: 5.0.2
> 
> When compiling the part that compiles NVIZ returns the following error:
> 
> /grass5.0.2/src/CMD/gmake5.0 /grass5.0.2/src.contrib/GMSL/NVIZ2.2/src
> #################################################################
> /grass5.0.2/src.contrib/GMSL/NVIZ2.2/src
>   make -f OBJ.powerpc-apple-darwin6.6/make.rules 
> 
> gcc -I/grass5.0.2/src/include -g -O2 -D__unix  -I/usr/X11R6/include -I/usr/local/include/ -I/
> usr/local/include/ -I/grass5.0.2/src/libes/ogsf  -D_NO_PROTO -D__STDC__   -I/usr/local/
> pgsql/include/  -c nvizAppInit.c -o OBJ.powerpc-apple-darwin6.6/nvizAppInit.o
> In file included from nvizAppInit.c:9:
> interface.h:257: conflicting types for `Tk_SetAppName'
> /usr/local/include//tkDecls.h:573: previous declaration of `Tk_SetAppName'

> The version of Tcl/Tk I use is 8.4.1, from fink (http://fink.sourceforge.net).

This is a known problem; 5.0.2 doesn't work with Tcl/Tk 8.4.x. The fix
is:

--- src.contrib/GMSL/NVIZ2.2/src/interface.h	2000/02/06 15:00:41	1.2
+++ src.contrib/GMSL/NVIZ2.2/src/interface.h	2002/10/11 12:43:35	1.3
@@ -254,7 +254,11 @@
 /* tkBind.c */
 int TkCopyAndGlobalEval(Tcl_Interp *, char *);
 /* tkSend.c */
-char *Tk_SetAppName(Tk_Window, char *);
+#if TK_MAJOR_VERSION==8 && TK_MINOR_VERSION==4
+    CONST char *Tk_SetAppName(Tk_Window, CONST char *);
+#else
+    char *Tk_SetAppName(Tk_Window, char *);
+#endif
 int Tk_SendCmd(ClientData, Tcl_Interp *, int, char **);
 int TkGetInterpNames(Tcl_Interp *, Tk_Window);
 /* tkSend_old.c */

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




More information about the grass-dev mailing list