Bug 237519

Summary: security/p5-Net-SSLeay: Fail to build with libressl: error: no member named 'tmp' in 'struct ssl3_state_st'
Product: Ports & Packages Reporter: korsani
Component: Individual Port(s)Assignee: freebsd-perl (Nobody) <perl>
Status: Closed Overcome By Events    
Severity: Affects Only Me CC: brnrd, danfe, w.schwarzenfeld
Priority: --- Keywords: needs-qa
Version: LatestFlags: bugzilla: maintainer-feedback? (perl)
Hardware: Any   
OS: Any   
Attachments:
Description Flags
pkg version -v
none
build log
none
make.conf none

Description korsani 2019-04-24 08:48:04 UTC
Hi,

I try to install mail/spamassassion, which depend on p5-Net-SSLeay (although I choose no ssl in the config...) and p5-Net-SSLEeay fail to build, with this error :

cc -c  -I/usr/local/include  -O2 -pipe  -fstack-protector -fno-strict-aliasing -O2 -pipe -fstack-protector -fno-strict-aliasing    -DVERSION=\"1.85\"  -DXS_VERSION=\"1.85\" -DPIC -fPIC "-I/usr/local/lib/perl5/5.28/mach/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;
                      ~~~~~  ^

Please note I use libressl, and p5-Net-SSLeay 1.86_09 (https://github.com/radiator-software/p5-net-ssleay) compile fine.
Comment 1 Kubilay Kocak freebsd_committer freebsd_triage 2019-04-24 08:53:18 UTC
@Korsani Could you please provide

- Exact FreeBSD version (uname -a)
- pkg version -v output (as an attachment)
- Full build log (as an attachment)
Comment 2 korsani 2019-04-24 08:59:24 UTC
Created attachment 203955 [details]
pkg version -v
Comment 3 korsani 2019-04-24 09:05:03 UTC
Created attachment 203956 [details]
build log
Comment 4 korsani 2019-04-24 09:05:33 UTC
uname -a:
FreeBSD corum 12.0-RELEASE-p3 FreeBSD 12.0-RELEASE-p3 GENERIC  i386
Comment 5 Kubilay Kocak freebsd_committer freebsd_triage 2019-04-24 09:53:40 UTC
Thank you for providing that additional information.

Could you please:

- Include contents of /etc/make.conf (sanitized if necessary) as an attachment
- Try to reproduce the failure with ccache disabled
Comment 6 korsani 2019-04-24 10:07:38 UTC
Created attachment 203958 [details]
make.conf

Hi,

I deactivated ccache, and I got the same error...

SSLeay.xs:5685:23: error: no member named 'tmp' in 'struct ssl3_state_st'
            md_size = s->s3->tmp.new_mac_secret_size;
                      ~~~~~  ^
Comment 7 korsani 2019-04-24 15:40:58 UTC
Ahum...
It works.

The only noticeable thing is perl upgrading from 5.28.1_1 to 5.28.2 just now.

Or maybe just recompiling perl solved thing...
Comment 8 Walter Schwarzenfeld freebsd_triage 2019-09-11 16:39:16 UTC
Do I understand right, and it is solved? So we can close here.
Comment 9 Alexey Dokuchaev freebsd_committer freebsd_triage 2020-07-10 05:36:30 UTC
Current version of the port (1.88) builds fine on all supported versions of FreeBSD, closing.