[GRASSLIST:3071] Re: Compiling 5.3 (2004/03/27) on a ix86/Suse8.2 - part IIIb

Markus Neteler neteler at itc.it
Wed Mar 31 02:54:25 EST 2004


On Tue, Mar 30, 2004 at 03:45:35PM +0100, Glynn Clements wrote:
> 
> SWlab wrote:
> 
> > > I searched for
> > > /usr/include/unctrl.h:57: parse error before "unctrl"
> > > on google and found quite a few references, several of which suggest
> > > that the solution may be to delete or rename the file
> > > /usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.2.2/include/curses.h
> > 
> > Thanks a lot !
> > Renaming .../curses.h as dummy did the trick. The compilation went without 
> > further problems, apart from a NVIZ2. problem. Seems that I have to check the 
> > configuration of this box...
> 
> > In file included from nvizAppInit.c:9:
> > interface.h:264: conflicting types for `Tk_SetAppName'
> > /usr/local/include/tkDecls.h:568: previous declaration of `Tk_SetAppName'
> 
> Are you using Tcl/Tk 8.5? If so, the problem is due to the following
> in src.contrib/GMSL/NVIZ2.2/src/interface.h:
> 
> #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
> 
> The conditional should probably be:
> 
> #if TK_MAJOR_VERSION>8 || (TK_MAJOR_VERSION==8 && TK_MINOR_VERSION>=4)
> 
> IOW, the updated prototype should be used for Tcl/Tk 8.4 *or later*,
> not just for Tcl/Tk 8.4.

Fixed in CVS.

Markus




More information about the grass-user mailing list