The Tk Bug Tracker on SourceForge provided a very detailed post which allowed me to create a workaround for the ancient copy of Perk/Tk I have to use. Basically, X.Org added a new event, which pushed protocol constant LASTEvent from 35 to 36, and assumptions were made as to that value always being 35.

The changes I made were as follows (colored red)to the named source files in the Tk800.024 source distro.

./pTk/mTk/xlib/X11/X.h
#define MappingNotify 34
#define GenericEvent 35
#define LASTEvent 36 /* must be bigger than any event # */

./pTk/tkBind.c
./pTk/mTk/generic/tkBind.c
static int flagArrayTK_LASTEVENT = {
...
/* MappingNotify */ 0,
/*CN Not used */ 0,
...
};

./pTk/tkEvent.c
./pTk/mTk/generic/tkEvent.c
static unsigned long eventMasksTK_LASTEVENT = {
...
0, /* Mapping Notify */
0, /*CN X.Org added 'GenericEvent' */
...
};


In reply to Re^3: Strange Perl/Tk error by Anonymous Monk
in thread Strange Perl/Tk error by ivo_ac

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • 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:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, 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, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.