Closed Bug 1408482 Opened 7 years ago Closed 7 years ago

dom/html/HTMLMediaElement.cpp:4883:5: error: 'SprintfLiteral' was not declared in this scope

Categories

(Core :: Audio/Video: Playback, defect, P3)

defect

Tracking

()

RESOLVED FIXED
mozilla58
Tracking Status
firefox-esr52 --- unaffected
firefox56 --- unaffected
firefox57 --- unaffected
firefox58 --- fixed

People

(Reporter: jbeich, Assigned: jwwang)

References

Details

(Keywords: regression)

Attachments

(1 file)

On Tier3 platforms without GeckoProfiler (iOS, Linux non-x86, BSDs, Solaris) the build is broken because "GeckoProfiler.h" doesn't bootleg "mozilla/Sprintf.h". To reproduce on Tier1 platforms before bug 1371159 is fixed one has to force `return None` in gecko_profiler()[2].

In file included from objdir/dom/html/Unified_cpp_dom_html2.cpp:11:
dom/html/HTMLMediaElement.cpp:4883:5: error: use of undeclared identifier
      'SprintfLiteral'
    SprintfLiteral(buf,
    ^
1 error generated.

In file included from objdir/dom/html/Unified_cpp_dom_html2.cpp:2:
In file included from dom/html/HTMLMapElement.cpp:7:
In file included from objdir/dist/include/mozilla/dom/HTMLMapElement.h:11:
In file included from dom/html/nsGenericHTMLElement.h:11:
In file included from dom/base/nsMappedAttributeElement.h:16:
In file included from objdir/dist/include/mozilla/GenericSpecifiedValues.h:19:
In file included from objdir/dist/include/nsPresContext.h:41:
In file included from objdir/dist/include/ScrollbarStyles.h:12:
In file included from objdir/dist/include/mozilla/dom/WindowBinding.h:14:
In file included from objdir/dist/include/mozilla/dom/ToJSValue.h:12:
In file included from objdir/dist/include/mozilla/dom/BindingUtils.h:35:
In file included from dom/base/nsJSUtils.h:19:
In file included from objdir/dist/include/GeckoProfiler.h:60:
objdir/dist/include/mozilla/Sprintf.h:12:2: error: bootlegging test

[1] http://searchfox.org/mozilla-central/rev/ed1d5223adcd/tools/profiler/public/GeckoProfiler.h#62
[2] http://searchfox.org/mozilla-central/rev/ed1d5223adcd/toolkit/moz.configure#26
Attachment #8919117 - Flags: review?(gsquelart)
Assignee: nobody → jwwang
Comment on attachment 8919117 [details]
Bug 1408482 - fix build error.

I confirm this fixes FreeBSD build.
Attachment #8919117 - Flags: feedback+
Thanks!
https://hg.mozilla.org/mozilla-central/rev/3e0104c1ce80
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla58
Blocks: 1415788
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: