http://www.perlmonks.org?node_id=657846

For all those upgrading their Perl to the latest, shiniest release, this might save you some searching. The CPAN release of Tk doesn't appear to work with 5.10.0 (if you installed 5.9.5 you'll have had the same problem). The result during make on my Debian box is as follows:

tkGlue.c: In function ‘Tcl_RegExpRange’: tkGlue.c:5360: error: ‘regexp’ has no member named ‘startp’ tkGlue.c:5360: error: ‘regexp’ has no member named ‘endp’ tkGlue.c:5362: error: ‘regexp’ has no member named ‘startp’ tkGlue.c:5363: error: ‘regexp’ has no member named ‘endp’ tkGlue.c: In function ‘Boot_Glue’: tkGlue.c:5493: warning: initialization from incompatible pointer type tkGlue.c:5501: warning: assignment from incompatible pointer type make: *** [tkGlue.o] Error 1

The appropriate bug report is here (although the title references Solaris), and the solution is to get the dev version of Tk from here:

https://svn.perl.org/modules/Tk/trunk

This worked fine for me; although some of the tests failed, all my Tk code seems to run fine after installation :-)

Update: Hint for the non-svn initiated (assuming you have an svn client installed):

mkdir tk cd tk svn checkout https://svn.perl.org/modules/Tk/trunk/ ./ perl Makefile.PL make make test make install

--------------------------------------------------------------

"If there is such a phenomenon as absolute evil, it consists in treating another human being as a thing."
John Brunner, "The Shockwave Rider".