in reply to Re: pp generated executable can't find or load libraries
in thread pp generated executable can't find or load libraries

Hi swl,

Many thanks for your input! I think we are making progress here.

I am now getting the below error instead.

Can't locate object method "start_SSL" via package "IO::Socket::SSL" at script/sendemail.pl line 474.
  • Comment on Re^2: pp generated executable can't find or load libraries

Replies are listed 'Best First'.
Re^3: pp generated executable can't find or load libraries
by swl (Prior) on Apr 13, 2021 at 21:54 UTC

    It seems that a plain pp call, even with the -x flag, does not trigger all of the libraries, but packing works under pp_autolink.

    You could also add these lines to the script, assuming in your case you always want to use them anyway:

    BEGIN { use Net::SSLeay; use IO::Socket::SSL; IO::Socket::SSL->start_SSL($SERVER, SSL_version => 'TLSv1_2', SSL_ +verify_mode => 0 ); }

    When I run the exe I can get the usage information.

    However, I have not tested if sending emails actually works, and that might be the next point of failure, leading to your other reply in 11131180.

      You are an absolute legend!!!

      It works now :D

      Many thanks for your time and help, it is greatly appreciated.

        Good to hear it works now, and you're welcome.