Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Red Hat This forum is for the discussion of Red Hat Linux.


  Search this Thread
Old 03-26-2008, 05:39 PM   #1
LQ Newbie
Registered: Mar 2008
Location: Wisconsin
Posts: 4

Rep: Reputation: 0
RedHat Dynamic loader shared library search order is backward


I am working on enterprise release 4 and setting the variable LD_DEBUG=all to see how the loader is finding shared libraries for a program. The output says it is looking along $PATH variable, then the -rpath from the link, then the LD_LIBRARY_PATH, and then finally the /etc/ file. I thought Linux created the cache file to enhance performance on lookups and here it is using it as the last resort. I have tried doing some searches on the web related to this and haven't found anything. Anyone know about this and if this is a bug or can you control the order somehow?

Last edited by rjbdevr; 04-23-2008 at 11:30 AM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
list library function of a shared library .so powah Linux - General 7 10-25-2011 05:47 AM
Convert static library (Filename.a) to dynamic shared object ( afx2029 Linux - Software 4 08-17-2007 07:07 AM
Making a static library from a given shared library vro Programming 1 07-27-2007 05:07 PM
LINUX - linking archive (static library) with shared (dynamic) library gurkama Programming 5 03-05-2007 12:11 AM
howto compile bin with my library using all-static and shared linked standart library stpg Programming 4 06-29-2004 05:20 AM

All times are GMT -5. The time now is 01:42 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration