Created attachment 192907 [details] ruby24-build.log ruby24 fails to build with libressl-2.7.2_1. Attached build.log.
The patch for ruby25 in Bug #226852 solves it also for ruby24.
Thanks for the patch, ot worked.
I found the following patch which works fine (and should also work for 2.5): https://github.com/ruby/openssl/issues/192 Looks like an easier way to fix things than the patches in #226852
Created attachment 193461 [details] Fix building against LibreSSL >= 2.7.0
ruby@ guys, please review it, otherwise I'm going to commit it
Patch works for me.
I also use it without problem so far.
Works for me too with both ssl=openssl and ssl=libressl-devel.
A commit references this bug: Author: sunpoet Date: Tue Jun 5 18:57:28 UTC 2018 New revision: 471799 URL: https://svnweb.freebsd.org/changeset/ports/471799 Log: Fix build with LibreSSL 2.7 Obtained from: https://github.com/ruby/openssl/commit/75de15ddcdab6efe7faf3ca1f6b5c6e5b6ba57cc PR: 227851 Changes: head/lang/ruby24/files/patch-ext-openssl-extconf.rb
Committed. Thanks!