From: "hsbt (Hiroshi SHIBATA) via ruby-core" Date: 2024-03-27T01:03:30+00:00 Subject: [ruby-core:117337] [Ruby master Misc#17174] "Error relocating, symbol not found" error when compiling a native extension on Alpine with Ruby >=2.4 Issue #17174 has been updated by hsbt (Hiroshi SHIBATA). Status changed from Open to Closed Unfortunately, there is no active maintainer for musl or alpine platform. I tagged them to [musl](https://bugs.ruby-lang.org/projects/ruby-master/issues?fields%5B%5D=issue_tags&operators%5Bissue_tags%5D=%3D&set_filter=1&values%5Bissue_tags%5D%5B%5D=musl). We welcome patch for them. ---------------------------------------- Misc #17174: "Error relocating, symbol not found" error when compiling a native extension on Alpine with Ruby >=2.4 https://bugs.ruby-lang.org/issues/17174#change-107491 * Author: Nakilon (Victor Maslov) * Status: Closed ---------------------------------------- My native extension gem compiles fine with all versions of Ruby on macOS but only with Ruby 2.3 on Alpine. It throws various `Error relocating`, `symbol not found` when I require the `.o` file. Here I made a branch to reproduce it in Docker quickly. ``` git clone https://github.com/Nakilon/dhash-vips.git --branch alpine-compilation-issues alpine-compilation-issues && cd alpine-compilation-issues ``` ``` # compiles and does not fail on require docker build - -t temp-ruby2.3.8 --build-arg RUBY_VERSION=2.3.8 --build-arg ALPINE_VERSION=3.8