Closed
Bug 1112043
Opened 10 years ago
Closed 10 years ago
Compilation problem with gcc 4.6: undefined reference to 'mozilla::dom::indexedDB::LoggingString::kCloseBracket'
Categories
(Core :: DOM: Core & HTML, defect)
Tracking
()
RESOLVED
FIXED
mozilla37
People
(Reporter: baku, Assigned: baku)
References
Details
Attachments
(1 file)
1.13 KB,
patch
|
smaug
:
review+
|
Details | Diff | Splinter Review |
I have problem linking with gcc 4.6 in debug builds:
ProfilerHelpers.h:167: error: undefined reference to 'mozilla::dom::indexedDB::LoggingString::kCloseBracket'
.... which may overflow at runtime; recompile with -fPIC
I found a similar issue in bug 906040 comment 6.
Luke wrote:
"I'm pretty sure the problem is this long-standing GCC quirk that it emits references to static const varaibles when they are used in a ternary operator (which you write "static const X = 1", this is a declaration and initialization, but not a *definition* which means, should a symbol ever be emitted for X, it'll be a link error, but mostly symbols never get emitted since the whole point is that they're inlined). The usual fix is either to add a definition or take out the ternary operator."
Assignee | ||
Comment 1•10 years ago
|
||
Attachment #8537161 -
Flags: review?(bugs)
Comment 2•10 years ago
|
||
Comment on attachment 8537161 [details] [diff] [review]
link.patch
If this helps, fine.
Attachment #8537161 -
Flags: review?(bugs) → review+
Assignee | ||
Comment 3•10 years ago
|
||
Comment 5•10 years ago
|
||
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla37
Updated•6 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•