Tk XS error on Activestate Perl 5.20 MacOSX

Posted by craig on 2016-01-06 09:15


It seems that there is an XS error being generated on Activestate Perl 5.20 for MacOSX, when both POE and Tk are used:

$ /usr/local/ActivePerl-5.20/bin/perl -c syntax OK
. (1):
 0 0x1030c4968   IV f=00000001 undef(1)
SV = IV(0x1030c4958) at 0x1030c4968
  REFCNT = 1
  FLAGS = ()
  IV = 0

This error was generated using the following perl script (called

use warnings;
use strict;

use Tk;

use POE qw (Loop::TkActiveState);

if(! defined($poe_main_window)) { warn "\$poe_main_window not defined" };

The error does not occur if I use activestate Perl 5.14:

$ /usr/local/ActivePerl-5.14/bin/perl -c syntax OK

I originally posted this on the POE mailing list, then emailed Rocco for a while, then posted to perlmonks ( and now am posting here.

Any help is much appreciated!