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