Questions tagged [runpath]

runpath is used to specify directories to search for shared libraries. (dynamic libraries).

More info:

https://medium.com/nataraj-raghavendra/rpath-vs-runpath-883029b17c45

6 questions
2
votes
0 answers

Binary with RPATH not finding transitive dependencies if one of them has RUNPATH

I've been reading for a while about how the dynamic linker/loader works, RPATH vs RUNPATH, direct vs transitive dependencies, etc. My understanding so far is that if a binary has RPATH (not RUNPATH), then its RPATH is what the dynamic loader uses to…
user1011113
  • 1,114
  • 8
  • 27
2
votes
1 answer

Bundling FFMPEG using CMAKE and RPATH

As the title explains, I am trying to bundle FFMPEG with my executable application. However, I can't seem to figure out the runtime loading of the FFMPEG shared libraries. I'm not sure what is incorrect: RPATH/RUNPATH of main project and FFMPEG…
Cole
  • 43
  • 4
1
vote
1 answer

ldd shows .so not found but RUNPATH contains the lib

I'm trying to get some binaries running on NixOS, and I ran into a weird situation when trying to get ldd to find libpython2.7.so.1.0 and other libs. $ ldd lldb ./lldb:…
Enrico Borba
  • 1,877
  • 2
  • 14
  • 26
0
votes
0 answers

Is patchelf available on RHEL 9/Rocky 9 distributions?

I am trying to set RUNPATH within executables, including shared libraries, which will run on Rocky Linux 9. Using patchelf on Centos 7 works fine, but I am having trouble finding a version to use on Rocky 9. On Rocky 9, when I perform $ sudo dnf…
Ted Jenney
  • 171
  • 1
  • 9
0
votes
0 answers

Macho runpath is being modified when deployed on a different machine

I've set the search path of libcrpyto inside my dylib file to lookup for libcrypto.1.1.dylib in the following path : otool -L mylib.dylib --> ... @rpath/libcrypto.1.1.dylib ... However, when I deploy the target into a certain machine in which I've…
Zohar81
  • 4,554
  • 5
  • 29
  • 82
0
votes
0 answers

Why my executable runs with `RPATH` but not with `RUNPATH`

I build an executable app that uses liba. liba in turn needs libb. libb in turn needs libc. The dependency looks like this: app -> liba -> libb -> libc. The app and liba are built by me while libb and libc are 3rd party. I do not know how they were…
nikitablack
  • 4,359
  • 2
  • 35
  • 68