sergot / openssl

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

t/01-basic.t test fails on macOS High Sierra #63

Closed bbkr closed 4 years ago

bbkr commented 6 years ago
===> Testing: OpenSSL:ver<0.1.19>:auth<github:sergot>
# Failed test 'new 3/3'
# at t/01-basic.t line 15
# expected: '65536'
#      got: '771'
# Looks like you failed 1 test of 9
$ perl6 -v
This is Rakudo version 2018.06 built on MoarVM version 2018.06
implementing Perl 6.c.
$ openssl version
LibreSSL 2.2.7

MacOS High Sierra 10.13.5

coke commented 5 years ago

Still happening as of Rakudo version 2018.09-72-g687a3cbb0 built on MoarVM version 2018.09-123-g0191bd9cf

MattOates commented 5 years ago

Still here, let me know if there is anything I can do to help diagnose this further. Its the main blocker for installing cro on MacOS.

$ perl6 --version
This is Rakudo version 2018.12-280-gdf96fa0f3 built on MoarVM version 2018.12-45-ga9d02578a
implementing Perl 6.d.
$ openssl version
OpenSSL 1.0.2p  14 Aug 2018
$ zef install OpenSSL
===> Searching for: OpenSSL
===> Updating cpan mirror: https://raw.githubusercontent.com/ugexe/Perl6-ecosystems/master/cpan1.json
===> Updating p6c mirror: http://ecosystem-api.p6c.org/projects1.json
===> Updated p6c mirror: http://ecosystem-api.p6c.org/projects1.json
===> Updated cpan mirror: https://raw.githubusercontent.com/ugexe/Perl6-ecosystems/master/cpan1.json
===> Testing: OpenSSL:ver<0.1.21>:auth<github:sergot>
# Failed test 'new 3/3'
# at t/01-basic.t line 15
# expected: '65536'
#      got: '771'
# Looks like you failed 1 test of 9
# NETWORK_TESTING was not set
# 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)
bbkr commented 5 years ago

Still bugged.

AngeldsWang commented 5 years ago

FYI. On my mac, the default ldlibs in config is /usr/local/lib

$ perl6 -e 'say $*VM.config<ldlibs>'
 -L/usr/local/lib -lffi -ltommath -latomic_ops -luv -lpthread

I didn't find a way to change the configuration and figure out why LD_LIBRARY_PATH do not work neither. But after linking libssl.dylib from /usr/local/opt/openssl/lib into /usr/local/lib, the error had gone away.

scovit commented 4 years ago

The bug is still there. MacOS mojave

$ openssl version
LibreSSL 2.6.5
scovit commented 4 years ago

https://github.com/sergot/openssl/pull/73 might fix the issue, although, quite frankly, I do not know which kind of functionality that test is testing, why it has been written in the first place, and why it should be one way or the other?

Digicrat commented 4 years ago

Same issue here on Mojave after upgrading Rakudo to 2020.01 release.

I used the "--force-test" option to bypass the test on this module and continue with installing the modules I need.