From: Vince D. <vi...@sa...> - 2003-01-28 17:05:43
|
This sounds as if you are mixing header files between 8.4 and 8.3 versions of tcl,tk. Make sure you're using only 8.4's headers. -- Vince <http://www.santafe.edu/~vince> On Tue, 28 Jan 2003, Bernard Desgraupes wrote: > > tcl.h has the following macros (around line 270): > #ifdef USE_NON_CONST > # ifdef USE_COMPAT_CONST > # error define at most one of USE_NON_CONST and USE_COMPAT_CONST > # endif > # define CONST84 > # define CONST84_RETURN > #else > # ifdef USE_COMPAT_CONST > # define CONST84 > # define CONST84_RETURN CONST > # else > # define CONST84 CONST > # define CONST84_RETURN CONST > # endif > #endif > > Maybe should you try to play around with one of them: #define > USE_NON_CONST or #define USE_COMPAT_CONST > > I don't have the source code of snack to try myself. > > Just a guess, > > Bernard > > > Hello all, > > > > I have been running into a problem trying to build snack. I am using > > the following: > > OSX 10.2.3 > > Tcl/Tk 8.4.1 (tried with and without BI installed) > > > > I downloaded Snack 2.2 and did the following: > > cd unix > > ./configure --with-tcl=/Library/Frameworks/Tcl.framework > > --with-tk=/Library/Frameworks/Tk.framework > > changed the following lines in the Makefile: > > TCL_INCPATH = /Library/Frameworks/Tcl.framework/Version/8.4/Headers > > TK_INCPATH = /Library/Frameworks/Tk.framework/Version/8.4/Headers > > make > > > > It builds for a while then I get a bunch of the following errors each > > ref a different line #: > > /Library/Frameworks/Tk.framework/Versions/8.4/Headers/tkDecls.h:237: > > illegal external declaration, missing `;' after `CONST84_RETURN' > > followed by a whole host of other errors. > > > > I edited tkDecls.h and added the ';' to each of the CONST84_RETURN > > instances but it didn't help as when I tried make again > > > > Followed by these errors each ref a different line #: > > /Library/Frameworks/Tk.framework/Versions/8.4/Headers/tkDecls.h:986: > > undefined type, found `CONST84_RETURN' > > /Library/Frameworks/Tk.framework/Versions/8.4/Headers/tkDecls.h:986: > > illegal member declaration, missing name, found `char' > > and some other errors such as ../generic/snack.c:255: request for > > member `tk_CreateItemType' in something not a structure or union > > > > Anyone have any ideas as to why it does not build. I have put the > > full output of the make up at: http://twc-inc.net/make.txt > > > > Thanks for any help or suggestions, > > Dana > > > > ------------------------------------------------------- > > This SF.NET email is sponsored by: > > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > > http://www.vasoftware.com > > _______________________________________________ > > Tcl-mac mailing list > > Tc...@li... > > https://lists.sourceforge.net/lists/listinfo/tcl-mac > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > http://www.vasoftware.com > _______________________________________________ > Tcl-mac mailing list > Tc...@li... > https://lists.sourceforge.net/lists/listinfo/tcl-mac > |