Subject: | 'make test' failure on Solaris 10 |
Installation of Crypt::SSLeay v0.58_01 fails on 'make test':
# make test
PERL_DL_NONLAZY=1 /usr/local/bin/perl "-MExtUtils::Command::MM" "-
e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/00-basic......1/12
# Failed test 'use Crypt::SSLeay;'
# in t/00-basic.t at line 6.
# Tried to use 'Crypt::SSLeay'.
# Error: Can't load '/.cpan/build/Crypt-SSLeay-
0.58_01/blib/arch/auto/Crypt/SSLeay/SSLeay.so' for module
Crypt::SSLeay: ld.so.1: perl: fatal: libssl.so.0.9.8: open failed: No
such file or directory at /usr/local/lib/perl5/5.8.8/i86pc-
solaris/DynaLoader.pm line 230.
# at (eval 3) line 2
# Compilation failed in require at (eval 3) line 2.
# BEGIN failed--compilation aborted at t/00-basic.t line 6.
I've verified that ld.so.1 and libssl.so.0.9.8 exist. I'm attempting
the installation as root.
Perl is v5.8.8; Solaris is v5.10 on Intel hardware.
Screen capture of the build process is attached. Let me know if you
need more info!
Dave
Subject: | Crypt-SSLeay_issue.txt |
# uname -a
SunOS qaewds02 5.10 Generic_138889-07 i86pc i386 i86pc
# cat /etc/release
Solaris 10 10/08 s10x_u6wos_07b X86
Copyright 2008 Sun Microsystems, Inc. All Rights Reserved.
Use is subject to license terms.
Assembled 27 October 2008
# /usr/local/bin/perl -v
This is perl, v5.8.8 built for i86pc-solaris
Copyright 1987-2006, Larry Wall
Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.
Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl". If you have access to the
Internet, point your browser at http://www.perl.org/, the Perl Home Page.
# which make
/usr/ccs/bin/make
#
# /usr/local/bin/perl Makefile.PL
=======================================================
Only one OpenSSL installation found at /usr/local/ssl
Consider running 'perl Makefile.PL --default' the next
time Crypt::SSLeay is upgraded to select this directory
automatically thereby avoiding the following prompt.
=======================================================
Which SSL install path do you want to use? [/usr/local/ssl]
BUILD INFORMATION
================================================
ssl library: OpenSSL 0.9.8o in /usr/local/ssl
ssl header: openssl/ssl.h
libraries: -L/usr/local/ssl/lib -lssl -lcrypto -lgcc
include dir: -I/usr/local/ssl/include
================================================
Checking if your kit is complete...
Looks good
Note (probably harmless): No library found for -lgcc
Writing Makefile for Crypt::SSLeay
The test suite can attempt to connect to public servers
to ensure that the code is working properly. If you are
behind a strict firewall or have no network connectivity,
these tests may fail (through no fault of the code).
Do you want to run the live tests (y/N)? [N] y
# make
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/Conn.pm blib/lib/Crypt/SSLeay/Conn.pm
cp lib/Crypt/SSLeay/CTX.pm blib/lib/Crypt/SSLeay/CTX.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/local/bin/perl /usr/local/lib/perl5/5.8.8/ExtUtils/xsubpp -typemap /usr/local/lib/perl5/5.8.8/ExtUtils/typemap -typemap typemap SSLeay.xs > SSLeay.xsc && mv SSLeay.xsc SSLeay.c
gcc -c -I/usr/local/ssl/include -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O -DVERSION=\"0.58_01\" -DXS_VERSION=\"0.58_01\" -fPIC "-I/usr/local/lib/perl5/5.8.8/i86pc-solaris/CORE" SSLeay.c
Running Mkbootstrap for Crypt::SSLeay ()
chmod 644 SSLeay.bs
rm -f blib/arch/auto/Crypt/SSLeay/SSLeay.so
LD_RUN_PATH="/usr/local/ssl/lib" gcc -G -L/usr/local/lib SSLeay.o -o blib/arch/auto/Crypt/SSLeay/SSLeay.so \
-L/usr/local/ssl/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
Manifying blib/man3/Net::SSL.3
Manifying blib/man3/Crypt::SSLeay.3
# make test
PERL_DL_NONLAZY=1 /usr/local/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/00-basic......1/12
# Failed test 'use Crypt::SSLeay;'
# in t/00-basic.t at line 6.
# Tried to use 'Crypt::SSLeay'.
# Error: Can't load '/.cpan/build/Crypt-SSLeay-0.58_01/blib/arch/auto/Crypt/SSLeay/SSLeay.so' for module Crypt::SSLeay: ld.so.1: perl: fatal: libssl.so.0.9.8: open failed: No such file or directory at /usr/local/lib/perl5/5.8.8/i86pc-solaris/DynaLoader.pm line 230.
# at (eval 3) line 2
# Compilation failed in require at (eval 3) line 2.
# BEGIN failed--compilation aborted at t/00-basic.t line 6.
# Failed test 'use Crypt::SSLeay::MainContext;'
# in t/00-basic.t at line 10.
# Tried to use 'Crypt::SSLeay::MainContext'.
# Error: Can't locate object method "new" via package "Crypt::SSLeay::CTX" at /.cpan/build/Crypt-SSLeay-0.58_01/blib/lib/Crypt/SSLeay/MainContext.pm line 15.
# Compilation failed in require at (eval 7) line 2.
# BEGIN failed--compilation aborted at t/00-basic.t line 10.
Undefined subroutine &main::main_ctx called at t/00-basic.t line 36.
# Looks like you planned 12 tests but only ran 11.
# Looks like you failed 2 tests of 11 run.
# Looks like your test died just after 11.
t/00-basic...... Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 3/12 subtests
(less 2 skipped subtests: 7 okay)
t/01-connect....Can't load '/.cpan/build/Crypt-SSLeay-0.58_01/blib/arch/auto/Crypt/SSLeay/SSLeay.so' for module Crypt::SSLeay: ld.so.1: perl: fatal: libssl.so.0.9.8: open failed: No such file or directory at /usr/local/lib/perl5/5.8.8/i86pc-solaris/DynaLoader.pm line 230.
at /.cpan/build/Crypt-SSLeay-0.58_01/blib/lib/Net/SSL.pm line 19
Compilation failed in require at /.cpan/build/Crypt-SSLeay-0.58_01/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 died before it could output anything.
t/01-connect.... Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 8/8 subtests
t/02-live.......1/4
# Failed test 'use Net::SSL;'
# in t/02-live.t at line 7.
# Tried to use 'Net::SSL'.
# Error: Can't load '/.cpan/build/Crypt-SSLeay-0.58_01/blib/arch/auto/Crypt/SSLeay/SSLeay.so' for module Crypt::SSLeay: ld.so.1: perl: fatal: libssl.so.0.9.8: open failed: No such file or directory at /usr/local/lib/perl5/5.8.8/i86pc-solaris/DynaLoader.pm line 230.
# at /.cpan/build/Crypt-SSLeay-0.58_01/blib/lib/Net/SSL.pm line 19
# Compilation failed in require at /.cpan/build/Crypt-SSLeay-0.58_01/blib/lib/Net/SSL.pm line 19.
# Compilation failed in require at (eval 3) line 2.
# BEGIN failed--compilation aborted at t/02-live.t line 7.
# config on solaris
# ssl OpenSSL 0.9.8o in /usr/local/ssl;
# lib -L/usr/local/ssl/lib -lssl -lcrypto -lgcc
# inc -I/usr/local/ssl/include
# cc gcc
# Failed test 'connect through proxy - untrapped error'
# in t/02-live.t at line 69.
# Can't locate object method "new" via package "Crypt::SSLeay::CTX" at /.cpan/build/Crypt-SSLeay-0.58_01/blib/lib/Crypt/SSLeay/MainContext.pm line 15.
# Compilation failed in require at /.cpan/build/Crypt-SSLeay-0.58_01/blib/lib/Net/SSL.pm line 22.
# Failed test 'HEAD https://rt.cpan.org/'
# in t/02-live.t at line 120.
# HTTP status = 500 Can't locate object method "new" via package "Crypt::SSLeay::CTX"
# This may not be the fault of the module, https://rt.cpan.org/ may be down
# Looks like you failed 3 tests of 4.
t/02-live....... Dubious, test returned 3 (wstat 768, 0x300)
Failed 3/4 subtests
(less 1 skipped subtest: 0 okay)
Test Summary Report
-------------------
t/00-basic (Wstat: 65280 Tests: 11 Failed: 2)
Failed tests: 1, 5
Non-zero exit status: 255
Parse errors: Bad plan. You planned 12 tests but ran 11.
t/01-connect (Wstat: 65280 Tests: 0 Failed: 0)
Non-zero exit status: 255
Parse errors: Bad plan. You planned 8 tests but ran 0.
t/02-live (Wstat: 768 Tests: 4 Failed: 3)
Failed tests: 1-2, 4
Non-zero exit status: 3
Files=3, Tests=15, 0 wallclock secs ( 0.01 usr 0.01 sys + 0.23 cusr 0.04 csys = 0.29 CPU)
Result: FAIL
Failed 3/3 test programs. 5/15 subtests failed.
*** Error code 29
make: Fatal error: Command failed for target `test_dynamic'
#