On Thu, Jun 17, 2010 at 2:57 PM, Trappe, Jens (EXTERN: ITHUD)
<[email protected]> wrote:
> I have problems with a PAR-generated executable using the modul Aspect (AOP).
>
> I compiled aop_test.pl with "pp -o aop_test.exe aop_test.pl". If I use the 
> compile-script
> (see later), the same problem occurs.

First of all, pp doesn't "compile" your script in any way, it simply
packs the script
(and all modules it depends on) plus a special purpose Perl interpreter
into  one big, standalone executable.

As Steffen has already mentioned, your problem is most likely a dependency
that can't  be detected by static source analysis (which is done by
Module::ScanDeps).
Try using the option -x to pp

pp -x -o aop_test.exe aop_test.pl

(but keep an old exe for comparison, see below).
"-x" will run your script once during the packing process (so don't get puzzled
if you see its output), then examines the contents of %INC after the
script has finished.
Any stuff found there (and not already detected by M::SD) will also be added to
the executable.

If this makes the executable work, please compare the
contents of the old and new executables: both are zip files, so running

unzip -l my.exe

should list the included stuff, sort the two lists and diff them. Post the
results, then we may be able to add a special rule to M::SD to help with
static analysis.

And just a wild guess: please add the line

...
print "Aspect Initialisierung\n";
print "INC = \...@inc\n";                              <------
...

and post the output for the original script and for the packed version.

Cheers, Roderich

Reply via email to