Hi Gurus,
I am trying to create a freestanding executable in Windows using PerlApp - 5.2.0 build 520 and perl 5.8.3. The script contains the following lines:
use strict; use LWP::UserAgent; while(1) { sleep 2; }

The command line used to create the executable is:

Perlapp --verbose test.pl


This gives the following verbose output on compilation:
PerlApp 5.2.0 build 520 Copyright (C) 1998-2003 ActiveState Corp. All rights reserved. +++ c:\Schrodinger-perl\lib\AutoLoader.pm +++ c:\Schrodinger-perl\lib\Carp.pm +++ c:\Schrodinger-perl\lib\Carp\Heavy.pm +++ c:\Schrodinger-perl\lib\Config.pm +++ DynaLoader.pm (internal) +++ c:\Schrodinger-perl\lib\Errno.pm +++ c:\Schrodinger-perl\lib\Exporter.pm +++ c:\Schrodinger-perl\lib\Exporter\Heavy.pm +++ c:\Schrodinger-perl\lib\File\Glob.pm +++ c:\Schrodinger-perl\site\lib\LWP\UserAgent.pm Mac\FileSpec\Unixish.pm: warn: Can't locate Mac\FileSpec\Unixish.pm refby: c:\Schrodinger-perl\lib\DynaLoader.pm +++ c:\Schrodinger-perl\lib\Term\Cap.pm +++ c:\Schrodinger-perl\lib\Text\ParseWords.pm +++ XSLoader.pm (internal) +++ c:\Schrodinger-perl\lib\attributes.pm +++ c:\Schrodinger-perl\lib\auto\DynaLoader\autosplit.ix +++ c:\Schrodinger-perl\lib\auto\DynaLoader\dl_expandspec.al +++ c:\Schrodinger-perl\lib\auto\DynaLoader\dl_find_symbol_anywhere.al +++ c:\Schrodinger-perl\lib\auto\DynaLoader\dl_findfile.al +++ c:\Schrodinger-perl\lib\auto\File\Glob\Glob.dll +++ c:\Schrodinger-perl\lib\auto\re\re.dll +++ c:\Schrodinger-perl\lib\re.pm +++ c:\Schrodinger-perl\lib\strict.pm +++ c:\Schrodinger-perl\lib\vars.pm +++ c:\Schrodinger-perl\lib\warnings.pm +++ c:\Schrodinger-perl\lib\warnings\register.pm +++ perl58.dll (c:\Schrodinger-perl\bin\perl58.dll) Please run `perlapp.exe --help DIAGNOSTICS` for more information about the generated error and warning messages. Created 'test.exe'

On running the executable, I end up in following error:
/PerlApp/strict.pm did not return a true value. BEGIN failed--compilation aborted at test.pl line 1.

Can anyone comment what can be the reason for this problem? If I remove the pod line from LWP::UserAgent ( =head1 NAME..... ), the executable works fine. What's the mystery behind this?


I am giving here the output of Perl -V's @INC for reference:
@INC: c:/Schrodinger-perl/lib c:/Schrodinger-perl/site/lib

In reply to PerlApp Error - /PerlApp/strict.pm did not return a true value. by kartlee

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.