awohld has asked for the wisdom of the Perl Monks concerning the following question:

I'm trying to install Crypt::SSLeay in a server with Perl 5.8.8 and OpenSSL 0.9.8a.

It's failing with this error:
cpan> test Crypt::SSLeay Running test for module Crypt::SSLeay Running make for C/CH/CHAMAS/Crypt-SSLeay-0.51.tar.gz Is already unwrapped into directory /root/.cpan/build/Crypt-SSLeay-0 +.51 Has already been processed within this session Running make test PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_h +arness(0, 'blib/lib', 'blib/arch')" t/*.t t/net_ssl........dubious Test returned status 0 (wstat 11, 0xb) t/ssl_context....dubious Test returned status 0 (wstat 11, 0xb) FAILED--2 test scripts could be run, alas--no output ever seen make: *** [test_dynamic] Error 255 /usr/bin/make test -- NOT OK Failed during this command: CHAMAS/Crypt-SSLeay-0.51.tar.gz : make_test NO


What's up with this?

UPDATE:I'm getting these errors with OpenSSL 0.9.8a, but with OpenSSL 0.9.7g it all works. I think Crypt::SSLeay isn't updated to OpenSSL 0.9.8a as indicated in Crypt::SSLeay's documentation.

Replies are listed 'Best First'.
Re: Make Test of Crypt::SSLeay Failing
by zentara (Cardinal) on Apr 24, 2006 at 20:44 UTC
    It's working for me here, on linux. Those t scripts only connect to 127.0.0.1 , so they should work. Maybe your network configuration dosn't have a route setup to 127.0.0.1 ? If you run "ifconfig" as root, do you have an entry for "lo' which shows 127.0.0.1 as the INET address?

    There is a lwp-ssl-test script in the toplevel dir of the module, it should give good output if you are online.


    I'm not really a human, but I play one on earth. flash japh
      I do have lo as 127.0.0.1 and I can force install it

      When I run the "lwp-ssl-test" I get a Segmentation Fault.

      Here's the output of STRACE:
      stat64("lib/Crypt/SSLeay/MainContext.pm", {st_mode=S_IFREG|0644, st_si +ze=1187, ...}) = 0 open("lib/Crypt/SSLeay/MainContext.pm", O_RDONLY|O_LARGEFILE) = 3 ioctl(3, SNDCTL_TMR_TIMEBASE or TCGETS, 0xbfd0f318) = -1 ENOTTY (Inapp +ropriate ioctl for device) _llseek(3, 0, [0], SEEK_CUR) = 0 read(3, "package Crypt::SSLeay::MainConte"..., 4096) = 1187 read(3, "", 4096) = 0 close(3) = 0 stat64("lib/Crypt/SSLeay/CTX.pmc", 0xbfd0f60c) = -1 ENOENT (No such fi +le or directory) stat64("lib/Crypt/SSLeay/CTX.pm", {st_mode=S_IFREG|0644, st_size=54, . +..}) = 0 open("lib/Crypt/SSLeay/CTX.pm", O_RDONLY|O_LARGEFILE) = 3 ioctl(3, SNDCTL_TMR_TIMEBASE or TCGETS, 0xbfd0f318) = -1 ENOTTY (Inapp +ropriate ioctl for device) _llseek(3, 0, [0], SEEK_CUR) = 0 read(3, "package Crypt::SSLeay::CTX;\nrequ"..., 4096) = 54 read(3, "", 4096) = 0 close(3) = 0 open("/usr/share/locale/locale.alias", O_RDONLY) = 3 fstat64(3, {st_mode=S_IFREG|0644, st_size=2528, ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, + 0) = 0xb7ce9000 read(3, "# Locale name alias data base.\n#"..., 4096) = 2528 read(3, "", 4096) = 0 close(3) = 0 munmap(0xb7ce9000, 4096) = 0 open("/usr/share/locale/en_US.UTF-8/LC_MESSAGES/libc.mo", O_RDONLY) = +-1 ENOENT (No such file or directory) open("/usr/share/locale/en_US.utf8/LC_MESSAGES/libc.mo", O_RDONLY) = - +1 ENOENT (No such file or directory) open("/usr/share/locale/en_US/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENO +ENT (No such file or directory) open("/usr/share/locale/en.UTF-8/LC_MESSAGES/libc.mo", O_RDONLY) = -1 +ENOENT (No such file or directory) open("/usr/share/locale/en.utf8/LC_MESSAGES/libc.mo", O_RDONLY) = -1 E +NOENT (No such file or directory) open("/usr/share/locale/en/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT + (No such file or directory) brk(0x8718000) = 0x8718000 stat64("/dev/urandom", {st_mode=S_IFCHR|0444, st_rdev=makedev(1, 9), . +..}) = 0 open("/dev/urandom", O_RDONLY) = 3 read(3, "\273\2167\37781]\26\7\25-T\n\364>\35\361:/[\21\237\4\217"..., + 1024) = 1024 close(3) = 0 --- SIGSEGV (Segmentation fault) @ 0 (0) --- +++ killed by SIGSEGV +++ Process 11456 detached
      Any idea what's going on?
Re: Make Test of Crypt::SSLeay Failing
by lorn (Monk) on Apr 24, 2006 at 20:39 UTC

    Hi

    I use a method, not good, but pratical hehe, but work, try this:
    cpan> force install Crypt::SSLeay

    Lorn
    -http://lornlab.no-ip.com-
    -www.slackwarezine.com.br-

      I did that but I'm having more errors realted to SSL'ed LWP sessions. See the reply below.