Subject: | Crypt-SSLeay: make test fails against perl-5.31.0 on FreeBSD-12 |
Output of 'make test':
#####
[Crypt-SSLeay-0.72] $ make test
"/usr/home/jkeenan/var/tad/testing/perl-5.31.0/bin/perl" -MExtUtils::Command::MM -e 'cp_nonempty' -- SSLeay.bs blib/arch/auto/Crypt/SSLeay/SSLeay.bs 644
PERL_DL_NONLAZY=1 "/usr/home/jkeenan/var/tad/testing/perl-5.31.0/bin/perl" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/00-basic.t ..... 1/?
# Failed test 'use Crypt::SSLeay;'
# at t/00-basic.t line 6.
# Tried to use 'Crypt::SSLeay'.
# Error: Can't load '/usr/home/jkeenan/var/tad/testing/perl-5.31.0/.cpanm/work/1562787494.14114/Crypt-SSLeay-0.72/blib/arch/auto/Crypt/SSLeay/SSLeay.so' for module Crypt::SSLeay: /usr/home/jkeenan/var/tad/testing/perl-5.31.0/.cpanm/work/1562787494.14114/Crypt-SSLeay-0.72/blib/arch/auto/Crypt/SSLeay/SSLeay.so: Undefined symbol "SSLv2_client_method" at /home/jkeenan/var/tad/testing/perl-5.31.0/lib/5.31.0/amd64-freebsd-thread-multi/DynaLoader.pm line 193.
# at t/00-basic.t line 6.
# Compilation failed in require at t/00-basic.t line 6.
# BEGIN failed--compilation aborted at t/00-basic.t line 6.
# Failed test 'use Crypt::SSLeay::CTX;'
# at t/00-basic.t line 7.
# Tried to use 'Crypt::SSLeay::CTX'.
# Error: Attempt to reload Crypt/SSLeay.pm aborted.
# Compilation failed in require at /usr/home/jkeenan/var/tad/testing/perl-5.31.0/.cpanm/work/1562787494.14114/Crypt-SSLeay-0.72/blib/lib/Crypt/SSLeay/CTX.pm line 2.
# Compilation failed in require at t/00-basic.t line 7.
# BEGIN failed--compilation aborted at t/00-basic.t line 7.
# Failed test 'use Crypt::SSLeay::Conn;'
# at t/00-basic.t line 8.
# Tried to use 'Crypt::SSLeay::Conn'.
# Error: Attempt to reload Crypt/SSLeay.pm aborted.
# Compilation failed in require at /usr/home/jkeenan/var/tad/testing/perl-5.31.0/.cpanm/work/1562787494.14114/Crypt-SSLeay-0.72/blib/lib/Crypt/SSLeay/Conn.pm line 2.
# Compilation failed in require at t/00-basic.t line 8.
# BEGIN failed--compilation aborted at t/00-basic.t line 8.
# Failed test 'use Crypt::SSLeay::Err;'
# at t/00-basic.t line 9.
# Tried to use 'Crypt::SSLeay::Err'.
# Error: Attempt to reload Crypt/SSLeay.pm aborted.
# Compilation failed in require at /usr/home/jkeenan/var/tad/testing/perl-5.31.0/.cpanm/work/1562787494.14114/Crypt-SSLeay-0.72/blib/lib/Crypt/SSLeay/Err.pm line 2.
# Compilation failed in require at t/00-basic.t line 9.
# BEGIN failed--compilation aborted at t/00-basic.t line 9.
# Failed test 'use Crypt::SSLeay::MainContext;'
# at t/00-basic.t line 10.
# Tried to use 'Crypt::SSLeay::MainContext'.
# Error: Attempt to reload Crypt/SSLeay/CTX.pm aborted.
# Compilation failed in require at /usr/home/jkeenan/var/tad/testing/perl-5.31.0/.cpanm/work/1562787494.14114/Crypt-SSLeay-0.72/blib/lib/Crypt/SSLeay/MainContext.pm line 8.
# Compilation failed in require at t/00-basic.t line 10.
# BEGIN failed--compilation aborted at t/00-basic.t line 10.
# Failed test 'use Crypt::SSLeay::Version;'
# at t/00-basic.t line 12.
# Tried to use 'Crypt::SSLeay::Version'.
# Error: Attempt to reload Crypt/SSLeay.pm aborted.
# Compilation failed in require at /usr/home/jkeenan/var/tad/testing/perl-5.31.0/.cpanm/work/1562787494.14114/Crypt-SSLeay-0.72/blib/lib/Crypt/SSLeay/Version.pm line 2.
# Compilation failed in require at t/00-basic.t line 12.
# BEGIN failed--compilation aborted at t/00-basic.t line 12.
# Failed test 'use Net::SSL;'
# at t/00-basic.t line 23.
# Tried to use 'Net::SSL'.
# Error: Attempt to reload Crypt/SSLeay.pm aborted.
# Compilation failed in require at /usr/home/jkeenan/var/tad/testing/perl-5.31.0/.cpanm/work/1562787494.14114/Crypt-SSLeay-0.72/blib/lib/Net/SSL.pm line 20.
# Compilation failed in require at t/00-basic.t line 23.
# BEGIN failed--compilation aborted at t/00-basic.t line 23.
# Failed test 'Crypt::SSLeay POD coverage'
# at t/00-basic.t line 45.
# Crypt::SSLeay: requiring 'Crypt::SSLeay' failed
# Failed test 'Crypt::SSLeay::Version POD coverage'
# at t/00-basic.t line 45.
# Crypt::SSLeay::Version: requiring 'Crypt::SSLeay::Version' failed
# Failed test 'Net::SSL POD coverage'
# at t/00-basic.t line 45.
# Net::SSL: requiring 'Net::SSL' failed
Undefined subroutine &main::main_ctx called at t/00-basic.t line 49.
# Tests were run but no plan was declared and done_testing() was not seen.
# Looks like your test exited with 255 just after 13.
t/00-basic.t ..... Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 10/13 subtests
t/01-connect.t ... Can't load '/usr/home/jkeenan/var/tad/testing/perl-5.31.0/.cpanm/work/1562787494.14114/Crypt-SSLeay-0.72/blib/arch/auto/Crypt/SSLeay/SSLeay.so' for module Crypt::SSLeay: /usr/home/jkeenan/var/tad/testing/perl-5.31.0/.cpanm/work/1562787494.14114/Crypt-SSLeay-0.72/blib/arch/auto/Crypt/SSLeay/SSLeay.so: Undefined symbol "SSLv2_client_method" at /home/jkeenan/var/tad/testing/perl-5.31.0/lib/5.31.0/amd64-freebsd-thread-multi/DynaLoader.pm line 193.
at /usr/home/jkeenan/var/tad/testing/perl-5.31.0/.cpanm/work/1562787494.14114/Crypt-SSLeay-0.72/blib/lib/Net/SSL.pm line 20.
Compilation failed in require at /usr/home/jkeenan/var/tad/testing/perl-5.31.0/.cpanm/work/1562787494.14114/Crypt-SSLeay-0.72/blib/lib/Net/SSL.pm line 20.
Compilation failed in require at t/01-connect.t line 6.
BEGIN failed--compilation aborted at t/01-connect.t line 6.
# Looks like your test exited with 2 before it could output anything.
t/01-connect.t ... Dubious, test returned 2 (wstat 512, 0x200)
Failed 8/8 subtests
t/02-live.t ...... # Reading configuration from 'test.config' on freebsd
# network_tests : 0
t/02-live.t ...... skipped: Network tests disabled
t/03-version.t ... Can't load '/usr/home/jkeenan/var/tad/testing/perl-5.31.0/.cpanm/work/1562787494.14114/Crypt-SSLeay-0.72/blib/arch/auto/Crypt/SSLeay/SSLeay.so' for module Crypt::SSLeay: /usr/home/jkeenan/var/tad/testing/perl-5.31.0/.cpanm/work/1562787494.14114/Crypt-SSLeay-0.72/blib/arch/auto/Crypt/SSLeay/SSLeay.so: Undefined symbol "SSLv2_client_method" at /home/jkeenan/var/tad/testing/perl-5.31.0/lib/5.31.0/amd64-freebsd-thread-multi/DynaLoader.pm line 193.
at /usr/home/jkeenan/var/tad/testing/perl-5.31.0/.cpanm/work/1562787494.14114/Crypt-SSLeay-0.72/blib/lib/Crypt/SSLeay/Version.pm line 2.
Compilation failed in require at /usr/home/jkeenan/var/tad/testing/perl-5.31.0/.cpanm/work/1562787494.14114/Crypt-SSLeay-0.72/blib/lib/Crypt/SSLeay/Version.pm line 2.
Compilation failed in require at t/03-version.t line 7.
BEGIN failed--compilation aborted at t/03-version.t line 14.
t/03-version.t ... Dubious, test returned 2 (wstat 512, 0x200)
No subtests run
t/boilerplate.t .. ok
t/manifest.t ..... skipped: Author tests not required for installation
Test Summary Report
-------------------
t/00-basic.t (Wstat: 65280 Tests: 13 Failed: 10)
Failed tests: 1-5, 7-8, 11-13
Non-zero exit status: 255
Parse errors: No plan found in TAP output
t/01-connect.t (Wstat: 512 Tests: 0 Failed: 0)
Non-zero exit status: 2
Parse errors: Bad plan. You planned 8 tests but ran 0.
t/03-version.t (Wstat: 512 Tests: 0 Failed: 0)
Non-zero exit status: 2
Parse errors: No plan found in TAP output
Files=6, Tests=22, 2 wallclock secs ( 0.05 usr 0.02 sys + 0.66 cusr 0.33 csys = 1.05 CPU)
Result: FAIL
Failed 3/6 test programs. 10/22 subtests failed.
*** Error code 255
Stop.
make: stopped in /usr/home/jkeenan/var/tad/testing/perl-5.31.0/.cpanm/work/1562787494.14114/Crypt-SSLeay-0.72
#####
Strangely enough, the tests pass with run with a 'prove' built against the 'perl' in question.
#####
[Crypt-SSLeay-0.72] $ thisprove -vb t/00-basic.t t/01-connect.t t/03-version.t t/00-basic.t ....
ok 1 - use Crypt::SSLeay;
ok 2 - use Crypt::SSLeay::CTX;
ok 3 - use Crypt::SSLeay::Conn;
ok 4 - use Crypt::SSLeay::Err;
ok 5 - use Crypt::SSLeay::MainContext;
ok 6 - use Crypt::SSLeay::X509;
ok 7 - use Crypt::SSLeay::Version;
ok 8 - use Net::SSL;
ok 9 - POD test for SSLeay.pm
ok 10 - POD test for lib/Net/SSL.pm
ok 11 - Crypt::SSLeay POD coverage
ok 12 - Crypt::SSLeay::Version POD coverage
ok 13 - Net::SSL POD coverage
ok 14 - 'main context' isa 'Crypt::SSLeay::CTX'
1..14
ok
t/01-connect.t ..
1..8
ok 1 - Net::SSL->new - expected failure
ok 2 # skip nothing listening on localhost:443
ok 3 # skip nothing listening on localhost:443
ok 4 # skip nothing listening on localhost:443
ok 5 # skip nothing listening on localhost:443
ok 6 # skip nothing listening on localhost:443
ok 7 # skip nothing listening on localhost:443
ok 8 # skip nothing listening on localhost:443
ok
t/03-version.t ..
ok 1 - openssl_built_on returns a defined value
# built on: reproducible build, date unspecified
ok 2 - openssl_built_on return value looks valid
ok 3 - openssl_cflags returns a defined value
# compiler: clang
ok 4 - openssl_cflags return value looks valid
ok 5 - openssl_dir returns a defined value
# OPENSSLDIR: "/etc/ssl"
ok 6 - openssl_dir return value looks valid
ok 7 - openssl_platform returns a defined value
# platform: FreeBSD-amd64
ok 8 - openssl_platform return value looks valid
ok 9 - openssl_version returns a defined value
# OpenSSL 1.1.1a-freebsd 20 Nov 2018
ok 10 - openssl_version return value looks valid
ok 11 - openssl_int_version returns a defined value
# 0x1010101f
ok 12 - OpenSSL version geq lowest known version
1..12
ok
All tests successful.
Files=3, Tests=34, 1 wallclock secs ( 0.04 usr 0.02 sys + 0.38 cusr 0.18 csys = 0.62 CPU)
Result: PASS
#####
Can you investigate?
Thank you very much.
Jim Keenan