ruby-changes:52143
From: naruse <ko1@a...>
Date: Tue, 14 Aug 2018 04:12:37 +0900 (JST)
Subject: [ruby-changes:52143] naruse:r64351 (trunk): FreeBSD 11.0 lacks ELFCOMPRESS_ZLIB
naruse 2018-08-14 04:12:23 +0900 (Tue, 14 Aug 2018) New Revision: 64351 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=64351 Log: FreeBSD 11.0 lacks ELFCOMPRESS_ZLIB FreeBSD 11.0 unfortunately lacks ELF compression definitions in their elf.h (sys/elf_common.h), and 11.1 introduced them. https://github.com/freebsd/freebsd/commit/b9167d33a12b8a6c279be9cd1005874728e808c9 Though we can add workaround, we simply drop support because FreeBSD 11.0 is already EOL at November 30, 2017. https://www.freebsd.org/security/unsupported.html Modified files: trunk/addr2line.c Index: addr2line.c =================================================================== --- addr2line.c (revision 64350) +++ addr2line.c (revision 64351) @@ -102,7 +102,8 @@ void *alloca(); https://github.com/ruby/ruby/blob/trunk/addr2line.c#L102 #endif #ifdef SHF_COMPRESSED -# ifdef HAVE_LIBZ +# if defined(ELFCOMPRESS_ZLIB) && defined(HAVE_LIBZ) + /* FreeBSD 11.0 lacks ELFCOMPRESS_ZLIB */ # include <zlib.h> # define SUPPORT_COMPRESSED_DEBUG_LINE # endif -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/