Closed
Bug 912959
Opened 11 years ago
Closed 11 years ago
libxul.so link fails - ToNumberSlow() is built as a hidden symbol
Categories
(Core :: JavaScript Engine, defect)
Tracking
()
RESOLVED
FIXED
mozilla27
People
(Reporter: stransky, Assigned: stransky)
Details
(Whiteboard: [qa-])
Attachments
(1 file, 2 obsolete files)
1.20 KB,
patch
|
luke
:
review+
lsblakk
:
approval-mozilla-aurora+
|
Details | Diff | Splinter Review |
jsnum.h declares ToNumberSlow() by two ways, as extern bool and JS_PUBLIC_API(bool) which causes link failure on gcc-4.8.1-1.fc19.x86_64/Fedora 19. An attached patch sync those declarations. Downstream bug: https://bugzilla.redhat.com/show_bug.cgi?id=1004342
Updated•11 years ago
|
Attachment #800109 -
Flags: review?(luke)
Comment 1•11 years ago
|
||
Jan: I don't see any use of ToNumber() in shell/js.cpp and jsnum.h isn't exported for general mozilla consumption so could the fix instead be to remove the JS_PUBLIC_API?
Comment 2•11 years ago
|
||
(In reply to Luke Wagner [:luke] from comment #1) > Jan: I don't see any use of ToNumber() in shell/js.cpp and jsnum.h isn't > exported for general mozilla consumption so could the fix instead be to > remove the JS_PUBLIC_API? To be clear, I didn't write the patch, just requested review on it. Martin, can you do this, post a new patch and request review from :luke? Thanks!
Flags: needinfo?(stransky)
Assignee | ||
Comment 3•11 years ago
|
||
Well, it's used in dom/bindings/PrimitiveConversions.h. Shall it be transferred to JS_ValueToNumber()?
Flags: needinfo?(stransky) → needinfo?(luke)
Assignee | ||
Comment 4•11 years ago
|
||
Okay, something like this one?
Attachment #800109 -
Attachment is obsolete: true
Attachment #800109 -
Flags: review?(luke)
Attachment #800808 -
Flags: review?(luke)
Comment 5•11 years ago
|
||
Comment on attachment 800109 [details] [diff] [review] js-header.patch Oh wait, I don't know how I missed this but there of course is JS::ToNumber in jsapi.h, so the first patch was exactly the right fix. Sorry for the confusion!
Attachment #800109 -
Flags: review+
Updated•11 years ago
|
Attachment #800109 -
Attachment is obsolete: false
Updated•11 years ago
|
Attachment #800808 -
Attachment is obsolete: true
Attachment #800808 -
Flags: review?(luke)
Updated•11 years ago
|
Flags: needinfo?(luke)
Assignee | ||
Updated•11 years ago
|
Keywords: checkin-needed
Comment 6•11 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/c3b01d22caa9
Keywords: checkin-needed
Comment 7•11 years ago
|
||
Backed out for Windows bustage. https://hg.mozilla.org/integration/mozilla-inbound/rev/486b61c42838 https://tbpl.mozilla.org/php/getParsedLog.php?id=27577249&tree=Mozilla-Inbound
The patch fixes the failure for me when building Thunderbird on Linux, 32bit, gcc 4.8.1.
Assignee | ||
Comment 9•11 years ago
|
||
Try: https://tbpl.mozilla.org/?tree=Try&rev=f02e5bd0304c
Assignee | ||
Comment 10•11 years ago
|
||
Comment on attachment 807167 [details] [diff] [review] js_header v2 This one handles the Windows failures, try seems to be ok.
Attachment #807167 -
Flags: review?(luke)
Assignee | ||
Updated•11 years ago
|
Attachment #800109 -
Attachment is obsolete: true
Updated•11 years ago
|
Attachment #807167 -
Flags: review?(luke) → review+
Assignee | ||
Updated•11 years ago
|
Keywords: checkin-needed
Comment 11•11 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/60c4c441b5a2
Keywords: checkin-needed
Comment 12•11 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/60c4c441b5a2
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla27
Updated•11 years ago
|
Assignee: general → stransky
Updated•11 years ago
|
status-firefox26:
--- → affected
Comment 13•11 years ago
|
||
Comment on attachment 807167 [details] [diff] [review] js_header v2 [Approval Request Comment] User impact if declined: Build failure in some setups. Testing completed (on m-c, etc.): This has been on m-c for a while, now, and I've been patching aurora locally successfully. Risk to taking this patch (and alternatives if risky): None. This only makes a declaration in a header match the actual declaration of the function in the source file. String or IDL/UUID changes made by this patch: None
Attachment #807167 -
Flags: approval-mozilla-aurora?
Updated•11 years ago
|
Attachment #807167 -
Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
Comment 14•11 years ago
|
||
https://hg.mozilla.org/releases/mozilla-aurora/rev/7c710add681e
status-firefox27:
--- → fixed
Updated•11 years ago
|
Whiteboard: [qa-]
You need to log in
before you can comment on or make changes to this bug.
Description
•