/sbin/ldconfig.real: file xxx is truncated
Jeffrey Walton
noloader@gmail.com
Mon Jul 20 17:15:28 GMT 2020
Hi Everyone,
I'm seeing a lot of messages like below when building libraries from sources.
I believe the cause is using patchelf
(https://github.com/NixOS/patchelf) to fix runpaths. (patchelf is
really just a symptom of the underlying problem). Some projects
mishandle rpath tokens, and something that starts as
LDFLAGS=-Wl,-rpath,'$ORIGIN/../lib' results in "RIGIN/../lib" and
needs to be fixed.
What I am having trouble with, what header or section is causing the complaint.
Is there a way to get more information about the truncation?
==========
...
libtool: finish:
PATH="/tmp/ok2delete/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/sbin"
ldconfig -n /tmp/ok2delete/lib
/sbin/ldconfig.real: file /tmp/ok2delete/lib/libhogweed.so.6.0 is truncated
/sbin/ldconfig.real: file /tmp/ok2delete/lib/libhogweed.so.6 is truncated
/sbin/ldconfig.real: file /tmp/ok2delete/lib/libhogweed.so is truncated
/sbin/ldconfig.real: file /tmp/ok2delete/lib/libnettle.so.8 is truncated
/sbin/ldconfig.real: file /tmp/ok2delete/lib/libnettle.so is truncated
/sbin/ldconfig.real: file /tmp/ok2delete/lib/libnettle.so.8.0 is truncated
More information about the Binutils
mailing list