p5-net-ssleay icon indicating copy to clipboard operation
p5-net-ssleay copied to clipboard

Unable to install Net::SSLeay on activestate perl 5.28 in windows

Open PranavDuggal opened this issue 1 year ago • 7 comments

Hi there,

I am having issues install Net::SSLeay module on windows. I am using Activestate perl 5.28 and openssl version 3.3.0.

I have attached the log files.

net-ssleay-build-logs.txt

Is there a way to fix this?

Regards Pranav Duggal

PranavDuggal avatar Apr 23 '24 17:04 PranavDuggal

Hi @chrisnovakovic ,

Just following up on my previous message regarding the module installation issue. Any updates or suggestions?

Thanks, Pranav Duggal

PranavDuggal avatar Apr 25 '24 16:04 PranavDuggal

It looks like you have the OpenSSL binary but not the libcrypto and libssl libraries - could you recursively list the contents of C:\Program Files\OpenSSL?

chrisnovakovic avatar Apr 26 '24 18:04 chrisnovakovic

Hi @chrisnovakovic,

libcrypto and libssl libraries are present inside C:\Program Files\OpenSSL\lib folder. Here is the structure of the folder

│ libcrypto.lib │ libssl.lib │ ├───cmake │ └───OpenSSL │ OpenSSLConfig.cmake │ OpenSSLConfigVersion.cmake │ ├───engines-3 │ capi.dll │ capi.pdb │ loader_attic.dll │ loader_attic.pdb │ padlock.dll │ padlock.pdb │ └───ossl-modules legacy.dll legacy.pdb

Regards Pranav Duggal

PranavDuggal avatar Apr 27 '24 16:04 PranavDuggal

Your log file shows that the make command you are using picks up D:\Strawberry\c\bin\gcc.exe. However, you wrote that you'd like to compile for Activestate Perl. Could it be that the problem is caused by multiple different Perl distributions being installed on your machine?

h-vn avatar Apr 30 '24 12:04 h-vn

Hi @h-vn, @chrisnovakovic ,

I am currently utilizing GCC from Strawberry Perl, as ActiveState Perl version 5.28 lacks MinGW support. Additionally, I've tested it on ActiveState Perl 5.26.3, which comes with MinGW by default, and encountered the same errors and warnings as in Perl 5.28.

Regards Pranav Duggal

PranavDuggal avatar Apr 30 '24 13:04 PranavDuggal

Hi @h-vn , @chrisnovakovic ,

Just following up on my previous message regarding the module installation issue. Any updates or suggestions?

Thanks, Pranav Duggal

PranavDuggal avatar May 02 '24 13:05 PranavDuggal

It doesn't look as if the linker is being asked to link to the OpenSSL libraries - I'd expect to see -lcrypto -lssl in the g++ invocation. What if you set PERL_MM_OPT='LIBS="-lcrypto -lssl"' before running Makefile.PL?

chrisnovakovic avatar May 07 '24 22:05 chrisnovakovic