New comment by crtxcr on void-packages repository https://github.com/void-linux/void-packages/issues/39467#issuecomment-1345605097 Comment: I can reproduce this. I discovered this issue report because building "poppler" fails with the exact same error message. So at least 2 packages are now affected by this. ``` usr/bin/ld: /usr/lib/libz.a(deflate.o): warning: relocation against `z_errmsg' in read-only section `.text' /usr/bin/ld: /usr/lib/libz.a(zutil.o): relocation R_X86_64_PC32 against symbol `z_errmsg' can not be used when making a shared object; recompile with -fPIC ``` Seems in both cases the build system (cmake) finds libz.a instead of libz.so, for whatever reason.