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:
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):
svn checkout https://svn.perl.org/modules/Tk/trunk/ ./
"If there is such a phenomenon as absolute evil, it consists in treating another human being as a thing."
John Brunner, "The Shockwave Rider".
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.
| & || & |
| < || < |
| > || > |
| [ || [ |
| ] || ] ||