I have a perl script 4500 line script that i want to compile into a single executable on ubuntu 12.04 system. this will allow it to be run in a configured environment quite easily (e.g. the correct modules are loaded, etc.).

the compilation completes without error, but when i go to run the resulting executable it runs for a while, but as soon as it gets to doing its SOAP HTTPS calls it fails as follows:

ATest::SOAP::connect: read failed: at Net/HTTP/Methods.pm line 256 at Net/SSL.pm line 210 Net::SSL::die_with_error('LWP::Protocol::https::Socket=GLOB(0x +5928c48)', 'read failed') called at Net/SSL.pm line 223 Net::SSL::read('LWP::Protocol::https::Socket=GLOB(0x5928c48)', + '', 1024, 0) called at Net/HTTP/Methods.pm line 256 Net::HTTP::Methods::my_readline('LWP::Protocol::https::Socket= +GLOB(0x5928c48)', 'Status') called at Net/HTTP/Methods.pm line 343 Net::HTTP::Methods::read_response_headers('LWP::Protocol::http +s::Socket=GLOB(0x5928c48)', 'laxed', 1, 'junk_out', 'ARRAY(0x56e31d8) +') called at LWP/Protocol/http.pm line 378 LWP::Protocol::http::request('LWP::Protocol::https=HASH(0x58d0 +c60)', 'HTTP::Request=HASH(0x58b4d20)', undef, undef, undef, 180) cal +led at LWP/UserAgent.pm line 192 eval {...} called at LWP/UserAgent.pm line 191 LWP::UserAgent::send_request('LWP::UserAgent=HASH(0x58ab2d8)', + 'HTTP::Request=HASH(0x58b4d20)', undef, undef) called at LWP/UserAge +nt.pm line 274 LWP::UserAgent::simple_request('LWP::UserAgent=HASH(0x58ab2d8) +', 'HTTP::Request=HASH(0x58b4d20)', undef, undef) called at LWP/UserA +gent.pm line 282 LWP::UserAgent::request('LWP::UserAgent=HASH(0x58ab2d8)', 'HTT +P::Request=HASH(0x58b4d20)') called at /home/ENDACE/mark.smith/atest/ +lib/perl/ATest/SOAP.pm line 6077 ATest::SOAP::SoapCall('LWP::UserAgent=HASH(0x58ab2d8)', 'https +://nzhmlamp-7-03/services/fwif', 'VersionQuery', '<soapenv:Envelope x +mlns:soapenv="http://schemas.xmlsoap.org/s...') called at /home/ENDAC +E/mark.smith/atest/lib/perl/ATest/SOAP.pm line 6030 ATest::SOAP::VersionQuery('ATest::SOAP=HASH(0x572d2d8)') calle +d at /home/ENDACE/mark.smith/atest/lib/perl/ATest/SOAP.pm line 235 ATest::SOAP::connect('ATest::SOAP=HASH(0x572d2d8)') called at +/home/ENDACE/mark.smith/atest/lib/perl/ATest/SOAP/Do.pm line 115 ATest::SOAP::Do::connect('ATest::SOAP::Do=HASH(0x5728048)') ca +lled at script/vis_run.pl line 4325 require main called at /usr/share/perl5/PAR.pm line 636 PAR::_run_member('Archive::Zip::ZipFileMember=HASH(0x35b2c88)' +, 1) called at script/main.pl line 26 require main called at /usr/share/perl5/PAR.pm line 636 PAR::_run_member('Archive::Zip::ZipFileMember=HASH(0x35b29d0)' +) called at /usr/share/perl5/PAR.pm line 428 PAR::import('PAR') called at -e line 953 eval {...} called at -e line 209 __par_pl::BEGIN() called at script/vis_run.pl line 0 eval {...} called at script/vis_run.pl line 0 soap at script/vis_run.pl line 4325.

I've tried various --module and --link flags, but no luck. i focused around the Crypt::SSLeay, LWP, Net:HTTP, Net::SSL, libssl.so.0.9.8 objects.

My google-foo has let me down this time. Anyone seen this before and/or can give some guidance as to how to make this work?


In reply to PAR compilation of custom perl script fails during run by winksmith

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.