Lintian tag: relative-library-search-path

Type: error

Description (from lintian-explain-tags)

The binary or shared library sets RPATH or RUNPATH. This overrides the
normal library search path, possibly interfering with local policy and
causing problems for multilib, among other issues.

As an aggravating factor, this search path is relative! It is probably not
what you wanted.

The only time a binary or shared library in a Debian package should set
RPATH or RUNPATH is if it is linked to private shared libraries in the
same package. In that case, place those private shared libraries in
/usr/lib/*package*. Libraries used by binaries in other packages should be
placed in /lib or /usr/lib as appropriate, with a proper SONAME, in which
case RPATH/RUNPATH is unnecessary.

To fix this problem, look for link lines like:

gcc test.o -o test -Wl,--rpath,/usr/local/lib
or
gcc test.o -o test -R/usr/local/lib

and remove the -Wl,--rpath or -R argument.

You can also use the chrpath utility to remove the RPATH.

Please refer to https://wiki.debian.org/RpathIssue, Bug#732682, and
Bug#732674 for details.

Visibility: error
Show-Always: no
Check: binaries/rpath

Affected packages

source version binary tag type tag information count
haskell-hs-bibutils 6.10.0.0-6 libghc-hs-bibutils-dev/6.10.0.0-6 error relative-library-search-path RUNPATH \\/usr/lib [usr/lib/haskell-packages/ghc/lib/i386-linux-ghc-9.6.6/libHShs-bibutils-6.10.0.0-2nTELY9cydLKAAxaHHz4uE-ghc9.6.6.so] 1
haskell-hs-bibutils 6.10.0.0-6 libghc-hs-bibutils-dev/6.10.0.0-6 error relative-library-search-path RUNPATH \\/usr/lib [usr/lib/haskell-packages/ghc/lib/x86_64-linux-ghc-9.6.6/libHShs-bibutils-6.10.0.0-2nTELY9cydLKAAxaHHz4uE-ghc9.6.6.so] 1
haskell-hs-bibutils 6.10.0.0-6 libghc-hs-bibutils-dev/6.10.0.0-6 error relative-library-search-path RUNPATH \\/usr/lib [usr/lib/haskell-packages/ghc/lib/s390x-linux-ghc-9.6.6/libHShs-bibutils-6.10.0.0-2nTELY9cydLKAAxaHHz4uE-ghc9.6.6.so] 1
haskell-hs-bibutils 6.10.0.0-6 libghc-hs-bibutils-dev/6.10.0.0-6 error relative-library-search-path RUNPATH \\/usr/lib [usr/lib/haskell-packages/ghc/lib/ppc64-linux-ghc-9.6.6/libHShs-bibutils-6.10.0.0-2nTELY9cydLKAAxaHHz4uE-ghc9.6.6.so] 1
haskell-hs-bibutils 6.10.0.0-6 libghc-hs-bibutils-dev/6.10.0.0-6 error relative-library-search-path RUNPATH \\/usr/lib [usr/lib/haskell-packages/ghc/lib/mips-linux-ghc-9.6.6/libHShs-bibutils-6.10.0.0-2nTELY9cydLKAAxaHHz4uE-ghc9.6.6.so] 1
haskell-hs-bibutils 6.10.0.0-6 libghc-hs-bibutils-dev/6.10.0.0-6 error relative-library-search-path RUNPATH \\/usr/lib [usr/lib/haskell-packages/ghc/lib/riscv64-linux-ghc-9.6.6/libHShs-bibutils-6.10.0.0-2nTELY9cydLKAAxaHHz4uE-ghc9.6.6.so] 1
haskell-hs-bibutils 6.10.0.0-6 libghc-hs-bibutils-dev/6.10.0.0-6 error relative-library-search-path RUNPATH \\/usr/lib [usr/lib/haskell-packages/ghc/lib/aarch64-linux-ghc-9.6.6/libHShs-bibutils-6.10.0.0-2nTELY9cydLKAAxaHHz4uE-ghc9.6.6.so] 1
haskell-hs-bibutils 6.10.0.0-6 libghc-hs-bibutils-dev/6.10.0.0-6 error relative-library-search-path RUNPATH \\/usr/lib [usr/lib/haskell-packages/ghc/lib/arm-linux-ghc-9.6.6/libHShs-bibutils-6.10.0.0-2nTELY9cydLKAAxaHHz4uE-ghc9.6.6.so] 2
node-sqlite3 5.1.5+ds1-1 node-sqlite3/5.1.5+ds1-1+b3 error relative-library-search-path RUNPATH external/lib [usr/lib/arm-linux-gnueabihf/nodejs/sqlite3/lib/binding/napi-v3-linux-glibc-arm/node_sqlite3.node] 1
node-sqlite3 5.1.5+ds1-1 node-sqlite3/5.1.5+ds1-1+b3 error relative-library-search-path RUNPATH external/lib [usr/lib/mips64el-linux-gnuabi64/nodejs/sqlite3/lib/binding/napi-v3-linux-glibc-mips64el/node_sqlite3.node] 1
node-sqlite3 5.1.5+ds1-1 node-sqlite3/5.1.5+ds1-1+b3 error relative-library-search-path RUNPATH external/lib [usr/lib/aarch64-linux-gnu/nodejs/sqlite3/lib/binding/napi-v6-linux-glibc-arm64/node_sqlite3.node] 1
node-sqlite3 5.1.5+ds1-1 node-sqlite3/5.1.5+ds1-1+b3 error relative-library-search-path RUNPATH external/lib [usr/lib/i386-linux-gnu/nodejs/sqlite3/lib/binding/napi-v3-linux-glibc-ia32/node_sqlite3.node] 1
node-sqlite3 5.1.5+ds1-1 node-sqlite3/5.1.5+ds1-1+b3 error relative-library-search-path RUNPATH external/lib [usr/lib/s390x-linux-gnu/nodejs/sqlite3/lib/binding/napi-v6-linux-glibc-s390x/node_sqlite3.node] 1
node-sqlite3 5.1.5+ds1-1 node-sqlite3/5.1.5+ds1-1+b3 error relative-library-search-path RUNPATH external/lib [usr/lib/arm-linux-gnueabihf/nodejs/sqlite3/lib/binding/napi-v6-linux-glibc-arm/node_sqlite3.node] 1
node-sqlite3 5.1.5+ds1-1 node-sqlite3/5.1.5+ds1-1+b3 error relative-library-search-path RUNPATH external/lib [usr/lib/mips64el-linux-gnuabi64/nodejs/sqlite3/lib/binding/napi-v6-linux-glibc-mips64el/node_sqlite3.node] 1
node-sqlite3 5.1.5+ds1-1 node-sqlite3/5.1.5+ds1-1+b3 error relative-library-search-path RUNPATH external/lib [usr/lib/x86_64-linux-gnu/nodejs/sqlite3/lib/binding/napi-v6-linux-glibc-x64/node_sqlite3.node] 1
node-sqlite3 5.1.5+ds1-1 node-sqlite3/5.1.5+ds1-1+b3 error relative-library-search-path RUNPATH external/lib [usr/lib/riscv64-linux-gnu/nodejs/sqlite3/lib/binding/napi-v3-linux-glibc-riscv64/node_sqlite3.node] 1
node-sqlite3 5.1.5+ds1-1 node-sqlite3/5.1.5+ds1-1+b3 error relative-library-search-path RUNPATH external/lib [usr/lib/arm-linux-gnueabi/nodejs/sqlite3/lib/binding/napi-v3-linux-glibc-arm/node_sqlite3.node] 1
node-sqlite3 5.1.5+ds1-1 node-sqlite3/5.1.5+ds1-1+b3 error relative-library-search-path RUNPATH external/lib [usr/lib/arm-linux-gnueabi/nodejs/sqlite3/lib/binding/napi-v6-linux-glibc-arm/node_sqlite3.node] 1
node-sqlite3 5.1.5+ds1-1 node-sqlite3/5.1.5+ds1-1+b3 error relative-library-search-path RUNPATH external/lib [usr/lib/s390x-linux-gnu/nodejs/sqlite3/lib/binding/napi-v3-linux-glibc-s390x/node_sqlite3.node] 1
node-sqlite3 5.1.5+ds1-1 node-sqlite3/5.1.5+ds1-1+b3 error relative-library-search-path RUNPATH external/lib [usr/lib/powerpc64le-linux-gnu/nodejs/sqlite3/lib/binding/napi-v6-linux-glibc-ppc64/node_sqlite3.node] 1
node-sqlite3 5.1.5+ds1-1 node-sqlite3/5.1.5+ds1-1+b3 error relative-library-search-path RUNPATH external/lib [usr/lib/i386-linux-gnu/nodejs/sqlite3/lib/binding/napi-v6-linux-glibc-ia32/node_sqlite3.node] 1
node-sqlite3 5.1.5+ds1-1 node-sqlite3/5.1.5+ds1-1+b3 error relative-library-search-path RUNPATH external/lib [usr/lib/riscv64-linux-gnu/nodejs/sqlite3/lib/binding/napi-v6-linux-glibc-riscv64/node_sqlite3.node] 1
node-sqlite3 5.1.5+ds1-1 node-sqlite3/5.1.5+ds1-1+b3 error relative-library-search-path RUNPATH external/lib [usr/lib/aarch64-linux-gnu/nodejs/sqlite3/lib/binding/napi-v3-linux-glibc-arm64/node_sqlite3.node] 1
node-sqlite3 5.1.5+ds1-1 node-sqlite3/5.1.5+ds1-1+b3 error relative-library-search-path RUNPATH external/lib [usr/lib/powerpc64le-linux-gnu/nodejs/sqlite3/lib/binding/napi-v3-linux-glibc-ppc64/node_sqlite3.node] 1
node-sqlite3 5.1.5+ds1-1 node-sqlite3/5.1.5+ds1-1+b3 error relative-library-search-path RUNPATH external/lib [usr/lib/x86_64-linux-gnu/nodejs/sqlite3/lib/binding/napi-v3-linux-glibc-x64/node_sqlite3.node] 1
pcb 1:4.3.0-3 pcb-lesstif/1:4.3.0-3+b1 error relative-library-search-path RUNPATH NONE [usr/bin/pcb-lesstif] 1
suricata 1:7.0.6-1 suricata/1:7.0.6-1 error relative-library-search-path RUNPATH --as-needed [usr/bin/suricata] 4
suricata 1:7.0.6-2~exp1 suricata/1:7.0.6-2~exp1 error relative-library-search-path RUNPATH --as-needed [usr/bin/suricata] 4