dust
dust copied to clipboard
relocation error: symbol pthread_getattr_np, version GLIBC_2.2.5 not defined in file libpthread.so.0 with link time reference
Hello, I would like to use dust for my remote server (without root). I unzipped the executable from release. But when I ran it throwed
dust: /lib64/libc.so.6: version `GLIBC_2.18' not found (required by dust)
After some googling, I figured this was caused by system-installed glibc version being too low. So I installed gcc 11.3.0 and glibc 2.35 from the source. Since I do not have root permission, from this question I learned to use patchelf to inject the glibc path:
patchelf --set-rpath /path/to/glibc/lib dust
I thought it would solve every issue but no, there was again one more issue:
dust: relocation error: dust: symbol pthread_getattr_np, version GLIBC_2.2.5 not defined in file libpthread.so.0 with link time reference
But I do have a libpthread.so.0 in /path/to/glibc/lib.
Does anyone have any clue about this issue? Thanks!