It's not that I don't believe you, but I can't seem to replicate your problem :) It works for me on the first try.

I included it with the -l flag but it still fails with the same error... :-(

You shouldn't need the -l flag for those, the -l flag is for things like libgcc_s_dw2-1.dll

I don't even know what to try now...

Try the usual, that is, upgrade, check the FAQ, check the bug que, turn on debugging, then show us the output.

Here is how I tried

$ type foo.pl use IO::File; print $_,$/ for %INC, grep /dll/i,%::; $ pp -vvv -o foo.exe foo.pl C:\perl\site\5.12.2\bin/pp: Packing foo.pl C:\perl\site\5.12.2\bin/pp: Writing PAR on ppykUVY.par *snip* C:\perl\site\5.12.2\bin/pp: ... adding C:/perl/5.12.2/lib/MSWin32-x86- +multi-thread/IO.pm as lib/IO.pm *snip* C:\perl\site\5.12.2\bin/pp: ... adding C:/perl/5.12.2/lib/MSWin32-x86- +multi-thread/IO/File.pm as lib/IO/File.pm C:\perl\site\5.12.2\bin/pp: ... adding C:/perl/5.12.2/lib/MSWin32-x86- +multi-thread/IO/Handle.pm as lib/IO/Handle.pm *snip* C:\perl\site\5.12.2\bin/pp: ... adding C:/perl/5.12.2/lib/MSWin32-x86- +multi-thread/auto/IO/IO.dll as lib/auto/IO/IO.dll C:\perl\site\5.12.2\bin/pp: ... adding C:/perl/site/5.12.2/lib/auto/Im +age/Size/autosplit.ix as lib/auto/Image/Size/autosplit.ix *snip* C:\perl\site\5.12.2\bin/pp: ... adding C:/perl/5.12.2/lib/unicore/lib/ +Blk/Inscript.pl as lib/unicore/lib/Blk/Inscript.pl *snip* C:\perl\site\5.12.2\bin/pp: ... adding C:/perl/5.12.2/lib/warnings.pm +as lib/warnings.pm C:\perl\site\5.12.2\bin/pp: ... adding C:/perl/5.12.2/lib/warnings/reg +ister.pm as lib/warnings/register.pm C:\perl\site\5.12.2\bin/pp: ... adding <string> as MANIFEST C:\perl\site\5.12.2\bin/pp: ... adding <string> as META.yml C:\perl\site\5.12.2\bin/pp: ... adding <string> as lib/Archive/Tar.pm *snip* C:\perl\site\5.12.2\bin/pp: ... adding <string> as lib/IO/Dir.pm C:\perl\site\5.12.2\bin/pp: ... adding <string> as lib/IO/File.pm *snip* C:\perl\site\5.12.2\bin/pp: ... adding C:/perl/5.12.2/lib/MSWin32-x86- +multi-thread/auto/IO/IO.dll as lib/auto/IO/IO.dll C:\perl\site\5.12.2\bin/pp: ... adding <string> as lib/auto/Image/Size +/autosplit.ix *snip* C:\perl\site\5.12.2\bin/pp: ... adding <string> as lib/warnings.pm C:\perl\site\5.12.2\bin/pp: ... adding <string> as lib/warnings/regist +er.pm C:\perl\site\5.12.2\bin/pp: ... adding <string> as script/foo.pl C:\perl\site\5.12.2\bin/pp: ... adding <string> as script/main.pl C:\perl\site\5.12.2\bin/pp: ... updating MANIFEST C:\perl\site\5.12.2\bin/pp: ... updating META.yml C:\perl\site\5.12.2\bin/pp: *** ppykUVY.par: 19865098 bytes read, 6812 +943 compressed, 65% saved. C:\perl\site\5.12.2\bin/pp: Generating a fresh 'parl'. C:\perl\site\5.12.2\bin/pp: Running parluZ4c01A.exe -B -Ofoo.exe ppykU +VY.par Packing "AutoLoader.pm"... Written as "AutoLoader.pm" Packing "Carp/Heavy.pm"... Written as "Carp/Heavy.pm" Packing "Carp.pm"... Written as "Carp.pm" Packing "Compress/Zlib.pm"... Written as "Compress/Zlib.pm" Packing "Exporter.pm"... Written as "Exporter.pm" Packing "Exporter/Heavy.pm"... Written as "Exporter/Heavy.pm" Packing "File/Basename.pm"... Written as "File/Basename.pm" Packing "File/Copy.pm"... Written as "File/Copy.pm" Packing "File/Find.pm"... Written as "File/Find.pm" Packing "File/GlobMapper.pm"... Written as "File/GlobMapper.pm" Packing "File/Path.pm"... Written as "File/Path.pm" Packing "File/Temp.pm"... Written as "File/Temp.pm" Packing "FileHandle.pm"... Written as "FileHandle.pm" Packing "IO/Compress/Adapter/Deflate.pm"... Written as "IO/Compress/Adapter/Deflate.pm" Packing "IO/Compress/Base.pm"... Written as "IO/Compress/Base.pm" Packing "IO/Compress/Base/Common.pm"... Written as "IO/Compress/Base/Common.pm" Packing "IO/Compress/Gzip.pm"... Written as "IO/Compress/Gzip.pm" Packing "IO/Compress/Gzip/Constants.pm"... Written as "IO/Compress/Gzip/Constants.pm" Packing "IO/Compress/RawDeflate.pm"... Written as "IO/Compress/RawDeflate.pm" Packing "IO/Compress/Zlib/Extra.pm"... Written as "IO/Compress/Zlib/Extra.pm" Packing "IO/Uncompress/Adapter/Inflate.pm"... Written as "IO/Uncompress/Adapter/Inflate.pm" Packing "IO/Uncompress/Base.pm"... Written as "IO/Uncompress/Base.pm" Packing "IO/Uncompress/Gunzip.pm"... Written as "IO/Uncompress/Gunzip.pm" Packing "IO/Uncompress/RawInflate.pm"... Written as "IO/Uncompress/RawInflate.pm" Packing "Compress/Raw/Zlib.pm"... Written as "Compress/Raw/Zlib.pm" Packing "Config.pm"... Written as "Config.pm" Packing "Config_git.pl"... Written as "Config_git.pl" Packing "Config_heavy.pl"... Written as "Config_heavy.pl" Packing "Cwd.pm"... Written as "Cwd.pm" Packing "DynaLoader.pm"... Written as "DynaLoader.pm" Packing "Errno.pm"... Written as "Errno.pm" Packing "Fcntl.pm"... Written as "Fcntl.pm" Packing "File/Glob.pm"... Written as "File/Glob.pm" Packing "File/Spec.pm"... Written as "File/Spec.pm" Packing "File/Spec/Unix.pm"... Written as "File/Spec/Unix.pm" Packing "File/Spec/Win32.pm"... Written as "File/Spec/Win32.pm" Packing "IO.pm"... Written as "IO.pm" Packing "IO/File.pm"... Written as "IO/File.pm" Packing "IO/Handle.pm"... Written as "IO/Handle.pm" Packing "IO/Seekable.pm"... Written as "IO/Seekable.pm" Packing "List/Util.pm"... Written as "List/Util.pm" Packing "PerlIO/scalar.pm"... Written as "PerlIO/scalar.pm" Packing "Scalar/Util.pm"... Written as "Scalar/Util.pm" Packing "attributes.pm"... Written as "attributes.pm" Packing "auto/Compress/Raw/Zlib/autosplit.ix"... Written as "auto/Compress/Raw/Zlib/autosplit.ix" Packing "auto/DynaLoader/dl_findfile.al"... Written as "auto/DynaLoader/dl_findfile.al" Packing "lib.pm"... Written as "lib.pm" Packing "PerlIO.pm"... Written as "PerlIO.pm" Packing "SelectSaver.pm"... Written as "SelectSaver.pm" Packing "Symbol.pm"... Written as "Symbol.pm" Packing "Tie/Hash/NamedCapture.pm"... Written as "Tie/Hash/NamedCapture.pm" Packing "Time/Local.pm"... Written as "Time/Local.pm" Packing "UNIVERSAL.pm"... Written as "UNIVERSAL.pm" Packing "base.pm"... Written as "base.pm" Packing "bytes.pm"... Written as "bytes.pm" Packing "constant.pm"... Written as "constant.pm" Packing "integer.pm"... Written as "integer.pm" Packing "overload.pm"... Written as "overload.pm" Packing "strict.pm"... Written as "strict.pm" Packing "utf8.pm"... Written as "utf8.pm" Packing "vars.pm"... Written as "vars.pm" Packing "warnings.pm"... Written as "warnings.pm" Packing "warnings/register.pm"... Written as "warnings/register.pm" Packing "Archive/Zip.pm"... Written as "Archive/Zip.pm" Packing "Archive/Zip/Archive.pm"... Written as "Archive/Zip/Archive.pm" Packing "Archive/Zip/DirectoryMember.pm"... Written as "Archive/Zip/DirectoryMember.pm" Packing "Archive/Zip/FileMember.pm"... Written as "Archive/Zip/FileMember.pm" Packing "Archive/Zip/Member.pm"... Written as "Archive/Zip/Member.pm" Packing "Archive/Zip/NewFileMember.pm"... Written as "Archive/Zip/NewFileMember.pm" Packing "Archive/Zip/StringMember.pm"... Written as "Archive/Zip/StringMember.pm" Packing "Archive/Zip/ZipFileMember.pm"... Written as "Archive/Zip/ZipFileMember.pm" Packing "Win32.pm"... Written as "Win32.pm" Packing "XSLoader.pm"... Written as "XSLoader.pm" Packing "PAR.pm"... Written as "PAR.pm" Packing "PAR/Dist.pm"... Written as "PAR/Dist.pm" Packing "PAR/Filter.pm"... Written as "PAR/Filter.pm" Packing "PAR/Heavy.pm"... Written as "PAR/Heavy.pm" Packing "PAR/SetupProgname.pm"... Written as "PAR/SetupProgname.pm" Packing "PAR/SetupTemp.pm"... Written as "PAR/SetupTemp.pm" Packing "PAR/Filter/PatchContent.pm"... Written as "PAR/Filter/PatchContent.pm" Packing "PAR/Filter/PodStrip.pm"... Written as "PAR/Filter/PodStrip.pm" Packing "*snip*\Temp\par-username\cache-ac5ff4582ea80995787b53023c6205 +1fd999cd35/99f05ebc.dll"... Written as "auto/Win32/Win32.dll"

output before packing

$ perl foo.pl warnings/register.pm C:/perl/5.12.2/lib/warnings/register.pm XSLoader.pm C:/perl/site/5.12.2/lib/MSWin32-x86-multi-thread/XSLoader.pm IO/Handle.pm C:/perl/5.12.2/lib/MSWin32-x86-multi-thread/IO/Handle.pm Carp.pm C:/perl/5.12.2/lib/Carp.pm File/Spec/Unix.pm C:/perl/5.12.2/lib/MSWin32-x86-multi-thread/File/Spec/Unix.pm vars.pm C:/perl/5.12.2/lib/vars.pm Exporter.pm C:/perl/5.12.2/lib/Exporter.pm strict.pm C:/perl/5.12.2/lib/strict.pm SelectSaver.pm C:/perl/5.12.2/lib/SelectSaver.pm IO/Seekable.pm C:/perl/5.12.2/lib/MSWin32-x86-multi-thread/IO/Seekable.pm warnings.pm C:/perl/5.12.2/lib/warnings.pm File/Spec.pm C:/perl/5.12.2/lib/MSWin32-x86-multi-thread/File/Spec.pm IO/File.pm C:/perl/5.12.2/lib/MSWin32-x86-multi-thread/IO/File.pm File/Spec/Win32.pm C:/perl/5.12.2/lib/MSWin32-x86-multi-thread/File/Spec/Win32.pm Fcntl.pm C:/perl/5.12.2/lib/MSWin32-x86-multi-thread/Fcntl.pm IO.pm C:/perl/5.12.2/lib/MSWin32-x86-multi-thread/IO.pm Symbol.pm C:/perl/5.12.2/lib/Symbol.pm _<C:/perl/5.12.2/lib/MSWin32-x86-multi-thread/auto/Fcntl/Fcntl.dll *main::_<C:/perl/5.12.2/lib/MSWin32-x86-multi-thread/auto/Fcntl/Fcntl. +dll _<C:/perl/5.12.2/lib/MSWin32-x86-multi-thread/auto/IO/IO.dll *main::_<C:/perl/5.12.2/lib/MSWin32-x86-multi-thread/auto/IO/IO.dll

output after packing

$ foo.exe attributes.pm /loader/HASH(0xabc75c)/attributes.pm Compress/Raw/Zlib.pm /loader/HASH(0xa88844)/Compress/Raw/Zlib.pm List/Util.pm /loader/HASH(0xabc63c)/List/Util.pm File/Find.pm /loader/HASH(0xa88244)/File/Find.pm Cwd.pm /loader/HASH(0xa889c4)/Cwd.pm IO/Uncompress/Adapter/Inflate.pm /loader/HASH(0xa886c4)/IO/Uncompress/Adapter/Inflate.pm Carp/Heavy.pm /loader/HASH(0xa553e4)/Carp/Heavy.pm Fcntl.pm /loader/HASH(0xa88ae4)/Fcntl.pm Symbol.pm /loader/HASH(0xabc99c)/Symbol.pm Scalar/Util.pm /loader/HASH(0xabc6fc)/Scalar/Util.pm Exporter.pm /loader/HASH(0xa880c4)/Exporter.pm Win32.pm /loader/HASH(0xabd1dc)/Win32.pm Errno.pm /loader/HASH(0xa88a84)/Errno.pm File/Spec.pm /loader/HASH(0xa88ba4)/File/Spec.pm File/Glob.pm /loader/HASH(0xa88b44)/File/Glob.pm File/GlobMapper.pm /loader/HASH(0xa882a4)/File/GlobMapper.pm PAR/Filter.pm /loader/HASH(0xabd35c)/PAR/Filter.pm XSLoader.pm /loader/HASH(0xabd23c)/XSLoader.pm PAR/Heavy.pm /loader/HASH(0xabd3bc)/PAR/Heavy.pm warnings/register.pm /loader/HASH(0xabce7c)/warnings/register.pm IO/Compress/Gzip.pm /loader/HASH(0xa88544)/IO/Compress/Gzip.pm Archive/Zip/DirectoryMember.pm /loader/HASH(0xabcf9c)/Archive/Zip/DirectoryMember.pm IO/Uncompress/Base.pm /loader/HASH(0xa88724)/IO/Uncompress/Base.pm Archive/Zip/Member.pm /loader/HASH(0xabd05c)/Archive/Zip/Member.pm Archive/Zip/StringMember.pm /loader/HASH(0xabd11c)/Archive/Zip/StringMember.pm Config_git.pl /loader/HASH(0xa88904)/Config_git.pl utf8.pm /loader/HASH(0xabcd5c)/utf8.pm IO/Uncompress/Gunzip.pm /loader/HASH(0xa88784)/IO/Uncompress/Gunzip.pm Archive/Zip.pm /loader/HASH(0xabcedc)/Archive/Zip.pm bytes.pm /loader/HASH(0xabcb7c)/bytes.pm Exporter/Heavy.pm /loader/HASH(0xa88124)/Exporter/Heavy.pm File/Spec/Unix.pm /loader/HASH(0xa88c04)/File/Spec/Unix.pm strict.pm /loader/HASH(0xabccfc)/strict.pm vars.pm /loader/HASH(0xabcdbc)/vars.pm PAR/SetupTemp.pm /loader/HASH(0xabd47c)/PAR/SetupTemp.pm PAR/Filter/PodStrip.pm /loader/HASH(0xaa9fbc)/PAR/Filter/PodStrip.pm Config_heavy.pl /loader/HASH(0xa88964)/Config_heavy.pl IO/Compress/Base.pm /loader/HASH(0xa88484)/IO/Compress/Base.pm AutoLoader.pm /loader/HASH(0xa4c62c)/AutoLoader.pm Archive/Zip/FileMember.pm /loader/HASH(0xabcffc)/Archive/Zip/FileMember.pm lib.pm /loader/HASH(0xabc87c)/lib.pm IO/Compress/Zlib/Extra.pm /loader/HASH(0xa88664)/IO/Compress/Zlib/Extra.pm auto/Compress/Raw/Zlib/autosplit.ix /loader/HASH(0xabc7bc)/auto/Compress/Raw/Zlib/autosplit.ix IO/Handle.pm /loader/HASH(0xabc57c)/IO/Handle.pm Tie/Hash/NamedCapture.pm /loader/HASH(0xabc9fc)/Tie/Hash/NamedCapture.pm SelectSaver.pm /loader/HASH(0xabc93c)/SelectSaver.pm auto/DynaLoader/dl_findfile.al /loader/HASH(0xabc81c)/auto/DynaLoader/dl_findfile.al Compress/Zlib.pm /loader/HASH(0xa88064)/Compress/Zlib.pm Time/Local.pm /loader/HASH(0xabca5c)/Time/Local.pm warnings.pm /loader/HASH(0xabce1c)/warnings.pm Archive/Zip/NewFileMember.pm /loader/HASH(0xabd0bc)/Archive/Zip/NewFileMember.pm UNIVERSAL.pm /loader/HASH(0xabcabc)/UNIVERSAL.pm File/Temp.pm /loader/HASH(0xa88364)/File/Temp.pm main CODE(0x17934fc) PAR.pm /loader/HASH(0xabd29c)/PAR.pm PAR/Filter/PatchContent.pm /loader/HASH(0xabd4dc)/PAR/Filter/PatchContent.pm File/Path.pm /loader/HASH(0xa88304)/File/Path.pm IO/Compress/RawDeflate.pm /loader/HASH(0xa88604)/IO/Compress/RawDeflate.pm IO/Compress/Gzip/Constants.pm /loader/HASH(0xa885a4)/IO/Compress/Gzip/Constants.pm File/Spec/Win32.pm /loader/HASH(0xa88c64)/File/Spec/Win32.pm IO/Compress/Adapter/Deflate.pm /loader/HASH(0xa88424)/IO/Compress/Adapter/Deflate.pm PAR/Dist.pm /loader/HASH(0xabd2fc)/PAR/Dist.pm IO/Seekable.pm /loader/HASH(0xabc5dc)/IO/Seekable.pm File/Copy.pm /loader/HASH(0xa881e4)/File/Copy.pm base.pm /loader/HASH(0xabcb1c)/base.pm IO/Uncompress/RawInflate.pm /loader/HASH(0xa887e4)/IO/Uncompress/RawInflate.pm Config.pm /loader/HASH(0xa888a4)/Config.pm File/Basename.pm /loader/HASH(0xa88184)/File/Basename.pm integer.pm /loader/HASH(0xabcc3c)/integer.pm Archive/Zip/Archive.pm /loader/HASH(0xabcf3c)/Archive/Zip/Archive.pm IO.pm /loader/HASH(0xa88cc4)/IO.pm Carp.pm /loader/HASH(0xa519a4)/Carp.pm PAR/SetupProgname.pm /loader/HASH(0xabd41c)/PAR/SetupProgname.pm FileHandle.pm /loader/HASH(0xa883c4)/FileHandle.pm IO/Compress/Base/Common.pm /loader/HASH(0xa884e4)/IO/Compress/Base/Common.pm constant.pm /loader/HASH(0xabcbdc)/constant.pm PerlIO/scalar.pm /loader/HASH(0xabc69c)/PerlIO/scalar.pm PerlIO.pm /loader/HASH(0xabc8dc)/PerlIO.pm Archive/Zip/ZipFileMember.pm /loader/HASH(0xabd17c)/Archive/Zip/ZipFileMember.pm IO/File.pm /loader/HASH(0xa88d24)/IO/File.pm overload.pm /loader/HASH(0xabcc9c)/overload.pm DynaLoader.pm /loader/HASH(0xa88a24)/DynaLoader.pm _<c:/perl/5.12.2/lib/MSWin32-x86-multi-thread/auto/PerlIO/scalar/scala +r.dll *main::_<c:/perl/5.12.2/lib/MSWin32-x86-multi-thread/auto/PerlIO/scala +r/scalar.dll _<c:/perl/5.12.2/lib/MSWin32-x86-multi-thread/auto/List/Util/Util.dll *main::_<c:/perl/5.12.2/lib/MSWin32-x86-multi-thread/auto/List/Util/Ut +il.dll _<c:/perl/5.12.2/lib/MSWin32-x86-multi-thread/auto/File/Glob/Glob.dll *main::_<c:/perl/5.12.2/lib/MSWin32-x86-multi-thread/auto/File/Glob/Gl +ob.dll _<c:/perl/5.12.2/lib/MSWin32-x86-multi-thread/auto/IO/IO.dll *main::_<c:/perl/5.12.2/lib/MSWin32-x86-multi-thread/auto/IO/IO.dll _<c:/perl/5.12.2/lib/MSWin32-x86-multi-thread/auto/Cwd/Cwd.dll *main::_<c:/perl/5.12.2/lib/MSWin32-x86-multi-thread/auto/Cwd/Cwd.dll _<c:/perl/5.12.2/lib/MSWin32-x86-multi-thread/auto/Fcntl/Fcntl.dll *main::_<c:/perl/5.12.2/lib/MSWin32-x86-multi-thread/auto/Fcntl/Fcntl. +dll _<c:/perl/5.12.2/lib/MSWin32-x86-multi-thread/auto/attributes/attribut +es.dll *main::_<c:/perl/5.12.2/lib/MSWin32-x86-multi-thread/auto/attributes/a +ttributes.dll _<c:/perl/5.12.2/lib/MSWin32-x86-multi-thread/auto/Compress/Raw/Zlib/Z +lib.dll *main::_<c:/perl/5.12.2/lib/MSWin32-x86-multi-thread/auto/Compress/Raw +/Zlib/Zlib.dll _<*snip*\Temp\par-username\cache-3c5d15ccb8694ff406979cef4e214b5d3bc09 +fc9/99f05ebc.dll *main::_<*snip*\Temp\par-username\cache-3c5d15ccb8694ff406979cef4e214b +5d3bc09fc9/99f05ebc.dll

Actually testing without path reveals I forgot my perl needs C:/MinGW/bin/libgcc_s_dw2-1.dll

$ perl -Mautodie=system -e " $ENV{path}=''; system 'foo.exe'; " "foo.exe" unexpectedly returned exit value 255 at (eval 10) line 13 at -e line 1 $ objdump -p foo.exe |grep DLL.Name DLL Name: msvcrt.dll DLL Name: ADVAPI32.DLL DLL Name: KERNEL32.dll DLL Name: msvcrt.dll DLL Name: libgcc_s_dw2-1.dll

I'm using

$ perl -le " print for $^V, map {eval qq{require $_; $_=> $_->VERSION; +}; } qw[ IO IO::File Module::ScanDeps pp PAR PAR::Packer ] " v5.12.2 IO 1.25_02 IO::File 1.14 Module::ScanDeps 1.02 pp 1.009 PAR 1.002 PAR::Packer 1.009

In reply to Re^3: Packaged binary fails on perlless systems [win32] by Anonymous Monk
in thread Packaged binary fails on perlless systems [win32] by Stamm

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.