Skip Menu |

This queue is for tickets about the PAR-Packer CPAN distribution.

Report information
The Basics
Id: 33436
Status: open
Priority: 0/
Queue: PAR-Packer

People
Owner: Nobody in particular
Requestors: willbeach [...] hotmail.com
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.980
Fixed in: (no value)



Subject:
Date: Tue, 19 Feb 2008 19:11:43 +0000
To: <bug-par [...] rt.cpan.org>
From: wil decker <willbeach [...] hotmail.com>
i am trying to pack a .pl that utilizes the VMware Infrastructure (VI) Perl Toolkit. I am able to use the toolkit without issue if I don't use pp to pack it into and exe when I make an exe. As long as my program doesn't use 'die' to exit out of the program it works fine. when my program hits a 'die' command i run into errors for example when I package the below .pl into an exe and then run it, 'use VMware::VIRuntime; print " what are these errors\n"; die;' this is displayed ' what are these errors Name " SoapFault::fault_string_isset" used only once: possible typo at Class/MethodMaker/Engine.pm line 781. Name " SoapFault::fault_string_clear" used only once: possible typo at Class/MethodMaker/Engine.pm line 781. Name " SoapFault::fault_string" used only once: possible typo at Class/MethodMaker/Engine.pm line 781. Name " SoapFault::detail_reset" used only once: possible typo at Class/MethodMaker/Engine.pm line 781. Name " SoapFault::fault_string_reset" used only once: possible typo at Class/MethodMaker/Engine.pm line 781. Name " SoapFault::detail_clear" used only once: possible typo at Class/MethodMaker/Engine.pm line 781. Name " SoapFault::detail" used only once: possible typo at Class/MethodMaker/Engine.pm line 781. Name " SoapFault::detail_isset" used only once: possible typo at Class/MethodMaker/Engine.pm line 781. Name " ManagedObjectReference::value_isset" used only once: possible typo at Class/MethodMaker/Engine.pm line 781. Name " ManagedObjectReference::value" used only once: possible typo at Class/MethodMaker/Engine.pm line 781. Name " ManagedObjectReference::type_reset" used only once: possible typo at Class/MethodMaker/Engine.pm line 781. Name " ManagedObjectReference::value_clear" used only once: possible typo at Class/MethodMaker/Engine.pm line 781. Name " ManagedObjectReference::type_isset" used only once: possible typo at Class/MethodMaker/Engine.pm line 781. Name " ManagedObjectReference::type" used only once: possible typo at Class/MethodMaker/Engine.pm line 781. Name " ManagedObjectReference::value_reset" used only once: possible typo at Class/MethodMaker/Engine.pm line 781. Name " ManagedObjectReference::type_clear" used only once: possible typo at Class/MethodMaker/Engine.pm line 781. Died at script/test.pl line 3.' if I run this script from the command line these errors don't appear. I am able to package other scripts into an exe and run them without issue when I package the below .pl into an exe and run it 'use VMware::VIRuntime; print " what is this thing doing \n";' (the 'die;' line has been removed) i get no errors another issue i see is when I use pp with the -C or --clean option to to create an exe that utilizes VMware Infrastructure (VI) Perl Toolkit I get warning messages and the program freezes lots of 'Subroutine xx redefined at Class/MethodMaker/Engine.pm line xx I need to be able to package vmware infrastructure (VI) Perl Toolkit calls into an exe to be run on a machine that doesn't have perl install. I've used pp in the past with many other scripts without issue but never with the vmware infrastructure. Any assistance would be appreciated thanks
Subject: Re: [rt.cpan.org #33436]
Date: Tue, 19 Feb 2008 21:02:58 +0100
To: bug-PAR [...] rt.cpan.org
From: Steffen Mueller <l2ot9pa02 [...] sneakemail.com>
Hi Wil, wil decker via RT schrieb: Show quoted text
> Any assistance would be appreciated
this might be due to Class::MethodMaker stuff not being correctly detected as dependency or something entirely unrelated. It's hard to tell just like that. I can't currently give much support, so if you hope for help any time soon, please post to the PAR mailing list. You're much more likely to get help from there quickly. Cheers, Steffen
Subject: vmware
Date: Fri, 7 Mar 2008 19:50:53 +0000
To: <bug-par [...] rt.cpan.org>
From: wil decker <willbeach [...] hotmail.com>
am having trouble packaging the vmware::viruntime module into a stand alone exe. I'm not sure if this is the correct place to submit this questions was interested if this has been done before and if so what pp options i should use(modules, .dlls) to be included
On Tue Feb 19 15:04:06 2008, l2ot9pa02@sneakemail.com wrote: Show quoted text
> this might be due to Class::MethodMaker stuff not being correctly > detected as dependency or something entirely unrelated. It's hard to > tell just like that. I can't currently give much support, so if you hope > for help any time soon, please post to the PAR mailing list. You're much > more likely to get help from there quickly.
Now, I did a lot more testing. a) Class::MethodMaker's internals weren't correctly detected by Module::ScanDeps. This is fixed in Module::ScanDeps 0.84 (on its way to CPAN). But that wasn't the real culprit. b) Class::MethodMaker uses code generation on installation to produce a huge blob of code. I'd suggest you stay away from using it with PAR since you have to ship it with every executable, but I understand you have no choice. c) Something else in Class::MethodMaker is really causing this. I confirmed that the errors only happen when in cleanup-mode of PAR. But you can also produce the error like this: (Using the example code from the Class-MethodMaker distribution) $ pp -o example example.pl $ perl -MPAR=exmaple -e 'use Class::MethodMaker;' Note that no --clean option is necessary. I haven't gotten any further yet, however. Best regards, Steffen
On Tue May 13 11:53:38 2008, SMUELLER wrote: Show quoted text
> c) Something else in Class::MethodMaker is really causing this.
Could you try this once more with the latest Class::MethodMaker. There's a related bug fix in it. Best regards, Steffen