Subject: | Net::SSLeay again - need guidance |
Date: | Wed, 20 Mar 2013 09:32:57 +0100 |
To: | "mikem [...] open.com.au via RT" <bug-Net-SSLeay [...] rt.cpan.org> |
From: | "H.Merijn Brand" <h.m.brand [...] xs4all.nl> |
I've successfully built and distributed perl-5.16.3 with Net::SSLeay on
HP-UX 11.31, 11.23, 11.11, and 11.00 in both 32 and 64bit builds. That
much for the the good news. Yeah!
I cannot get the tests to pass on HP-UX 10.20 though. I know that OS is
officially dead and gone, but when I look at the downloads from my site
I must conclude the system is still used.
GNU gcc: http://mirrors.develooper.com/hpux/dl-gcc.html
perl: http://mirrors.develooper.com/hpux/dl-perl.html
(I might expand those with OS-version per month to get better insight)
Anyway, back to the problem. Note that this is and old and slow system,
with not a lot of resources (a simple make takes over 5 minutes):
HP-UX 10.20/32 U 9000/800/D390 PA8000/240 pa-2.0 512 Mb
When I link Net::SSLeay with the .a libraries, where the .a objects
are compiled -fPIC:
gcc -c -I/usr/local/ssl/include -mpa-risc-1-1 -DPERL_DONT_CREATE_GVSV
-D_HPUX_SOURCE -fno-strict-aliasing -pipe -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -O2 -g -DVERSION=\"1.52\"
-DXS_VERSION=\"1.52\" -fPIC "-I/opt/perl/lib/5.16.3/PA-RISC2.0/CORE"
SSLeay.c Running Mkbootstrap for Net::SSLeay () chmod 644 SSLeay.bs rm
-f blib/arch/auto/Net/SSLeay/SSLeay.sl
LD_RUN_PATH="/usr/local/ssl/lib:/lib" /usr/bin/ld -b
-L/usr/local/ssl/lib -L/usr/local/lib -L/pro/local/lib SSLeay.o -o
blib/arch/auto/Net/SSLeay/SSLeay.sl \ -L/usr/local/ssl
-L/usr/local/ssl/lib -l:libssl.a -l:libcrypto.a -lz
t/external/08_external.t ............... ok
t/external/15_altnames.t ............... ok
t/handle/external/10_destroy.t ......... ok
t/handle/external/50_external.t ........ ok
t/handle/local/05_use.t ................ ok
t/local/01_pod.t ....................... ok
t/local/02_pod_coverage.t .............. ok
t/local/03_use.t ....................... ok
t/local/04_basic.t ..................... 1/6 # Version info:
# Testing Net::SSLeay 1.52, Perl 5.016003, /opt/perl/bin/perl
# OpenSSL version: 'OpenSSL 0.9.8r 8 Feb 2011'
# OpenSSL platform: 'platform: hpux-parisc-cc'
t/local/04_basic.t ..................... ok
t/local/05_passwd_cb.t ................. ok
t/local/06_tcpecho.t ................... ok
t/local/07_sslecho.t ................... 1/78
# Failed test 'set_cert_and_key'
# at t/local/07_sslecho.t line 62.
t/local/07_sslecho.t ................... 51/78 # Looks like you failed
1 test of 78. t/local/07_sslecho.t ................... Dubious, test
returned 1 (wstat 256, 0x100) Failed 1/78 subtests
t/local/08_pipe.t ...................... 1/11 Use of uninitialized
value in numeric eq (==) at t/local/08_pipe.t line 82.
Hang (I had it hang for 24 hours)
When I build with the shared libraries, I get
gcc -c -I/usr/local/ssl/include -mpa-risc-1-1 -DPERL_DONT_CREATE_GVSV
-D_HPUX_SOURCE -fno-strict-aliasing -pipe -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -O2 -g -DVERSION=\"1.52\"
-DXS_VERSION=\"1.52\" -fPIC "-I/opt/perl/lib/5.16.3/PA-RISC2.0/CORE"
SSLeay.c Running Mkbootstrap for Net::SSLeay () chmod 644 SSLeay.bs rm
-f blib/arch/auto/Net/SSLeay/SSLeay.sl
LD_RUN_PATH="/usr/local/ssl/lib:/lib" /usr/bin/ld -b
-L/usr/local/ssl/lib -L/usr/local/lib -L/pro/local/lib SSLeay.o -o
blib/arch/auto/Net/SSLeay/SSLeay.sl \ -L/usr/local/ssl
-L/usr/local/ssl/lib -lssl -lcrypto -lz
t/external/08_external.t ............... ok
t/external/15_altnames.t ............... ok
t/handle/external/10_destroy.t ......... ok
t/handle/external/50_external.t ........ ok
t/handle/local/05_use.t ................ ok
t/local/01_pod.t ....................... ok
t/local/02_pod_coverage.t .............. ok
t/local/03_use.t ....................... ok
t/local/04_basic.t ..................... 1/6 # Version info:
# Testing Net::SSLeay 1.52, Perl 5.016003, /opt/perl/bin/perl
# OpenSSL version: 'OpenSSL 0.9.8r 8 Feb 2011'
# OpenSSL platform: 'platform: hpux-parisc-cc'
t/local/04_basic.t ..................... ok
t/local/05_passwd_cb.t ................. ok
t/local/06_tcpecho.t ................... ok
t/local/07_sslecho.t ................... 1/78
# Failed test 'set_cert_and_key'
# at t/local/07_sslecho.t line 62.
t/local/07_sslecho.t ................... 51/78 # Looks like you failed 1 test of 78.
t/local/07_sslecho.t ................... Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/78 subtests
t/local/08_pipe.t ...................... ok
t/local/15_bio.t ....................... ok
t/local/20_autoload.t .................. ok
t/local/21_constants.t ................. ok
t/local/30_error.t ..................... ok
t/local/31_rsa_generate_key.t .......... ok
t/local/32_x509_get_cert_info.t ........ ok
t/local/33_x509_create_cert.t .......... ok
t/local/34_x509_crl.t .................. ok
t/local/35_ephemeral.t ................. ok
t/local/36_verify.t .................... ok
t/local/37_asn1_time.t ................. ok
t/local/38_priv-key.t .................. ok
t/local/39_pkcs12.t .................... ok
t/local/40_npn_support.t ............... skipped: openssl 1.0.1 required
t/local/50_digest.t .................... ok
t/local/61_threads-cb-crash.t .......... skipped: your perl is not compiled with ithreads or is pre-5.8
t/local/62_threads-ctx_new-deadlock.t .. skipped: your perl is not compiled with ithreads or is pre-5.8
t/local/kwalitee.t ..................... skipped: Test::Kwalitee not installed; skipping
Test Summary Report
-------------------
t/local/07_sslecho.t (Wstat: 256 Tests: 78 Failed: 1)
Failed test: 3
Non-zero exit status: 1
Files=31, Tests=2597, 812 wallclock secs ( 5.82 usr 0.34 sys + 353.57 cusr 2.24 csys = 361.97 CPU)
Result: FAIL
Failed 1/31 test programs. 1/2597 subtests failed.
(that make test took 16 minutes)
When I use the second version, Crypt::SSLeay-0.64 passes, but
IO::Socket::SSL-1.84 fails beyond the point I am comfortable to ship:
t/01loadmodule.t ........... ok
t/02settings.t ............. ok
t/acceptSSL-timeout.t ...... Dubious, test returned 1 (wstat 256, 0x100)
Failed 10/15 subtests
t/auto_verify_hostname.t ... Failed 16/30 subtests
t/cert_no_file.t ........... Failed 4/9 subtests
t/compatibility.t .......... 1/9 Can't locate object method "issuer_name" via package "IO::Socket::INET" at t/compatibility.t line 53.
t/compatibility.t .......... Failed 6/9 subtests
t/connectSSL-timeout.t ..... Dubious, test returned 1 (wstat 256, 0x100)
Failed 10/16 subtests
t/core.t ................... Failed 47/52 subtests
t/dhe.t .................... Failed 3/3 subtests
t/io-socket-inet6.t ........ skipped: no IO::Socket::INET6 available
t/io-socket-ip.t ........... skipped: no IO::Socket::IP 0.11 available
t/memleak_bad_handshake.t .. skipped: no usable ps
t/nonblock.t ............... Failed 8/27 subtests
t/npn.t .................... skipped: NPN not available in Net::SSLeay
t/readline.t ............... ok
t/sessions.t ............... ok
t/signal-readline.t ........ 1/9 readline() on unopened filehandle 1 at t/signal-readline.t line 50.
Use of uninitialized value $line in string ne at t/signal-readline.t line 51.
Can't use an undefined value as a symbol reference at t/signal-readline.t line 61.
t/signal-readline.t ........ Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 7/9 subtests
t/sni.t .................... skipped: because no client side SNI support - openssl/Net::SSleay too old
t/start-stopssl.t .......... 1/16 not ok #client::start_SSL: SSL connect attempt failed with unknown error
not ok #server::start_SSL: SSL connect accept failed because of handshake problems
t/start-stopssl.t .......... Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 14/16 subtests
t/startssl-failed.t ........ ok
t/startssl.t ............... Failed 5/9 subtests
t/sysread_write.t .......... Failed 8/9 subtests
t/verify_hostname.t ........ 1/43 Can't call method "peer_certificate" without a package or object reference at t/verify_hostname.t line 58.
t/verify_hostname.t ........ Failed 42/43 subtests
Test Summary Report
-------------------
t/acceptSSL-timeout.t (Wstat: 256 Tests: 8 Failed: 3)
Failed tests: 4, 7-8
Non-zero exit status: 1
Parse errors: Bad plan. You planned 15 tests but ran 8.
t/auto_verify_hostname.t (Wstat: 0 Tests: 22 Failed: 8)
Failed tests: 3, 5-6, 8, 12, 16, 18, 22
Parse errors: Bad plan. You planned 30 tests but ran 22.
t/cert_no_file.t (Wstat: 0 Tests: 7 Failed: 2)
Failed tests: 2, 4
Parse errors: Bad plan. You planned 9 tests but ran 7.
t/compatibility.t (Wstat: 0 Tests: 6 Failed: 3)
Failed tests: 2-4
Parse errors: Bad plan. You planned 9 tests but ran 6.
t/connectSSL-timeout.t (Wstat: 256 Tests: 8 Failed: 2)
Failed tests: 7-8
Non-zero exit status: 1
Parse errors: Bad plan. You planned 16 tests but ran 8.
t/core.t (Wstat: 0 Tests: 7 Failed: 2)
Failed tests: 6-7
Parse errors: Bad plan. You planned 52 tests but ran 7.
t/dhe.t (Wstat: 0 Tests: 1 Failed: 1)
Failed test: 1
Parse errors: Bad plan. You planned 3 tests but ran 1.
t/nonblock.t (Wstat: 0 Tests: 27 Failed: 8)
Failed tests: 5-6, 10, 13, 21-22, 24, 26
t/signal-readline.t (Wstat: 65280 Tests: 4 Failed: 2)
Failed tests: 2-3
Non-zero exit status: 255
Parse errors: Bad plan. You planned 9 tests but ran 4.
t/start-stopssl.t (Wstat: 65280 Tests: 2 Failed: 0)
Non-zero exit status: 255
Parse errors: Bad plan. You planned 16 tests but ran 2.
t/startssl.t (Wstat: 0 Tests: 9 Failed: 5)
Failed tests: 5-9
t/sysread_write.t (Wstat: 0 Tests: 3 Failed: 2)
Failed tests: 2-3
Parse errors: Bad plan. You planned 9 tests but ran 3.
t/verify_hostname.t (Wstat: 0 Tests: 2 Failed: 1)
Failed test: 2
Parse errors: Bad plan. You planned 43 tests but ran 2.
Files=23, Tests=174, 67 wallclock secs ( 1.48 usr 0.22 sys + 33.48 cusr 2.17 csys = 37.35 CPU)
Result: FAIL
Failed 13/23 test programs. 39/174 subtests failed.
--
H.Merijn Brand http://tux.nl Perl Monger http://amsterdam.pm.org/
using perl5.00307 .. 5.17 porting perl5 on HP-UX, AIX, and openSUSE
http://mirrors.develooper.com/hpux/ http://www.test-smoke.org/
http://qa.perl.org http://www.goldmark.org/jeff/stupid-disclaimers/