Skip Menu |

This queue is for tickets about the Net-SSLeay CPAN distribution.

Report information
The Basics
Id: 127985
Status: resolved
Priority: 0/
Queue: Net-SSLeay

People
Owner: RADIATOR [...] cpan.org
Requestors: db [...] dandat.net
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: 1.86_08



Subject: building Net::SSLeay 1.85 fails on OpenBSD 6.4-current with Perl 5.28.1
Date: Mon, 10 Dec 2018 17:35:28 +0100
To: bug-Net-SSLeay [...] rt.cpan.org
From: db [...] dandat.net
Building Net::SSLeay on: OpenBSD 6.4-current (GENERIC.MP) #493: Wed Dec 5 22:00:48 MST 2018 deraadt@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP (without OpenSSL installed, system LibreSSL instead) with: This is perl 5, version 28, subversion 1 (v5.28.1) built for OpenBSD.amd64-openbsd may result in: cpan[5]> install Net::SSLeay Running install for module 'Net::SSLeay' Checksum for /home/dani/.cpan/sources/authors/id/M/MI/MIKEM/Net-SSLeay-1.85.tar.gz ok Configuring M/MI/MIKEM/Net-SSLeay-1.85.tar.gz with Makefile.PL *** Found LibreSSL-2.9.0 installed in /usr *** Be sure to use the same compiler and options to compile your OpenSSL, perl, and Net::SSLeay. Mixing and matching compilers is not supported. Do you want to run external tests? These tests *will* *fail* if you do not have network connectivity. [n] no Checking if your kit is complete... Looks good Generating a Unix-style Makefile Writing Makefile for Net::SSLeay Writing MYMETA.yml and MYMETA.json MIKEM/Net-SSLeay-1.85.tar.gz /home/dani/opt/perl-5.28/bin/perl Makefile.PL -- OK Running make for M/MI/MIKEM/Net-SSLeay-1.85.tar.gz Use of uninitialized value in pattern match (m//) at /home/dani/opt/perl-5.28/lib/5.28.1/CPAN/Distribution.pm line 2946. Use of uninitialized value in pattern match (m//) at /home/dani/opt/perl-5.28/lib/5.28.1/CPAN/Distribution.pm line 2946. cp lib/Net/SSLeay/Handle.pm blib/lib/Net/SSLeay/Handle.pm cp lib/Net/SSLeay.pm blib/lib/Net/SSLeay.pm AutoSplitting blib/lib/Net/SSLeay.pm (blib/lib/auto/Net/SSLeay) blib/lib/Net/SSLeay.pm: some names are not unique when truncated to 8 characters: directory blib/lib/auto/Net/SSLeay: do_https3.al, do_https2.al, do_https4.al, do_https.al truncate to do_https do_httpx3.al, do_httpx2.al, do_httpx4.al truncate to do_httpx get_https.al, get_https3.al, get_https4.al, get_http.al, get_http3.al, get_http4.al, get_httpx.al, get_httpx3.al, get_httpx4.al truncate to get_http head_https.al, head_https3.al, head_https4.al, head_http.al, head_http3.al, head_http4.al, head_httpx.al, head_httpx3.al, head_httpx4.al truncate to head_htt post_https.al, post_https3.al, post_https4.al, post_http.al, post_http3.al, post_http4.al, post_httpx.al, post_httpx3.al, post_httpx4.al truncate to post_htt put_https.al, put_https3.al, put_https4.al, put_http.al, put_http3.al, put_http4.al, put_httpx.al, put_httpx3.al, put_httpx4.al truncate to put_http ssl_read_all.al, ssl_read_until.al, ssl_read_CRLF.al truncate to ssl_read ssl_write_all.al, ssl_write_CRLF.al truncate to ssl_writ tcp_read_all.al, tcp_read_until.al, tcp_read_CRLF.al truncate to tcp_read tcp_write_all.al, tcp_write_CRLF.al truncate to tcp_writ cp lib/Net/SSLeay.pod blib/lib/Net/SSLeay.pod Running Mkbootstrap for SSLeay () chmod 644 "SSLeay.bs" "/home/dani/opt/perl-5.28/bin/perl" "-Iinc" -MExtUtils::Command::MM -e 'cp_nonempty' -- SSLeay.bs blib/arch/auto/Net/SSLeay/SSLeay.bs 644 "/home/dani/opt/perl-5.28/bin/perl" "-Iinc" "/home/dani/opt/perl-5.28/lib/5.28.1/ExtUtils/xsubpp" -typemap '/home/dani/opt/perl-5.28/lib/5.28.1/ExtUtils/typemap' -typemap '/home/dani/.cpan/build/Net-SSLeay-1.85-0/typemap' SSLeay.xs > SSLeay.xsc mv SSLeay.xsc SSLeay.c cc -c -I/usr/include -fno-strict-aliasing -pipe -fstack-protector-strong -I/usr/local/include -D_FORTIFY_SOURCE=2 -O2 -DVERSION=\"1.85\" -DXS_VERSION=\"1.85\" -DPIC -fPIC "-I/home/dani/opt/perl-5.28/lib/5.28.1/OpenBSD.amd64-openbsd/CORE" SSLeay.c SSLeay.xs:5685:23: error: no member named 'tmp' in 'struct ssl3_state_st' md_size = s->s3->tmp.new_mac_secret_size; ~~~~~ ^ 1 error generated. *** Error 1 in /home/dani/.cpan/build/Net-SSLeay-1.85-0 (Makefile:352 'SSLeay.o') MIKEM/Net-SSLeay-1.85.tar.gz /usr/bin/make -- NOT OK Failed during this command: MIKEM/Net-SSLeay-1.85.tar.gz : make NO ------------------------------------------------------------------------------------------------ perl -V Summary of my perl5 (revision 5 version 28 subversion 1) configuration: Platform: osname=openbsd osvers=6.4 archname=OpenBSD.amd64-openbsd uname='openbsd playa.my.playa 6.4 generic.mp#493 amd64 ' config_args='-des -Dprefix=/home/playa/opt/perl-5.28 -Dman1dir=none -Dman3dir=none -Dsite1dir=none -Dsite3dir=none -Dvendorman1=none -Dvendorman3=none' hint=recommended useposix=true d_sigaction=define useithreads=undef usemultiplicity=undef use64bitint=define use64bitall=define uselongdouble=undef usemymalloc=n default_inc_excludes_dot=define bincompat5005=undef Compiler: cc='cc' ccflags ='-fno-strict-aliasing -pipe -fstack-protector-strong -I/usr/local/include -D_FORTIFY_SOURCE=2' optimize='-O2' cppflags='-fno-strict-aliasing -pipe -fstack-protector-strong -I/usr/local/include' ccversion='' gccversion='4.2.1 Compatible OpenBSD Clang 6.0.0 (tags/RELEASE_600/final)' gccosandvers='' intsize=4 longsize=8 ptrsize=8 doublesize=8 byteorder=12345678 doublekind=3 d_longlong=define longlongsize=8 d_longdbl=define longdblsize=16 longdblkind=3 ivtype='long' ivsize=8 nvtype='double' nvsize=8 Off_t='off_t' lseeksize=8 alignbytes=8 prototype=define Linker and Libraries: ld='cc' ldflags ='-Wl,-E -fstack-protector-strong -L/usr/local/lib' libpth=/usr/lib /usr/local/lib libs=-lpthread -lm -lutil -lc perllibs=-lpthread -lm -lutil -lc libc=/usr/lib/libc.so.93.0 so=so useshrplib=false libperl=libperl.a gnulibc_version='' Dynamic Linking: dlsrc=dl_dlopen.xs dlext=so d_dlsymun=undef ccdlflags=' ' cccdlflags='-DPIC -fPIC ' lddlflags='-shared -fPIC -L/usr/local/lib -fstack-protector-strong' Characteristics of this binary (from libperl): Compile-time options: HAS_TIMES PERLIO_LAYERS PERL_COPY_ON_WRITE PERL_DONT_CREATE_GVSV PERL_MALLOC_WRAP PERL_OP_PARENT PERL_PRESERVE_IVUV USE_64_BIT_ALL USE_64_BIT_INT USE_LARGE_FILES USE_LOCALE USE_LOCALE_COLLATE USE_LOCALE_CTYPE USE_LOCALE_NUMERIC USE_LOCALE_TIME USE_PERLIO USE_PERL_ATOF Built under openbsd Compiled at Dec 9 2018 19:36:25 @INC: /home/playa/opt/perl-5.28/lib/site_perl/5.28.1/OpenBSD.amd64-openbsd /home/playa/opt/perl-5.28/lib/site_perl/5.28.1 /home/playa/opt/perl-5.28/lib/5.28.1/OpenBSD.amd64-openbsd /home/playa/opt/perl-5.28/lib/5.28.1
On ma 10.joulukuu 2018 11:53:53, db@dandat.net wrote: Show quoted text
> Building Net::SSLeay on: > OpenBSD 6.4-current (GENERIC.MP) #493: Wed Dec 5 22:00:48 MST 2018 > deraadt@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP > > (without OpenSSL installed, system LibreSSL instead) > > with: > This is perl 5, version 28, subversion 1 (v5.28.1) built for > OpenBSD.amd64-openbsd > > may result in: > cpan[5]> install Net::SSLeay > Running install for module 'Net::SSLeay' > Checksum for > /home/dani/.cpan/sources/authors/id/M/MI/MIKEM/Net-SSLeay-1.85.tar.gz
I'd say the current Net::SSLeay developer version 1.86_07 and thus the next Net::SSLeay release should work fine. Here's what I did: - install OpenBSD 6.4 - download Net-SSLeay-1.86_07.tar.gz - use pgk_add to install p5-Test-Exception, p5-Test-Warn and p5-Test-NoWarnings to avoid skipping some tests - do the usual perl Makefile.PL, make and make test In other words, compiled and run test on a very minimal and out-of-the-box OpenBSD 6.4. Below is make test output. I'm setting this ticket's state to 'patched' to wait for next release when we should be able to close it. openbsd-64$ make test PERL_DL_NONLAZY=1 "/usr/bin/perl" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/local/*.t t/handle/local/*.t t/handle/local/05_use.t ................ ok t/local/01_pod.t ....................... skipped: Test::Pod 1.00 required for testing POD t/local/02_pod_coverage.t .............. skipped: these tests are for only for release candidate testing. Enable with RELEASE_TESTING=1 t/local/03_use.t ....................... ok t/local/04_basic.t ..................... 1/14 # Version info: # Testing Net::SSLeay 1.86_07, Perl 5.024003, /usr/bin/perl # OpenSSL version: 'LibreSSL 2.8.2' # OpenSSL cflags: 'compiler: information not available' # OpenSSL built on: 'built on: date not available' # OpenSSL platform: 'platform: information not available' # OpenSSL dir: 'OPENSSLDIR: "/etc/ssl"' # OpenSSL engines dir: 'ENGINESDIR: N/A' t/local/04_basic.t ..................... ok t/local/05_passwd_cb.t ................. ok t/local/06_tcpecho.t ................... ok t/local/07_sslecho.t ................... ok t/local/08_pipe.t ...................... ok t/local/09_ctx_new.t ................... ok t/local/10_rand.t ...................... ok t/local/11_read.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 ................. skipped: libressl and OpenSSL 1.1 removed support for ephemeral/temporary RSA private keys 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: libressl removed support for NPN t/local/41_alpn_support.t .............. ok t/local/42_info_callback.t ............. ok t/local/43_misc_functions.t ............ ok t/local/44_sess.t ...................... ok t/local/45_exporter.t .................. ok t/local/50_digest.t .................... ok t/local/61_threads-cb-crash.t .......... skipped: your perl is not compiled with ithreads t/local/62_threads-ctx_new-deadlock.t .. skipped: your perl is not compiled with ithreads t/local/63_ec_key_generate_key.t ....... ok t/local/64_ticket_sharing.t ............ ok t/local/65_ticket_sharing_2.t .......... ok t/local/kwalitee.t ..................... skipped: these tests are for only for release candidate testing. Enable with RELEASE_TESTING=1 All tests successful. Files=38, Tests=3229, 4 wallclock secs ( 0.36 usr 0.16 sys + 2.60 cusr 0.55 csys = 3.67 CPU) Result: PASS -- Heikki Vatiainen
Subject: Re: [rt.cpan.org #127985] building Net::SSLeay 1.85 fails on OpenBSD 6.4-current with Perl 5.28.1
Date: Sun, 03 Mar 2019 19:08:57 +0100
To: Radiator Software via RT <bug-Net-SSLeay [...] rt.cpan.org>
From: db [...] dandat.net
Thank You. Quoting Radiator Software via RT <bug-Net-SSLeay@rt.cpan.org>: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=127985 > > > On ma 10.joulukuu 2018 11:53:53, db@dandat.net wrote:
>> Building Net::SSLeay on: >> OpenBSD 6.4-current (GENERIC.MP) #493: Wed Dec 5 22:00:48 MST 2018 >> deraadt@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP >> >> (without OpenSSL installed, system LibreSSL instead) >> >> with: >> This is perl 5, version 28, subversion 1 (v5.28.1) built for >> OpenBSD.amd64-openbsd >> >> may result in: >> cpan[5]> install Net::SSLeay >> Running install for module 'Net::SSLeay' >> Checksum for >> /home/dani/.cpan/sources/authors/id/M/MI/MIKEM/Net-SSLeay-1.85.tar.gz
> > I'd say the current Net::SSLeay developer version 1.86_07 and thus > the next Net::SSLeay release should work fine. Here's what I did: > - install OpenBSD 6.4 > - download Net-SSLeay-1.86_07.tar.gz > - use pgk_add to install p5-Test-Exception, p5-Test-Warn and > p5-Test-NoWarnings to avoid skipping some tests > - do the usual perl Makefile.PL, make and make test > > In other words, compiled and run test on a very minimal and > out-of-the-box OpenBSD 6.4. > > Below is make test output. I'm setting this ticket's state to > 'patched' to wait for next release when we should be able to close it. > > openbsd-64$ make test > PERL_DL_NONLAZY=1 "/usr/bin/perl" "-MExtUtils::Command::MM" > "-MTest::Harness" "-e" "undef *Test::Harness::Switches; > test_harness(0, 'blib/lib', 'blib/arch')" t/local/*.t > t/handle/local/*.t > t/handle/local/05_use.t ................ ok > t/local/01_pod.t ....................... skipped: Test::Pod 1.00 > required for testing POD > t/local/02_pod_coverage.t .............. skipped: these tests are > for only for release candidate testing. Enable with RELEASE_TESTING=1 > t/local/03_use.t ....................... ok > t/local/04_basic.t ..................... 1/14 # Version info: > # Testing Net::SSLeay 1.86_07, Perl 5.024003, /usr/bin/perl > # OpenSSL version: 'LibreSSL 2.8.2' > # OpenSSL cflags: 'compiler: information not available' > # OpenSSL built on: 'built on: date not available' > # OpenSSL platform: 'platform: information not available' > # OpenSSL dir: 'OPENSSLDIR: "/etc/ssl"' > # OpenSSL engines dir: 'ENGINESDIR: N/A' > t/local/04_basic.t ..................... ok > t/local/05_passwd_cb.t ................. ok > t/local/06_tcpecho.t ................... ok > t/local/07_sslecho.t ................... ok > t/local/08_pipe.t ...................... ok > t/local/09_ctx_new.t ................... ok > t/local/10_rand.t ...................... ok > t/local/11_read.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 ................. skipped: libressl and > OpenSSL 1.1 removed support for ephemeral/temporary RSA private keys > 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: libressl removed > support for NPN > t/local/41_alpn_support.t .............. ok > t/local/42_info_callback.t ............. ok > t/local/43_misc_functions.t ............ ok > t/local/44_sess.t ...................... ok > t/local/45_exporter.t .................. ok > t/local/50_digest.t .................... ok > t/local/61_threads-cb-crash.t .......... skipped: your perl is not > compiled with ithreads > t/local/62_threads-ctx_new-deadlock.t .. skipped: your perl is not > compiled with ithreads > t/local/63_ec_key_generate_key.t ....... ok > t/local/64_ticket_sharing.t ............ ok > t/local/65_ticket_sharing_2.t .......... ok > t/local/kwalitee.t ..................... skipped: these tests are > for only for release candidate testing. Enable with RELEASE_TESTING=1 > All tests successful. > Files=38, Tests=3229, 4 wallclock secs ( 0.36 usr 0.16 sys + 2.60 > cusr 0.55 csys = 3.67 CPU) > Result: PASS > > -- > Heikki Vatiainen