Compilation is failing for Net::SMTP::TLS::ButMaintained with perl 5.36 build for Windows that was created about 10 days ago.
Previously it was suggested that the issue may be with the openssl.dll. I recreated the 5.36 build using openssl version 1.1.0.21, but that made no difference. There are no third party versions of openssl installed, so that’s not the issue either.
Compilation fails with the following message:
Attempt to reload Net/SSLeay.pm aborted.
Compilation failed in require at …/site/lib/Net/SMTP/TLS/ButMaintained.pm line 14.
BEGIN failed–compilation aborted at …/site/lib/Net/SMTP/TLS/ButMaintained.pm line 14.
Compilation failed in require at …\email.pl line 9.
BEGIN failed–compilation aborted at …\email.pl line 9.
I am also seeing this compilation failure for SSL:
Can’t load ‘…/ActiveState/cache/b78bd135/site/lib/auto/Net/SSLeay/SSLeay.dll’ for module Net::SSLeay: load_file:The specified module could not be found at …/AppData/Local/ActiveState/cache/b78bd135/lib/DynaLoader.pm line 206.
at …/ActiveState/cache/b78bd135/site/lib/IO/Socket/SSL.pm line 19.
Compilation failed in require at …/ActiveState/cache/b78bd135/site/lib/IO/Socket/SSL.pm line 19.
BEGIN failed–compilation aborted at …/ActiveState/cache/b78bd135/site/lib/IO/Socket/SSL.pm line 19.
Compilation failed in require at …\al.dl.pl line 10.
BEGIN failed–compilation aborted at …\al.dl.pl line 10.
I have confirmed that SSLeay.dll is there.
Hello
https://platform.activestate.com/onlyonelikeme/Perl-5.36.0
project appears to be building, are you indicating the issue is when you try to leverage it locally?
I ‘successfully’ created the build (about 10 days prior to my post). The errors occur at runtime.
May i combine this with Unusable Perl 5.36 build - compilation failures due to various dll files not loading
I’ve created an internal ticket to look at the DLL and see if there are issues
In the interim have you tried manually setting the PATH
Unusable Perl 5.36 build - compilation failures due to various dll files not loading is a separate issue to the issue of compilation failing due to attempt to reload Net/SSleay.pm being aborted, so I would like to keep the topics separate.
If anything, the part of my opening post above starting from ‘I am also seeing this compilation failure for SSL:’ onwards could be removed as it is covered in the other topic about dlls not being found.
This topic could be merged onto the end of Attempt to reload Net/SSLeay.pm aborted.
The message about the dll not being found gives the full path to the dll, e.g.
Can’t load ‘C:/Perl-5.36/site/lib/auto/Net/SSLeay/SSLeay.dll’ for module Net::SSLeay: load_file:The specified module could not be found at C:/Perl-5.36/lib/DynaLoader.pm line 206.
therefore the path is known, and so I think there is nothing to be gained from adding it to PATH. However, as you asked I tried it so that I could answer your question. It makes no difference.
I wrote the code that uses Net/SMTP/TLS/ButMaintained.pm a very long time ago, before Net::SMTP included support for TLS and SSL. I have rewritten my code to use Net::SMTP.
As I am not using Net/SMTP/TLS/ButMaintained.pm, the aborted attempt to reload Net/SSLeay.pm is no longer an issue for me, BUT SSLeay.dll not loading is still an issue because Net::SMTP uses IO::Socket::SSL, which uses Net::SSLeay.
So, I am currently no longer looking out for replies to this topic or to Attempt to reload Net/SSLeay.pm aborted.
That leaves Unusable Perl 5.36 build - compilation failures due to various dll files not loading still requiring resolution.
Thanks sorry about that, internal ticket is made and hopefully we can get this sorted!
Both of these issues, ‘attempt to reload Net/SSLeay.pm aborted’, and ‘can’t load dll’ go away if the exec folder is above the bin and site\bin folders in PATH.
I am waiting to hear why the wrong order causes issues. See Unusable Perl 5.36 build - compilation failures due to various dll files not loading - #12 by onlyonelikeme.