Score:0

Installing perl-crypt-ssleay on CentOS8

de flag

We have a hard requirement to install perl-crypt-ssleay. As per https://bugzilla.redhat.com/show_bug.cgi?id=1744782 it's no longer available for CentOS8. I tried doing cpan Crypt::SSLeay but that ended in the error below.

[root@R8-3 opt]# cpan  Crypt::SSLeay
Loading internal null logger. Install Log::Log4perl for logging messages
Reading '/root/.cpan/Metadata'
  Database was generated on Mon, 22 Nov 2021 08:17:03 GMT
Running install for module 'Crypt::SSLeay'
CPAN: Digest::SHA loaded ok (v6.02)
CPAN: Compress::Zlib loaded ok (v2.081)
Checksum for /root/.cpan/sources/authors/id/N/NA/NANIS/Crypt-SSLeay-0.72.tar.gz ok
'YAML' not installed, will not store persistent state
CPAN: CPAN::Meta::Requirements loaded ok (v2.140)
CPAN: Parse::CPAN::Meta loaded ok (v2.150010)
CPAN: CPAN::Meta loaded ok (v2.150010)
CPAN: Module::CoreList loaded ok (v5.20181130)
Configuring N/NA/NANIS/Crypt-SSLeay-0.72.tar.gz with Makefile.PL

    *** THIS IS NOT AN ERROR, JUST A MESSAGE FOR YOUR INFORMATION ***

    Do you really need Crypt::SSLeay?

    Starting with version 6.02 of LWP, https support was unbundled into
    LWP::Protocol::https. This module specifies as one of its prerequisites
    IO::Socket::SSL which is automatically used by LWP::UserAgent unless
    this preference is overridden separately. IO::Socket::SSL is a more
    complete implementation, and, crucially, it allows hostname
    verification. Crypt::SSLeay does not support this. At this point,
    Crypt::SSLeay is maintained to support existing software that already
    depends on it.

    However, it is possible that your software does not really depend on
    Crypt::SSLeay, only on the ability of LWP::UserAgent class to
    communicate with sites over SSL/TLS.

    If are using version LWP 6.02 or later, and therefore have installed
    LWP::Protocol::https and its dependencies, and do not explicitly use
    Net::SSL before loading LWP::UserAgent, or override the default socket
    class, you are probably using IO::Socket::SSL and do not really need
    Crypt::SSLeay.

    Before installing Crypt::SSLeay, you may want to try specifying a
    dependency on LWP::Protocol::https.

================================================================================
Output from '/root/.cpan/build/Crypt-SSLeay-0.72-10/openssl-version':
OpenSSL 1.1.1k  FIPS 25 Mar 2021
101010bf
================================================================================
Checking if your kit is complete...
Looks good
Warning (mostly harmless): No library found for -lssl32
Warning (mostly harmless): No library found for -lssleay32
Warning (mostly harmless): No library found for -leay32
Warning (mostly harmless): No library found for -llibeay32
Generating a Unix-style Makefile
Writing Makefile for Crypt::SSLeay
Writing MYMETA.yml and MYMETA.json
  NANIS/Crypt-SSLeay-0.72.tar.gz
  /usr/bin/perl Makefile.PL -- OK
Running make for N/NA/NANIS/Crypt-SSLeay-0.72.tar.gz
cp lib/Crypt/SSLeay/Conn.pm blib/lib/Crypt/SSLeay/Conn.pm
cp lib/Crypt/SSLeay/Err.pm blib/lib/Crypt/SSLeay/Err.pm
cp SSLeay.pm blib/lib/Crypt/SSLeay.pm
cp lib/Crypt/SSLeay/X509.pm blib/lib/Crypt/SSLeay/X509.pm
cp lib/Net/SSL.pm blib/lib/Net/SSL.pm
cp lib/Crypt/SSLeay/MainContext.pm blib/lib/Crypt/SSLeay/MainContext.pm
cp lib/Crypt/SSLeay/Version.pm blib/lib/Crypt/SSLeay/Version.pm
cp lib/Crypt/SSLeay/CTX.pm blib/lib/Crypt/SSLeay/CTX.pm
Running Mkbootstrap for SSLeay ()
chmod 644 "SSLeay.bs"
"/usr/bin/perl" -MExtUtils::Command::MM -e 'cp_nonempty' -- SSLeay.bs blib/arch/auto/Crypt/SSLeay/SSLeay.bs 644
"/usr/bin/perl" "/usr/share/perl5/vendor_perl/ExtUtils/xsubpp"  -typemap '/usr/share/perl5/ExtUtils/typemap' -typemap '/root/.cpan/build/Crypt-SSLeay-0.72-10/typemap'  SSLeay.xs > SSLeay.xsc
mv SSLeay.xsc SSLeay.c
gcc -c   -D_REENTRANT -D_GNU_SOURCE -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fwrapv -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -g   -DVERSION=\"0.72\" -DXS_VERSION=\"0.72\" -fPIC "-I/usr/lib64/perl5/CORE"   SSLeay.c
SSLeay.xs: In function ‘XS_Crypt__SSLeay__CTX_new’:
SSLeay.xs:152:31: warning: implicit declaration of function ‘SSLv3_client_method’; did you mean ‘SSLv23_client_method’? [-Wimplicit-function-declaration]
             ctx = SSL_CTX_new(SSLv3_client_method());
                               ^~~~~~~~~~~~~~~~~~~
                               SSLv23_client_method
SSLeay.xs:152:31: warning: passing argument 1 of ‘SSL_CTX_new’ makes pointer from integer without a cast [-Wint-conversion]
             ctx = SSL_CTX_new(SSLv3_client_method());
                               ^~~~~~~~~~~~~~~~~~~~~
In file included from SSLeay.xs:35:
/usr/include/openssl/ssl.h:1508:17: note: expected ‘const SSL_METHOD *’ {aka ‘const struct ssl_method_st *’} but argument is of type ‘int’
 __owur SSL_CTX *SSL_CTX_new(const SSL_METHOD *meth);
                 ^~~~~~~~~~~
SSLeay.xs:157:31: warning: implicit declaration of function ‘SSLv2_client_method’; did you mean ‘SSLv23_client_method’? [-Wimplicit-function-declaration]
             ctx = SSL_CTX_new(SSLv2_client_method());
                               ^~~~~~~~~~~~~~~~~~~
                               SSLv23_client_method
SSLeay.xs:157:31: warning: passing argument 1 of ‘SSL_CTX_new’ makes pointer from integer without a cast [-Wint-conversion]
             ctx = SSL_CTX_new(SSLv2_client_method());
                               ^~~~~~~~~~~~~~~~~~~~~
In file included from SSLeay.xs:35:
/usr/include/openssl/ssl.h:1508:17: note: expected ‘const SSL_METHOD *’ {aka ‘const struct ssl_method_st *’} but argument is of type ‘int’
 __owur SSL_CTX *SSL_CTX_new(const SSL_METHOD *meth);
                 ^~~~~~~~~~~
SSLeay.c:280:6: warning: unused variable ‘packname’ [-Wunused-variable]
  SV* packname = ST(0)
      ^~~~~~~~
SSLeay.c: In function ‘XS_Crypt__SSLeay__Conn_new’:
SSLeay.c:586:6: warning: unused variable ‘packname’ [-Wunused-variable]
  SV* packname = ST(0)
      ^~~~~~~~
In file included from /usr/lib64/perl5/CORE/perl.h:5589,
                 from SSLeay.xs:13:
SSLeay.c: In function ‘XS_Crypt__SSLeay__CTX_use_pkcs12_file’:
/usr/lib64/perl5/CORE/pp.h:359:12: warning: ‘RETVAL’ may be used uninitialized in this function [-Wmaybe-uninitialized]
         IV TARGi_iv = i;                                                \
            ^~~~~~~~
SSLeay.c:475:6: note: ‘RETVAL’ was declared here
  int RETVAL;
      ^~~~~~
rm -f blib/arch/auto/Crypt/SSLeay/SSLeay.so
gcc  -lpthread -shared -Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -L/usr/local/lib -fstack-protector-strong  SSLeay.o  -o blib/arch/auto/Crypt/SSLeay/SSLeay.so  \
   -lssl -lcrypto -lz -lperl   \
  
chmod 755 blib/arch/auto/Crypt/SSLeay/SSLeay.so
Manifying 3 pod documents
  NANIS/Crypt-SSLeay-0.72.tar.gz
  /usr/bin/make -- OK
Running make test
"/usr/bin/perl" -MExtUtils::Command::MM -e 'cp_nonempty' -- SSLeay.bs blib/arch/auto/Crypt/SSLeay/SSLeay.bs 644
PERL_DL_NONLAZY=1 "/usr/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 '/root/.cpan/build/Crypt-SSLeay-0.72-10/blib/arch/auto/Crypt/SSLeay/SSLeay.so' for module Crypt::SSLeay: /root/.cpan/build/Crypt-SSLeay-0.72-10/blib/arch/auto/Crypt/SSLeay/SSLeay.so: undefined symbol: SSLv2_client_method at /usr/lib64/perl5/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 /root/.cpan/build/Crypt-SSLeay-0.72-10/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 /root/.cpan/build/Crypt-SSLeay-0.72-10/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 /root/.cpan/build/Crypt-SSLeay-0.72-10/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 /root/.cpan/build/Crypt-SSLeay-0.72-10/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 /root/.cpan/build/Crypt-SSLeay-0.72-10/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 /root/.cpan/build/Crypt-SSLeay-0.72-10/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.
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 2 just after 13.
t/00-basic.t ..... Dubious, test returned 2 (wstat 512, 0x200)
Failed 7/13 subtests 
        (less 5 skipped subtests: 1 okay)
t/01-connect.t ... Can't load '/root/.cpan/build/Crypt-SSLeay-0.72-10/blib/arch/auto/Crypt/SSLeay/SSLeay.so' for module Crypt::SSLeay: /root/.cpan/build/Crypt-SSLeay-0.72-10/blib/arch/auto/Crypt/SSLeay/SSLeay.so: undefined symbol: SSLv2_client_method at /usr/lib64/perl5/DynaLoader.pm line 193.
 at /root/.cpan/build/Crypt-SSLeay-0.72-10/blib/lib/Net/SSL.pm line 20.
Compilation failed in require at /root/.cpan/build/Crypt-SSLeay-0.72-10/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 linux
# network_tests : 0
t/02-live.t ...... skipped: Network tests disabled
t/03-version.t ... Can't load '/root/.cpan/build/Crypt-SSLeay-0.72-10/blib/arch/auto/Crypt/SSLeay/SSLeay.so' for module Crypt::SSLeay: /root/.cpan/build/Crypt-SSLeay-0.72-10/blib/arch/auto/Crypt/SSLeay/SSLeay.so: undefined symbol: SSLv2_client_method at /usr/lib64/perl5/DynaLoader.pm line 193.
 at /root/.cpan/build/Crypt-SSLeay-0.72-10/blib/lib/Crypt/SSLeay/Version.pm line 2.
Compilation failed in require at /root/.cpan/build/Crypt-SSLeay-0.72-10/blib/lib/Crypt/SSLeay/Version.pm line 2.
Compilation failed in require at t/03-version.t line 14.
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: 512 Tests: 13 Failed: 7)
  Failed tests:  1-5, 7-8
  Non-zero exit status: 2
  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,  0 wallclock secs ( 0.04 usr  0.01 sys +  0.47 cusr  0.08 csys =  0.60 CPU)
Result: FAIL
Failed 3/6 test programs. 7/22 subtests failed.
make: *** [Makefile:1093: test_dynamic] Error 255
  NANIS/Crypt-SSLeay-0.72.tar.gz
  /usr/bin/make test -- NOT OK
//hint// to see the cpan-testers results for installing this module, try:
  reports NANIS/Crypt-SSLeay-0.72.tar.gz
[root@R8-3 opt]# cpan Crypt::SSLeay
Loading internal null logger. Install Log::Log4perl for logging messages
Reading '/root/.cpan/Metadata'
  Database was generated on Mon, 22 Nov 2021 08:17:03 GMT
Running install for module 'Crypt::SSLeay'
CPAN: Digest::SHA loaded ok (v6.02)
CPAN: Compress::Zlib loaded ok (v2.081)
Checksum for /root/.cpan/sources/authors/id/N/NA/NANIS/Crypt-SSLeay-0.72.tar.gz ok
'YAML' not installed, will not store persistent state
CPAN: CPAN::Meta::Requirements loaded ok (v2.140)
CPAN: Parse::CPAN::Meta loaded ok (v2.150010)
CPAN: CPAN::Meta loaded ok (v2.150010)
CPAN: Module::CoreList loaded ok (v5.20181130)
Configuring N/NA/NANIS/Crypt-SSLeay-0.72.tar.gz with Makefile.PL

    *** THIS IS NOT AN ERROR, JUST A MESSAGE FOR YOUR INFORMATION ***

    Do you really need Crypt::SSLeay?

    Starting with version 6.02 of LWP, https support was unbundled into
    LWP::Protocol::https. This module specifies as one of its prerequisites
    IO::Socket::SSL which is automatically used by LWP::UserAgent unless
    this preference is overridden separately. IO::Socket::SSL is a more
    complete implementation, and, crucially, it allows hostname
    verification. Crypt::SSLeay does not support this. At this point,
    Crypt::SSLeay is maintained to support existing software that already
    depends on it.

    However, it is possible that your software does not really depend on
    Crypt::SSLeay, only on the ability of LWP::UserAgent class to
    communicate with sites over SSL/TLS.

    If are using version LWP 6.02 or later, and therefore have installed
    LWP::Protocol::https and its dependencies, and do not explicitly use
    Net::SSL before loading LWP::UserAgent, or override the default socket
    class, you are probably using IO::Socket::SSL and do not really need
    Crypt::SSLeay.

    Before installing Crypt::SSLeay, you may want to try specifying a
    dependency on LWP::Protocol::https.

================================================================================
Output from '/root/.cpan/build/Crypt-SSLeay-0.72-12/openssl-version':
OpenSSL 1.1.1k  FIPS 25 Mar 2021
101010bf
================================================================================
Checking if your kit is complete...
Looks good
Warning (mostly harmless): No library found for -lssl32
Warning (mostly harmless): No library found for -lssleay32
Warning (mostly harmless): No library found for -leay32
Warning (mostly harmless): No library found for -llibeay32
Generating a Unix-style Makefile
Writing Makefile for Crypt::SSLeay
Writing MYMETA.yml and MYMETA.json
  NANIS/Crypt-SSLeay-0.72.tar.gz
  /usr/bin/perl Makefile.PL -- OK
Running make for N/NA/NANIS/Crypt-SSLeay-0.72.tar.gz
cp lib/Crypt/SSLeay/MainContext.pm blib/lib/Crypt/SSLeay/MainContext.pm
cp lib/Crypt/SSLeay/Err.pm blib/lib/Crypt/SSLeay/Err.pm
cp SSLeay.pm blib/lib/Crypt/SSLeay.pm
cp lib/Crypt/SSLeay/X509.pm blib/lib/Crypt/SSLeay/X509.pm
cp lib/Crypt/SSLeay/CTX.pm blib/lib/Crypt/SSLeay/CTX.pm
cp lib/Crypt/SSLeay/Conn.pm blib/lib/Crypt/SSLeay/Conn.pm
cp lib/Net/SSL.pm blib/lib/Net/SSL.pm
cp lib/Crypt/SSLeay/Version.pm blib/lib/Crypt/SSLeay/Version.pm
Running Mkbootstrap for SSLeay ()
chmod 644 "SSLeay.bs"
"/usr/bin/perl" -MExtUtils::Command::MM -e 'cp_nonempty' -- SSLeay.bs blib/arch/auto/Crypt/SSLeay/SSLeay.bs 644
"/usr/bin/perl" "/usr/share/perl5/vendor_perl/ExtUtils/xsubpp"  -typemap '/usr/share/perl5/ExtUtils/typemap' -typemap '/root/.cpan/build/Crypt-SSLeay-0.72-12/typemap'  SSLeay.xs > SSLeay.xsc
mv SSLeay.xsc SSLeay.c
gcc -c   -D_REENTRANT -D_GNU_SOURCE -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fwrapv -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -g   -DVERSION=\"0.72\" -DXS_VERSION=\"0.72\" -fPIC "-I/usr/lib64/perl5/CORE"   SSLeay.c
SSLeay.xs: In function ‘XS_Crypt__SSLeay__CTX_new’:
SSLeay.xs:152:31: warning: implicit declaration of function ‘SSLv3_client_method’; did you mean ‘SSLv23_client_method’? [-Wimplicit-function-declaration]
             ctx = SSL_CTX_new(SSLv3_client_method());
                               ^~~~~~~~~~~~~~~~~~~
                               SSLv23_client_method
SSLeay.xs:152:31: warning: passing argument 1 of ‘SSL_CTX_new’ makes pointer from integer without a cast [-Wint-conversion]
             ctx = SSL_CTX_new(SSLv3_client_method());
                               ^~~~~~~~~~~~~~~~~~~~~
In file included from SSLeay.xs:35:
/usr/include/openssl/ssl.h:1508:17: note: expected ‘const SSL_METHOD *’ {aka ‘const struct ssl_method_st *’} but argument is of type ‘int’
 __owur SSL_CTX *SSL_CTX_new(const SSL_METHOD *meth);
                 ^~~~~~~~~~~
SSLeay.xs:157:31: warning: implicit declaration of function ‘SSLv2_client_method’; did you mean ‘SSLv23_client_method’? [-Wimplicit-function-declaration]
             ctx = SSL_CTX_new(SSLv2_client_method());
                               ^~~~~~~~~~~~~~~~~~~
                               SSLv23_client_method
SSLeay.xs:157:31: warning: passing argument 1 of ‘SSL_CTX_new’ makes pointer from integer without a cast [-Wint-conversion]
             ctx = SSL_CTX_new(SSLv2_client_method());
                               ^~~~~~~~~~~~~~~~~~~~~
In file included from SSLeay.xs:35:
/usr/include/openssl/ssl.h:1508:17: note: expected ‘const SSL_METHOD *’ {aka ‘const struct ssl_method_st *’} but argument is of type ‘int’
 __owur SSL_CTX *SSL_CTX_new(const SSL_METHOD *meth);
                 ^~~~~~~~~~~
SSLeay.c:280:6: warning: unused variable ‘packname’ [-Wunused-variable]
  SV* packname = ST(0)
      ^~~~~~~~
SSLeay.c: In function ‘XS_Crypt__SSLeay__Conn_new’:
SSLeay.c:586:6: warning: unused variable ‘packname’ [-Wunused-variable]
  SV* packname = ST(0)
      ^~~~~~~~
In file included from /usr/lib64/perl5/CORE/perl.h:5589,
                 from SSLeay.xs:13:
SSLeay.c: In function ‘XS_Crypt__SSLeay__CTX_use_pkcs12_file’:
/usr/lib64/perl5/CORE/pp.h:359:12: warning: ‘RETVAL’ may be used uninitialized in this function [-Wmaybe-uninitialized]
         IV TARGi_iv = i;                                                \
            ^~~~~~~~
SSLeay.c:475:6: note: ‘RETVAL’ was declared here
  int RETVAL;
      ^~~~~~
rm -f blib/arch/auto/Crypt/SSLeay/SSLeay.so
gcc  -lpthread -shared -Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -L/usr/local/lib -fstack-protector-strong  SSLeay.o  -o blib/arch/auto/Crypt/SSLeay/SSLeay.so  \
   -lssl -lcrypto -lz -lperl   \
  
chmod 755 blib/arch/auto/Crypt/SSLeay/SSLeay.so
Manifying 3 pod documents
  NANIS/Crypt-SSLeay-0.72.tar.gz
  /usr/bin/make -- OK
Running make test
"/usr/bin/perl" -MExtUtils::Command::MM -e 'cp_nonempty' -- SSLeay.bs blib/arch/auto/Crypt/SSLeay/SSLeay.bs 644
PERL_DL_NONLAZY=1 "/usr/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 '/root/.cpan/build/Crypt-SSLeay-0.72-12/blib/arch/auto/Crypt/SSLeay/SSLeay.so' for module Crypt::SSLeay: /root/.cpan/build/Crypt-SSLeay-0.72-12/blib/arch/auto/Crypt/SSLeay/SSLeay.so: undefined symbol: SSLv2_client_method at /usr/lib64/perl5/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 /root/.cpan/build/Crypt-SSLeay-0.72-12/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 /root/.cpan/build/Crypt-SSLeay-0.72-12/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 /root/.cpan/build/Crypt-SSLeay-0.72-12/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 /root/.cpan/build/Crypt-SSLeay-0.72-12/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 /root/.cpan/build/Crypt-SSLeay-0.72-12/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 /root/.cpan/build/Crypt-SSLeay-0.72-12/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.
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 2 just after 13.
t/00-basic.t ..... Dubious, test returned 2 (wstat 512, 0x200)
Failed 7/13 subtests 
        (less 5 skipped subtests: 1 okay)
t/01-connect.t ... Can't load '/root/.cpan/build/Crypt-SSLeay-0.72-12/blib/arch/auto/Crypt/SSLeay/SSLeay.so' for module Crypt::SSLeay: /root/.cpan/build/Crypt-SSLeay-0.72-12/blib/arch/auto/Crypt/SSLeay/SSLeay.so: undefined symbol: SSLv2_client_method at /usr/lib64/perl5/DynaLoader.pm line 193.
 at /root/.cpan/build/Crypt-SSLeay-0.72-12/blib/lib/Net/SSL.pm line 20.
Compilation failed in require at /root/.cpan/build/Crypt-SSLeay-0.72-12/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 linux
# network_tests : 0
t/02-live.t ...... skipped: Network tests disabled
t/03-version.t ... Can't load '/root/.cpan/build/Crypt-SSLeay-0.72-12/blib/arch/auto/Crypt/SSLeay/SSLeay.so' for module Crypt::SSLeay: /root/.cpan/build/Crypt-SSLeay-0.72-12/blib/arch/auto/Crypt/SSLeay/SSLeay.so: undefined symbol: SSLv2_client_method at /usr/lib64/perl5/DynaLoader.pm line 193.
 at /root/.cpan/build/Crypt-SSLeay-0.72-12/blib/lib/Crypt/SSLeay/Version.pm line 2.
Compilation failed in require at /root/.cpan/build/Crypt-SSLeay-0.72-12/blib/lib/Crypt/SSLeay/Version.pm line 2.
Compilation failed in require at t/03-version.t line 14.
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: 512 Tests: 13 Failed: 7)
  Failed tests:  1-5, 7-8
  Non-zero exit status: 2
  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,  1 wallclock secs ( 0.04 usr  0.01 sys +  0.63 cusr  0.09 csys =  0.77 CPU)
Result: FAIL
Failed 3/6 test programs. 7/22 subtests failed.
make: *** [Makefile:1093: test_dynamic] Error 255
  NANIS/Crypt-SSLeay-0.72.tar.gz
  /usr/bin/make test -- NOT OK
//hint// to see the cpan-testers results for installing this module, try:
  reports NANIS/Crypt-SSLeay-0.72.tar.gz
[root@R8-3 opt]#
my flag
cpanminus is often easier to deal with than the original cpan command. In this case, I doubt that will fix this. If you can find somebody that has already packaged this that would be the best bet. https://centos.pkgs.org/8/ghettoforge-x86_64/perl-Crypt-SSLeay-0.73_07-1.gf.el8.x86_64.rpm.html. Save a copy of the package for later.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.