From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8827 invoked by alias); 10 Aug 2014 17:10:59 -0000 Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: glibc-bugs-owner@sourceware.org Received: (qmail 8808 invoked by uid 48); 10 Aug 2014 17:10:55 -0000 From: "bpshacklett at gmail dot com" To: glibc-bugs@sourceware.org Subject: [Bug dynamic-link/17251] RPATH of shared libraries doesn't follow symlinks for $ORIGIN Date: Sun, 10 Aug 2014 17:10:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: dynamic-link X-Bugzilla-Version: 2.19 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: bpshacklett at gmail dot com X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-08/txt/msg00025.txt.bz2 https://sourceware.org/bugzilla/show_bug.cgi?id=17251 --- Comment #1 from Brennan Shacklett --- 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.