Open Jongy opened 2 years ago
I reslove it in ubuntu:22.04 through:
cd /lib/aarch64-linux-gnu/
ln -s libnss_dns.so.2 libnss_dns.so
ln -s libnss_files.so.2 libnss_files.so
For the record, in https://github.com/Granulate/gprofiler/pull/314 I ended up resolving it by creating empty .a
files: ar rcs /lib64/libnss_files.a && ar rcs /lib64/libnss_dns.a
because the symbols seem to arrive from a different library anyway.
I'm trying to use staticx on a
centos:8
container. Runningpip install staticx
(downloads the latest - 0.13.6) tries to build staticx and fails with this (excerpt):For reference, I encountered this while trying to upgrade our build from
centos:7
tocentos:8
. I ran the same steps forcentos:7
and got this:WARNING: NSS not available; staticx will not include nssfix for GLIBC programs!
so it's possible that oncentos:7
this the build of nssfix has never worked either, it might be something relating to Aarch64...I spent some time searching about
nss_dns
andnss_files
but couldn't find the package that provides them. At some point I realized that the relevant symbols might be provided fromlibc.a
itself, and decided to foolld
by runningar rcs /lib64/libnss_files.a; ar rcs /lib64/libnss_dns.a
. The build then passed :shrug:Reproducing Dockerfile (excerpts from https://github.com/Granulate/gprofiler/pull/314/files#diff-80f450bf3cbbeb863190c6fca06ff64231e4f27b64e118a4bb724e62e0eee9f4 which uses
0.12.1
):Full error log: