Bug #4389
closedansible: osmo-gsm-tester host needs patchelf > 0.9.1
90%
Description
So today while patching srsue with debian 9 (which ships with package patchelf 0.9-1+b1), I got into following issue:
$ patchelf --set-rpath /osmo-gsm-tester-srsue/srslte/lib /osmo-gsm-tester-srsue/srslte/bin/srsue warning: working around a Linux kernel bug by creating a hole of 124461056 bytes in ‘/osmo-gsm-tester-srsue/srslte/bin/srsue’ maximum file size exceeded
The command returns 1 and the rpath is not changed.
reading a bit about the issue it seems to be a known patchelf bug fixed in newer versions: https://github.com/NixOS/patchelf/issues/47
I had to test with a newer patchelf to have it working: version 0.9+52 which ships in current stable (buster, debian 10).
https://packages.debian.org/buster/amd64/patchelf
So I already installed that deb package (patchelf_0.9+52.20180509-1_amd64.deb) into osmo-gsm-tester Prod setup slave host (where we run stuff like srsue and osmo-trx) since that's where it's needed.
This task is created as a reminder to add that manual installation of the package in ansible (osmo-ci.git).
Update:
It seems that 0.9+52 is causing issues on srsepc binary, during run, it fails with:
Inconsistency detected by ld.so: dl-version.c: 224: _dl_check_map_versions: Assertion `needed != NULL' failed
Same goes for patchelf_0.10-2_amd64.deb.
So it seems we might need to patch 0.9+1 with https://github.com/NixOS/patchelf/commit/f6886c2c33a1cf8771163919f3d20f6340c0ce38 ?