Bug 229018

Summary: www/node6: Fails to build with OpenSSL 1.1
Product: Ports & Packages Reporter: Bernard Spil <brnrd>
Component: Individual Port(s)Assignee: Bradley T. Hughes <bhughes>
Status: Closed FIXED    
Severity: Affects Only Me Flags: bugzilla: maintainer-feedback? (bhughes)
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   
Bug Depends on:    
Bug Blocks: 228865    

Description Bernard Spil freebsd_committer freebsd_triage 2018-06-14 19:54:33 UTC
> ./src/node_crypto.h:91:40: error: invalid application of 'sizeof' to an incomplete type 'SSL_CTX' (aka 'ssl_ctx_st')

During BSDCan 2018 the intention to update OpenSSL in base to 1.1.x branch was documented.

Intention is to update 12-STABLE to current 1.1.0 and subsequently update it to 1.1.1 when that is released. 

Poudriere log: https://keg.brnrd.eu/data/111amd64-default-openssl110/2018-06-11_10h42m37s/logs/errors/node6-6.14.2.log
Comment 1 Bradley T. Hughes freebsd_committer freebsd_triage 2019-01-23 21:13:19 UTC
I've spent some time looking into what to do about this. Node.js 8.x can build with both OpenSSL 1.0.2 and 1.1.x, but those (substantial) changes were not backported to the 6.x line. I have enabled the BUNDLED_SSL option by default on FreeBSD >=12, so that the port will at least build with the default options, but the port uses BROKEN_SSL to inform users that Node.js 6.x requires OpenSSL 1.0.2 in some fashion, either by setting SSL_DEFAULT or by enabling the BUNDLED_SSL port option.