[Python-bugs-list] trouble with _tkinter.c (PR#68)

Guido van Rossum guido@CNRI.Reston.VA.US
Mon, 30 Aug 1999 11:17:10 -0400


> I had install Tcl/Tk version 8.0.5 and when I went to compile python with tcl
> module support, I kept getting an ld error that Tcl_GetFile info was undefined. 
> I edited the modules/_tkinter.c and changed line 113 from 
> #define MAKEFHANDLE(fd) Tcl_GetFile((ClientData)(fd), FHANDLETYPE)
> to
> #define MAKEFHANDLE(fd) Tcl_GetFileInfo((ClientData)(fd), FHANDLETYPE)
> 
> and this seemed to let it work hopefully this is the context for which it was
> intended

Actually, that line is inside #if TKMAJORMINOR < 8000 ... #else; which
means it was not supposed to be triggered when you are using Tk 8.0.5
as you say.  The most common cause for this is having an old tk.h
header file lying around on your system.

--Guido van Rossum (home page: http://www.python.org/~guido/)