develooper Front page | perl.poe | Postings from January 2016

Re: [COMMERCIAL] POE and Activestate perlapp fail on MacOSX

Thread Previous | Thread Next
From:
Craig Votava
Date:
January 5, 2016 14:10
Subject:
Re: [COMMERCIAL] POE and Activestate perlapp fail on MacOSX
Message ID:
9542E6B7-2639-43D0-A9AD-1AB21ED8ED43@alcatel-lucent.com
Hi Rocco-

The PerlMonks solution seems to be for a different problem on a different platform, but this is a good suggestion that yielded interesting results:

Needed to comment out POE::Resource:Statistics (when did that go away?)
The perlapp fails when “use Tk;” is uncommented
The perlapp succeeds when “use Tk;” is commented out
The perlapp succeeds when all the POE lines are commented out and the “use Tk” is uncommented.

So maybe the PerlMonks solution isn’t as far off as I thought. It looks like we have a perlapp-Tk-POE issue.

What would be a good next step?

Thanks
-Craig

#!/usr/local/ActivePerl-5.20/bin/perl
use warnings;
use strict;

use Tk;

use POE qw (Loop::TkActiveState);
use POE::Loop::TkActiveState;
use POE::Kernel;
use POE::Session;
use POE::Resource::Aliases;
use POE::Resource::Events;
use POE::Resource::Extrefs;
use POE::Resource::FileHandles;
use POE::Resource::Sessions;
use POE::Resource::SIDs;
use POE::Resource::Signals;
#use POE::Resource::Statistics;

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

$ perlapp --perl /usr/local/ActivePerl-5.20/bin/perl --verbose --clean --force --lib lib --exe mca mactst.pl
PerlApp 9.4.0 build 298593 (perl 5.14.0)
Copyright (C) 1998-2014 ActiveState Software Inc. All rights reserved.
Commercial license S2EB72B1777B for Craig Votava <Craig.Votava@alcatel-lucent.com>

-e syntax OK
Free non-Callback 1032e2a88 RV=0 during global destruction.
. (1):
 0 0x103801558   IV f=00000001 undef(1)
SV = IV(0x103801548) at 0x103801558
  REFCNT = 1
  FLAGS = ()
  IV = 0
'mactst.pl' had compilation errors.


> On Jan 4, 2016, at 10:48 PM, Rocco Caputo <rcaputo@pobox.com> wrote:
> 
> Hi, Craig.
> 
> The PerlMonks thread you quoted ends with a solution to the OP's problem.  The mactst.pl you quoted doesn't seem to implement that solution, so my first recommendation would be to try that.
> 
> -- 
> Rocco Caputo <rcaputo@pobox.com <mailto:rcaputo@pobox.com>>
> 
>> On Jan 4, 2016, at 13:34, Craig Votava <craig.votava@alcatel-lucent.com <mailto:craig.votava@alcatel-lucent.com>> wrote:
>> 
>> Folks-
>> 
>> I’m running Yosemite (MacOSX 10.10.5) on a MacPro (Mid 2010) and am trying to use ActiveState’s perlapp to create an executable perl script.
>> 
>> I have been successful in creating some perl scripts that don’t use POE, however when I try a script using POE, I get the following error:
>> 
>> perlapp --perl /usr/local/ActivePerl-5.20/bin/perl --verbose --clean --force --lib lib --exe mca mactst.pl
>> PerlApp 9.4.0 build 298593 (perl 5.14.0)
>> Copyright (C) 1998-2014 ActiveState Software Inc. All rights reserved.
>> Commercial license S2EB72B1777B for Craig Votava <Craig.Votava@alcatel-lucent.com <mailto:Craig.Votava@alcatel-lucent.com>>
>> 
>> -e syntax OK
>> Free non-Callback 101ea3e08 RV=0 during global destruction.
>> . (1):
>>  0 0x104012158   IV f=00000001 undef(1)
>> SV = IV(0x104012148) at 0x104012158
>>   REFCNT = 1
>>   FLAGS = ()
>>   IV = 0
>> 'mactst.pl' had compilation errors.
>> 
>> The contents of mactst.pl is as follows:
>> 
>> #!/usr/local/ActivePerl-5.20/bin/perl
>> use warnings;
>> use strict;
>> use Tk;
>> use POE;
>> 
>> if(! defined($poe_main_window)) { die "\$poe_main_window not defined" };
>> 
>> This *MAY* have something to do with an issue about the POE::Loop that gets selected (read about it here <http://www.perlmonks.org/?node_id=758312>), but I’m not sure.
>> 
>> How can I debug this?
>> 
>> Any help is much appreciated!
>> 
>> Thanks
>> 
>> -Craig
>> 
> 


Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About