Closed Bug 288423 Opened 19 years ago Closed 19 years ago

applications don't prelink

Categories

(Firefox Build System :: General, defect)

x86
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: caillon, Unassigned)

References

()

Details

Note that this affects firefox, mozilla, and thunderbird:

From https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=106837

Description of problem:
after a prelink run, in the /var/log/prelink.log there is the followings:

/usr/sbin/prelink: /usr/lib/mozilla-1.4.1/mozilla-bin: Could not parse
`/usr/lib/mozilla-1.4.1/mozilla-bin: error while loading shared libraries:
libmozjs.so: cannot open shared object file: No such file or directory'
/usr/sbin/prelink: /usr/lib/mozilla-1.4.1/regchrome: Could not parse
`/usr/lib/mozilla-1.4.1/regchrome: error while loading shared libraries:
libxpcom.so: cannot open shared object file: No such file or directory'

libmozjs.so and libxpcom.so are in /usr/lib/mozilla-1.4.1


mozilla should be solved by adding -Wl,-rpath,'$ORIGIN'
to mozilla-bin link line (and epiphany by adding -Wl,-rpath,/usr/lib/mozilla-1.4.1
What's $ORIGIN? is it based on --prefix + something? I think that we should add
this as a build option for the distro builds, but not for the m.o binaries,
since people may not unpack their own build into /usr/lib/mozilla-* and then
they can easily pick up the wrong sharedlibs.
Unless we're going to change the m.o distribution story wrt a portable binary
distribution, we cannot use -rpath for the default mozilla builds.  This problem
should be resolved in the distribution build scripts.
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → WONTFIX
*** Bug 327141 has been marked as a duplicate of this bug. ***
Product: Core → Firefox Build System
You need to log in before you can comment on or make changes to this bug.