From: Daniel A. S. <st...@ic...> - 2005-06-27 03:51:16
|
Neil, On 26/06/2005, at 21:48, Neil Madden wrote: > I've just been trying to rebuild Tcl/Tk and extensions on my Mac, and > I'm getting errors since updating Tk. e.g. building both tile and > tktreectrl I get this error: > > In file included from > /Users/neilmadden/dev/tk/macosx/tkMacOSXPort.h:81, > from /Users/neilmadden/dev/tk/generic/tkPort.h:30, > from /Users/neilmadden/dev/tk/generic/tkInt.h:27, > from ./generic/tkTheme.c:24: > /Users/neilmadden/dev/tk/generic/tkIntXlibDecls.h:687: error: > conflicting types for 'XSetDashes' > /usr/include/X11/Xlib.h:3193: error: previous declaration of > 'XSetDashes' was here > ... > etc - repeats for lots of X declarations. > > This is (or should be) an Aqua build of Tk (built using the > macosx/Makefile), but it looks like it is including the actual X11 > headers as well as trying to emulate. Anyone else seeing this, before > I report a bug? I doubt this is a Tk bug, can you give exact details on how you build tile and tktreectrl ? they may need more recent TEA files for certain build scenarios, I've recently made some fixes in TEA to deal with getting the xlib headers in the tk source dir. certainly if you have -I/Library/Frameworks/Tk.framework/Headers in your compiler invocation, the emulation X11 headers will be found there before any real X11 headers in /usr/include/X11, but for that to happen you may need to pass --with-tk-includes=/Library/Frameworks/Tk.framework/Headers to the TEA configure (with latest TEA you don't need to anymore) Cheers, Daniel -- ** Daniel A. Steffen ** "And now for something completely ** Dept. of Mathematics ** different" Monty Python ** Macquarie University ** <mailto:st...@ma...> ** NSW 2109 Australia ** <http://www.maths.mq.edu.au/~steffen/> |