Subject: | Failed test 'use Crypt::OpenSSL::X509;' |
Crypt-OpenSSL-X509 version < 0.5 for Solaris 9:
perl Makefile.PL INC=-I/opt/supervision/ssl/include
make
gcc -c -I/opt/supervision/ssl/include -fno-strict-aliasing -pipe
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -g -Wall
-DVERSION=\"0.5\" -DXS_VERSION=\"0.5\" -fPIC
"-I/usr/local/lib/perl5/5.8.7/sun4-solaris/CORE" X509.c
X509.xs: In function `XS_Crypt__OpenSSL__X509_as_string':
X509.xs:302: warning: passing arg 1 of `ASN1_i2d_bio' from incompatible
pointer type
Running Mkbootstrap for Crypt::OpenSSL::X509 ()
chmod 644 X509.bs
rm -f blib/arch/auto/Crypt/OpenSSL/X509/X509.so
gcc -G -L/usr/local/lib X509.o -o
blib/arch/auto/Crypt/OpenSSL/X509/X509.so \
chmod 755 blib/arch/auto/Crypt/OpenSSL/X509/X509.so
cp X509.bs blib/arch/auto/Crypt/OpenSSL/X509/X509.bs
chmod 644 blib/arch/auto/Crypt/OpenSSL/X509/X509.bs
Manifying blib/man3/Crypt::OpenSSL::X509.3
make test
PERL_DL_NONLAZY=1 /usr/local/bin/perl "-MExtUtils::Command::MM" "-e"
"test_harness(0, 'inc', 'blib/lib', 'blib/arch')" t/pod.t t/x509.t
t/pod.....ok
t/x509....
# Failed test 'use Crypt::OpenSSL::X509;'
# at t/x509.t line 4.
# Tried to use 'Crypt::OpenSSL::X509'.
# Error: Can't load
'/export/home/nagios/.cpan/build/Crypt-OpenSSL-X509-0.5-DKjGGg/blib/arch/auto/Crypt/OpenSSL/X509/X509.so'
for module Crypt::OpenSSL::X509: ld.so.1: perl: fatal: relocation error:
file
/export/home/nagios/.cpan/build/Crypt-OpenSSL-X509-0.5-DKjGGg/blib/arch/auto/Crypt/OpenSSL/X509/X509.so:
symbol i2d_ASN1_HEADER: referenced symbol not found at
/usr/local/lib/perl5/5.8.7/sun4-solaris/DynaLoader.pm line 230.
# at
/export/home/nagios/.cpan/build/Crypt-OpenSSL-X509-0.5-DKjGGg/blib/lib/Crypt/OpenSSL/X509.pm
line 21
# Compilation failed in require at (eval 3) line 2.
# BEGIN failed--compilation aborted at t/x509.t line 4.
Can't locate object method "new_from_file" via package
"Crypt::OpenSSL::X509" at t/x509.t line 6.
# Looks like you planned 9 tests but only ran 1.
# Looks like you failed 1 test of 1 run.
# Looks like your test died just after 1.
t/x509....dubious
Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 1-9
Failed 9/9 tests, 0.00% okay
Failed Test Stat Wstat Total Fail List of Failed
-------------------------------------------------------------------------------
t/x509.t 255 65280 9 17 1-9
Failed 1/2 test scripts. 9/10 subtests failed.
Files=2, Tests=10, 1 wallclock secs ( 0.20 cusr + 0.05 csys = 0.25 CPU)
Failed 1/2 test programs. 9/10 subtests failed.
make: *** [test_dynamic] Error 255
Workarround:
------------
change Makefile.PL
Makefile.PL
# $Id: Makefile.PL 10 1998-12-16 23:02:45Z daniel $
use inc::Module::Install;
name('Crypt-OpenSSL-X509');
license('perl');
perl_version('5.005');
all_from('X509.pm');
cc_lib_links('crypto');
cc_optimize_flags('-g -Wall');
auto_install();
WriteAll();
with:
Makefile.PL
# $Id: Makefile.PL 10 1998-12-16 23:02:45Z daniel $
use inc::Module::Install;
name('Crypt-OpenSSL-X509');
license('perl');
perl_version('5.005');
all_from('X509.pm');
cc_lib_paths('/opt/supervision/ssl/lib');
cc_lib_links('crypto');
cc_optimize_flags('-g -Wall');
auto_install();
WriteAll();
Wanted:
-------
FIX for solaris 9 :)