This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug dynamic-link/17251] RPATH of shared libraries doesn't follow symlinks for $ORIGIN


https://sourceware.org/bugzilla/show_bug.cgi?id=17251

--- Comment #1 from Brennan Shacklett <bpshacklett at gmail dot com> ---
Oops, sorry for the empty description, firefox decided to submit the form when
I hit enter.
The issue is that if a shared library has $ORIGIN in its RPATH, $ORIGIN is not
calculated as the real path of the library.

This can easily be shown with two shared libraries and a symlink:

libone.so and libtwo.so are both in a directory named ~/lib
libone.so needs libtwo.so, and has an RPATH of "$ORIGIN" so libtwo.so can be
found.
If I cd into ~/lib and run ldd on libone.so, libtwo.so is found.
If I create a symlink from ~/libone.so to ~/lib/libone.so, and run ldd on the
symlink at ~/libone.so, libtwo.so can no longer be found because $ORIGIN is not
calculated as ~ rather than ~/lib

-- 
You are receiving this mail because:
You are on the CC list for the bug.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]