Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 161958 - avoid using LD_LIBRARY_PATH
Summary: avoid using LD_LIBRARY_PATH
Alias: None
Product: Fedora
Classification: Fedora
Component: firefox
Version: 4
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Christopher Aillon
QA Contact:
Depends On:
TreeView+ depends on / blocked
Reported: 2005-06-28 18:55 UTC by dann
Modified: 2007-11-30 22:11 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2006-08-30 07:14:04 UTC

Attachments (Terms of Use)

Description dann 2005-06-28 18:55:56 UTC
Description of problem:
The firefox script sets the LD_LIBRARY_PATH variable. 
Because of this when firefox starts up the dynamic linker has to look in many
more places for each dynamic library, so it will generate a lot of extra 
"open" system calls, which slows down the startup time.

To test this just strace firefox-bin and grep for "open"

Currently LD_LIBRARY_PATH is needed because 
cannot otherwise find and
(see ldd /usr/lib/firefox-1.0.4/firefox-bin)

Maybe adding some rpath flags when building firefox can solve the above problem. 
Would that be enought to get rid of LD_LIBRARY_PATH? 

Version-Release number of selected component (if applicable):

Comment 1 Bill Crawford 2005-08-16 20:10:06 UTC
This is also preventing prelinking.

Comment 2 dann 2005-08-16 21:12:21 UTC
This also prevents eclipse from eliminating LD_LIBRARY_PATH

Comment 3 Nitin Dahyabhai 2005-08-18 22:02:40 UTC
What about the gre.conf?

Comment 4 dann 2005-08-24 19:16:06 UTC
(In reply to comment #3)
> What about the gre.conf?

AFAIK it does not have an influence. 
The issue is that 'ldd /usr/lib/mozilla-1.7.10/mozilla-bin'
shows that is not found, that is the reason LD_LIBRARY_PATH needs to
be set when running /usr/lib/mozilla-1.7.10/mozilla-bin

Comment 5 dann 2006-04-30 18:11:11 UTC
Another point: because of this the firefox binary cannot be prelinked. 

The fix is simple, just add -rpath with the directory to the link
line for firefox-bin...

Note You need to log in before you can comment on or make changes to this bug.