pact-foundation / pact-reference

Reference implementations for the pact specifications
https://pact.io
MIT License
93 stars 46 forks source link

0.4.20 pact_ffi - aarch64-musl .so failing to load (missing symbols) #436

Closed YOU54F closed 5 months ago

YOU54F commented 5 months ago

So we have an issue with the pact_ffi shared library, for aarch64-musl .so in 0.4.20

Error

LoadError:
  Could not open library '/app/lib/pact/../../ffi/linux-arm64-musl/libpact_ffi.so': Error relocating /app/lib/pact/../../ffi/linux-arm64-musl/libpact_ffi.so: __builtin_copysignq: symbol not found.
  Searched in <system library path>, /usr/lib, /usr/local/lib, /opt/local/lib
# /usr/local/bundle/gems/ffi-1.16.3/lib/ffi/dynamic_library.rb:65:in `load_library'

Seems to be exclusive to aarch64, and the dynamic library only. amd64 tests are passing in pact-php as well using the shared library, and the static .a is being used and tested successfully in pact-js-core in this PR

First reported by @tienvx over in pact-php alpine PR - Thanks Tien!