[GRASSLIST:2077] Re: tk8.5 troubles with CVS build

Markus Neteler neteler at itc.it
Wed Dec 17 12:21:44 EST 2003


On Tue, Dec 16, 2003 at 03:26:26PM -0500, Christopher Fonnesbeck wrote:
> Has anyone tried using tk8.5 when building 5.7? I get the following  
> build error:
> 
> gcc -I/usr/local/src/grass57_exp_2003_11_22/include  
> -I/usr/local/src/grass57_exp_2003_11_22/dist.powerpc-apple-darwin7.0.0/ 
> include -I/usr/X11R6/include -I/usr/local/include -I/sw/include  
> -faltivec -lcc_dynamic -framework vecLib  -Wall -Wconversion  
> -Wno-implicit-int  -I/usr/X11R6/include -I/usr/local/include  
> -I/sw/include     -I/usr/local/src/grass57_exp_2003_11_22/include  
> -I/usr/local/src/grass57_exp_2003_11_22/dist.powerpc-apple-darwin7.0.0/ 
> include -D_NO_PROTO -D__STDC__ -I/usr/local/include    
> -I/usr/local/include -DUSE_GDAL_H    
> -I/usr/local/src/grass57_exp_2003_11_22/include  
> -I/usr/local/src/grass57_exp_2003_11_22/dist.powerpc-apple-darwin7.0.0/ 
> include \
>          -o OBJ.powerpc-apple-darwin7.0.0/nvizAppInit.o -c nvizAppInit.c
> <command line>:9:1: warning: "__STDC__" redefined
> In file included from nvizAppInit.c:9:
> interface.h:266: error: conflicting types for `Tk_SetAppName'
> /usr/local/include/tkDecls.h:573: error: previous declaration of  
> `Tk_SetAppName'
> nvizAppInit.c:43: warning: `RunScripts' defined but not used
> make[3]: *** [OBJ.powerpc-apple-darwin7.0.0/nvizAppInit.o] Error 1
> make[2]: *** [nvwish] Error 2
> make[1]: *** [subdirs] Error 1
> make: *** [default] Error 1

Should be easy to fix. In interface.h (visualization/nviz/src/):

#if TK_MAJOR_VERSION==8 && TK_MINOR_VERSION==4

try to change to
#if TK_MAJOR_VERSION==8 && TK_MINOR_VERSION>=4

Please report if it works.

Markus

-- 
Markus Neteler     <neteler at itc.it>       http://mpa.itc.it
ITC-irst -  Centro per la Ricerca Scientifica e Tecnologica
MPBA - Predictive Models for Biol. & Environ. Data Analysis
Via Sommarive, 18        -       38050 Povo (Trento), Italy




More information about the grass-user mailing list