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?