Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
PranavDuggal opened this issue Apr 23, 2024 · 7 comments
Open

Comments

@PranavDuggal
Copy link

PranavDuggal commented Apr 23, 2024

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
Copy link
Author

PranavDuggal commented Apr 25, 2024

Hi @chrisnovakovic ,

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

Thanks,
Pranav Duggal

@PranavDuggal PranavDuggal changed the title Unable to install Net::SSLeay on activestate perl 5.28 Unable to install Net::SSLeay on activestate perl 5.28 in windows Apr 25, 2024
@chrisnovakovic
Copy link
Collaborator

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?

@PranavDuggal
Copy link
Author

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

@h-vn
Copy link
Contributor

h-vn commented Apr 30, 2024

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?

@PranavDuggal
Copy link
Author

PranavDuggal commented Apr 30, 2024

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
Copy link
Author

Hi @h-vn , @chrisnovakovic ,

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

Thanks,
Pranav Duggal

@chrisnovakovic
Copy link
Collaborator

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants