#985915 ldd: disagrees with file(1) about whether a file is dynamically or statically linked

Package:
libc-bin
Source:
glibc
Description:
GNU C Library: Binaries
Submitter:
Thorsten Glaser
Date:
2021-03-25 23:36:04 UTC
Severity:
normal
#985915#5
Date:
2021-03-25 23:33:39 UTC
From:
To:
I’m debugging a weird lintian problem and found the cause to be:

tglase@tglase-nb:~ $ ldd /tmp/libjsound.so
        statically linked
tglase@tglase-nb:~ $ file /tmp/libjsound.so
/tmp/libjsound.so: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, BuildID[sha1]=de56e345230aca1c7c8cf06b56e9c21ee53031f5, stripped
tglase@tglase-nb:~ $ objdump -p /tmp/libjsound.so | fgrep NEED | wc -l
0

I’m attaching this file so this can be fixed in the right package.
I believe that if both agree lintian won’t complain.