sergot / openssl

OpenSSL bindings for Perl 6
MIT License
14 stars 31 forks source link

cannot locate symbol sk_num #68

Open ufobat opened 5 years ago

ufobat commented 5 years ago
martin@sinclair:~/repos$ zef install OpenSSL
===> Searching for: OpenSSL
===> Testing: OpenSSL:ver<0.1.21>:auth<github:sergot>
# NETWORK_TESTING was not set
Cannot locate symbol 'sk_num' in native library 'libssl.so'
  in method setup at /home/martin/.rakudobrew/moar-2018.12/install/share/perl6/sources/947BDAB9F96E0E5FCCB383124F923A6BF6F8D76B (NativeCall) line 283
  in method CALL-ME at /home/martin/.rakudobrew/moar-2018.12/install/share/perl6/sources/947BDAB9F96E0E5FCCB383124F923A6BF6F8D76B (NativeCall) line 570
  in block <unit> at t/10-client-ca-file.t line 10

# Looks like you planned 7 tests, but ran 1
# NETWORK_TESTING was not set
===> Testing [FAIL]: OpenSSL:ver<0.1.21>:auth<github:sergot>
Aborting due to test failure: OpenSSL:ver<0.1.21>:auth<github:sergot> (use --force-test to override)
martin@sinclair:~/repos$
vendethiel commented 5 years ago

has anyone investigated this issue?

Xliff commented 5 years ago

Yes, this is a repeat of jnthn/p6-io-socket-async-ssl/#34. Unfortunately, this is going to become more common, since libssl1.0 has now been removed from the latest KUbuntu. Here's the workaround:

You should now be able to install this module without errors.

markldevine commented 4 years ago

OpenSSL 1.1.1 is quite common in the newest Linux distributions. I'm getting painted into a corner due to this issue in some cases: RHEL 8, CentOS 8, Oracle Linux 8, Fedora 31, etc.

It won't be realistic to down-rev OpenSSL in our case, so I hope that work will continue to overcome this issue.

rbt commented 4 years ago

Indeed. The libssl1.0-dev package has even been removed from Ubuntu 19.10. Seems safer to require the newer OpenSSL symbols than the older ones at this point.

Xliff commented 4 years ago

Is @sergot active?

sergot commented 4 years ago

Unfortunately I'm not that active anymore @Xliff , will try to find some time this week.

Altai-man commented 4 years ago

~Just saw this on fedora 32, OpenSSL 1.1.1g FIPS, BUT...~

~If I clone the repo and zef install ., it installs just fine. If I do zef install OpenSSL without a local copy, it fails with sk_num not being found, which is rather odd.~

Could not confirm with a clean installation.

usev6 commented 3 years ago

I think this problem should no longer happen. At least I was able to install OpenSSL on Debian 10 and Ubuntu 20.04.2 LTS (both coming with OpenSSL 1.1.1).

If I'm not mistaken, the following changes made things work:

Please note: The second change was only necessary if the libssl.so was not already present when attempting to install OpenSSL the first time.

However, I think (hope) that this issue could be closed now. It would be great if someone else double checks.