Hi all I'm trying to install Crypt-SSLeay on a debian system. If I try to install with the command
apt-get install libcrypt-ssleay-perl This fails with a message as follows; The following packages have unmet dependencies: libcrypt-ssleay-perl : Depends: perlapi-5.10.0 I'm running perl 5.14.2 and I can't revert to 5.10 easily. If I use CPAN or install from source, then make test fails the output is below; Any input greatly appreciated. make test cp lib/Crypt/SSLeay/X509.pm blib/lib/Crypt/SSLeay/X509.pm cp lib/Net/SSL.pm blib/lib/Net/SSL.pm cp SSLeay.pm blib/lib/Crypt/SSLeay.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/Crypt/SSLeay/MainContext.pm blib/lib/Crypt/SSLeay/MainContext.pm cp lib/Crypt/SSLeay/Err.pm blib/lib/Crypt/SSLeay/Err.pm /usr/bin/perl /usr/local/share/perl/5.14.2/ExtUtils/xsubpp -typemap /usr/share/perl/5.14/ExtUtils/typemap -typemap typemap SSLeay.xs > SSLeay.xsc && mv SSLeay.xsc SSLeay.c cc -c -I/usr/include -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g -DVERSION=\"0.58\" -DXS_VERSION=\"0.58\" -fPIC "-I/usr/lib/perl/5.14/CORE" SSLeay.c SSLeay.xs: In function ‘XS_Crypt__SSLeay__CTX_new’: SSLeay.xs:133:13: warning: passing argument 1 of ‘SSL_CTX_new’ makes pointer from integer without a cast [enabled by default] /usr/include/openssl/ssl.h:1469:10: note: expected ‘const struct SSL_METHOD *’ but argument is of type ‘int’ Running Mkbootstrap for Crypt::SSLeay () chmod 644 SSLeay.bs rm -f blib/arch/auto/Crypt/SSLeay/SSLeay.so LD_RUN_PATH="/usr/lib" cc -shared -O2 -g -L/usr/local/lib -fstack-protector SSLeay.o -o blib/arch/auto/Crypt/SSLeay/SSLeay.so \ -L/usr/lib -lssl -lcrypto \ chmod 755 blib/arch/auto/Crypt/SSLeay/SSLeay.so cp SSLeay.bs blib/arch/auto/Crypt/SSLeay/SSLeay.bs chmod 644 blib/arch/auto/Crypt/SSLeay/SSLeay.bs PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/00-basic.t .... 1/12 # Failed test 'use Crypt::SSLeay;' # at t/00-basic.t line 6. # Tried to use 'Crypt::SSLeay'. # Error: Can't load '/root/Crypt-SSLeay-0.58/blib/arch/auto/Crypt/SSLeay/SSLeay.so' for module Crypt::SSLeay: /root/Crypt-SSLeay-0.58/blib/arch/auto/Crypt/SSLeay/SSLeay.so: undefined symbol: SSLv2_client_method at /usr/local/lib/perl/5.14.2/DynaLoader.pm line 184. # at (eval 4) line 2. # Compilation failed in require at (eval 4) line 2. # BEGIN failed--compilation aborted at (eval 4) line 2. # 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/Crypt-SSLeay-0.58/blib/lib/Crypt/SSLeay/CTX.pm line 2. # Compilation failed in require at (eval 5) line 2. # BEGIN failed--compilation aborted at (eval 5) line 2. # 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/Crypt-SSLeay-0.58/blib/lib/Crypt/SSLeay/Conn.pm line 2. # Compilation failed in require at (eval 6) line 2. # BEGIN failed--compilation aborted at (eval 6) line 2. # 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/Crypt-SSLeay-0.58/blib/lib/Crypt/SSLeay/Err.pm line 2. # Compilation failed in require at (eval 7) line 2. # BEGIN failed--compilation aborted at (eval 7) line 2. # 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/Crypt-SSLeay-0.58/blib/lib/Crypt/SSLeay/MainContext.pm line 8. # Compilation failed in require at (eval 8) line 2. # BEGIN failed--compilation aborted at (eval 8) line 2. # Failed test 'use Net::SSL;' # at t/00-basic.t line 12. # Tried to use 'Net::SSL'. # Error: Attempt to reload Crypt/SSLeay.pm aborted. # Compilation failed in require at /root/Crypt-SSLeay-0.58/blib/lib/Net/SSL.pm line 19. # Compilation failed in require at (eval 10) line 2. # BEGIN failed--compilation aborted at (eval 10) line 2. Undefined subroutine &main::main_ctx called at t/00-basic.t line 36. # Looks like you planned 12 tests but ran 11. # Looks like you failed 6 tests of 11 run. # Looks like your test exited with 255 just after 11. t/00-basic.t .... Dubious, test returned 255 (wstat 65280, 0xff00) Failed 7/12 subtests t/01-connect.t .. Can't load '/root/Crypt-SSLeay-0.58/blib/arch/auto/Crypt/SSLeay/SSLeay.so' for module Crypt::SSLeay: /root/Crypt-SSLeay-0.58/blib/arch/auto/Crypt/SSLeay/SSLeay.so: undefined symbol: SSLv2_client_method at /usr/local/lib/perl/5.14.2/DynaLoader.pm line 184. at /root/Crypt-SSLeay-0.58/blib/lib/Net/SSL.pm line 19. Compilation failed in require at /root/Crypt-SSLeay-0.58/blib/lib/Net/SSL.pm line 19. Compilation failed in require at t/01-connect.t line 4. BEGIN failed--compilation aborted at t/01-connect.t line 4. # 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 ..... 1/4 # Failed test 'use Net::SSL;' # at t/02-live.t line 7. # Tried to use 'Net::SSL'. # Error: Can't load '/root/Crypt-SSLeay-0.58/blib/arch/auto/Crypt/SSLeay/SSLeay.so' for module Crypt::SSLeay: /root/Crypt-SSLeay-0.58/blib/arch/auto/Crypt/SSLeay/SSLeay.so: undefined symbol: SSLv2_client_method at /usr/local/lib/perl/5.14.2/DynaLoader.pm line 184. # at /root/Crypt-SSLeay-0.58/blib/lib/Net/SSL.pm line 19. # Compilation failed in require at /root/Crypt-SSLeay-0.58/blib/lib/Net/SSL.pm line 19. # Compilation failed in require at (eval 4) line 2. # BEGIN failed--compilation aborted at (eval 4) line 2. # config on linux # ssl OpenSSL 1.0.0e in /usr; # lib -L/usr/lib -lssl -lcrypto -lgcc # inc -I/usr/include # cc cc # Looks like you failed 1 test of 4. t/02-live.t ..... Dubious, test returned 1 (wstat 256, 0x100) Failed 1/4 subtests (less 1 skipped subtest: 2 okay) Test Summary Report ------------------- t/00-basic.t (Wstat: 65280 Tests: 11 Failed: 6) Failed tests: 1-5, 7 Non-zero exit status: 255 Parse errors: Bad plan. You planned 12 tests but ran 11. 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/02-live.t (Wstat: 256 Tests: 4 Failed: 1) Failed test: 1 Non-zero exit status: 1 Files=3, Tests=15, 0 wallclock secs ( 0.03 usr 0.11 sys + 0.24 cusr 0.32 csys = 0.70 CPU) Result: FAIL Failed 3/3 test programs. 7/15 subtests failed. make: *** [test_dynamic] Error 1