On 8/7/2012 5:57 PM, Kevin Gadd wrote:
Hey all,

I tried doing a fresh build (no existing cruft in my build directory)
of Firefox and associated stuff on a fresh install of Ubuntu 12, with
a hg checkout of trunk from a few days ago. While the nightly Firefox
(dist/bin/firefox) produced runs just fine, jsshell doesn't work
anymore. The problem seems to be that a new function was added to NSPR
(PR_SetCurrentThreadName), but the jsshell produced by the build
process is using the NSPR from my system:

libnspr4.so => /usr/lib/i386-linux-gnu/libnspr4.so

The same issue here with the jsshell builds published at the http://ftp.mozilla.org/pub/mozilla.org/firefox/nightly/latest-mozilla-central/ . The js shell works when its location is specified in PATH, which I did not want to do that.

Bisecting brought me to bug 720778 - Important threads should have a name for better debugability

http://hg.mozilla.org/mozilla-central/rev/772d9d20cdf9

Which takes advantage of the new PR_SetCurrentThreadName, which is not available for nspr4 version less than 4.9.2. Even if libnspr4.so placed in the same folder as js, the other/older libnspr4.so is picked up. I ended up renaming "js" to "js-bin" and adding the "js" proxy bash script that sets the LD_LIBRARY_PATH:

#!/bin/bash
scriptpath=${0%/*}
LD_LIBRARY_PATH=$scriptpath:$LD_LIBRARY_PATH $scriptpath/js-bin $@

Thanks,
Yury
_______________________________________________
dev-platform mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to