sergot / openssl

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

libressl #53

Closed llelf closed 4 years ago

llelf commented 6 years ago

Just encountered a test failure. And the culprit was that loaded libssl dylib came out to be libressl.

Thoughts on how to handle this? I can’t think of a good and reliable way to determine the breed of libssl. Nasty, platform-specific and semi-reliable methods include

Kaiepi commented 6 years ago

This was breaking builds for me on OpenBSD 6.2:

kennel% openssl version
LibreSSL 2.6.4
kennel% zef install openssl --force-install
===> Searching for: openssl
===> Updated cpan mirror: https://raw.githubusercontent.com/ugexe/Perl6-ecosystems/master/cpan.json
===> Updated p6c mirror: http://ecosystem-api.p6c.org/projects.json
===> Testing: OpenSSL:ver<0.1.17>:auth<github:sergot>
# Failed test 'new 2/3'
# at t/01-basic.t line 9
# expected: '769'
#      got: '-1829305536'
# Failed test 'new 3/3'
# at t/01-basic.t line 17
# expected: '771'
#      got: '-1829305536'
# Looks like you failed 2 tests of 9
# NETWORK_TESTING was not set
# NETWORK_TESTING was not set
===> Testing [FAIL]: OpenSSL:ver<0.1.17>:auth<github:sergot>
Aborting due to test failure: OpenSSL:ver<0.1.17>:auth<github:sergot> (use --force-test to override)
  in code  at /home/morfent/.perl6/share/perl6/site/sources/0061125F96D1E60B6E3B0001A4CB4D4188DF4869 (Zef::Client) line 375
  in method test at /home/morfent/.perl6/share/perl6/site/sources/0061125F96D1E60B6E3B0001A4CB4D4188DF4869 (Zef::Client) line 353
  in code  at /home/morfent/.perl6/share/perl6/site/sources/0061125F96D1E60B6E3B0001A4CB4D4188DF4869 (Zef::Client) line 530
  in sub  at /home/morfent/.perl6/share/perl6/site/sources/0061125F96D1E60B6E3B0001A4CB4D4188DF4869 (Zef::Client) line 527
  in method install at /home/morfent/.perl6/share/perl6/site/sources/0061125F96D1E60B6E3B0001A4CB4D4188DF4869 (Zef::Client) line 633
  in sub MAIN at /home/morfent/.perl6/share/perl6/site/sources/C360CEB3AF792C33F65155FA82FDB7AB4467EC82 (Zef::CLI) line 152
  in block <unit> at /home/morfent/.perl6/share/perl6/site/resources/1063D2A135456C8AB42D605E20DBCF9E4A1C9F3B line 3
  in sub MAIN at /home/morfent/.perl6/share/perl6/site/bin/zef line 2
  in block <unit> at /home/morfent/.perl6/share/perl6/site/bin/zef line 2

Installing OpenSSL and making OpenSSL::NativeLib look for its libraries in /usr/local/lib/eopenssl/ mitigates the problem for me for now

Altai-man commented 4 years ago

/me has the same issue on void linux.