Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Crypt-OpenSSL-X509 CPAN distribution.

Report information
The Basics
Id: 28684
Status: resolved
Priority: 0/
Queue: Crypt-OpenSSL-X509

People
Owner: Nobody in particular
Requestors: alex.peeters [...] citap.be
Cc:
AdminCc:

Bug Information
Severity: Critical
Broken in:
  • 0.3
  • 0.3.1
  • 0.4
  • 0.4.1
  • 0.5
Fixed in: (no value)



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 :)
From: DANIEL [...] cpan.org
Show quoted text
> cc_lib_paths('/opt/supervision/ssl/lib');
That path is very specific to your installation. Pass LIB=/opt/supervision/ssl/lib to Makefile.PL
From: alex.peeters [...] citap.be
Show quoted text
> That path is very specific to your installation.
That is not the problem. Default path linux /usr/local/ssl/include/ /usr/local/ssl/lib/ Default path solaris /usr/local/include/ssl /usr/local/lib/ssl and then cc_lib_links('crypto'); also don't works but cc_lib_paths('/usr/local/include/ssl'); cc_lib_links('crypto'); works because gcc needs LIBS='-L/usr/local/include/ssl -lcrypto' and without cc_lib_paths LIBS='-lcrypto' And in both cases everyone should be able rto specify this own openssl version because otherwise when we do one automatically openssl update for ssh, we can brake Crypt::OpenSSL::X509. Problems is that Makefile.PL don't ask for the location of openssl fir the include en lib patch like other perl cpan modules.
When you refuce someting, be sure that you are at the right end. YOU have a problem on Solaris 8, 9 & 10 systems when you want to do perl -MCPAN -e 'install Crypt::OpenSSL::X509' and with my information it should be possible to fix this. When it is not clear, ask for more information instead of refusing it.
Fixed in 0.6