Closed Bug 1553900 Opened 5 years ago Closed 5 years ago

objdir/dist/include/WavDumper.h:35:5: error: 'SprintfLiteral' was not declared in this scope

Categories

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

Unspecified
FreeBSD
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla69
Tracking Status
firefox-esr60 --- unaffected
firefox67 --- unaffected
firefox68 --- unaffected
firefox69 --- fixed

People

(Reporter: jbeich, Assigned: jbeich)

References

(Regression)

Details

(Keywords: regression)

Attachments

(1 file)

GeckoProfiler (formerly, SPS profiler) is not available on many Tier3 platforms but bug 1552530 relies on a header conditionally included.

In file included from dom/media/DecoderTraits.cpp:14:
In file included from objdir/dist/include/OggDemuxer.h:11:
In file included from objdir/dist/include/OggCodecState.h:11:
In file included from objdir/dist/include/FlacFrameParser.h:13:
In file included from objdir/dist/include/MediaDecoder.h:19:
In file included from objdir/dist/include/MediaStreamGraph.h:9:
In file included from objdir/dist/include/AudioStream.h:20:
objdir/dist/include/WavDumper.h:35:5: error: use of undeclared
identifier 'SprintfLiteral'
SprintfLiteral(buf, "%s-%d.wav", aBaseName, ++sDumpedAudioCount);
^
1 error generated.

https://searchfox.org/mozilla-central/rev/662de518b168/tools/profiler/public/GeckoProfiler.h#80

In file included from dom/media/DecoderTraits.cpp:8:
In file included from dom/media/MediaContainerType.h:10:
In file included from dom/media/MediaMIMETypes.h:10:
In file included from dom/media/VideoUtils.h:18:
In file included from objdir/dist/include/mozilla/MozPromise.h:13:
In file included from objdir/dist/include/mozilla/Monitor.h:10:
In file included from objdir/dist/include/mozilla/CondVar.h:15:
objdir/dist/include/GeckoProfiler.h:80:2: error: bootlegging check

Platforms without GeckoProfiler are Linux powerpc*/sparc*/s390x, Solaris, DragonFly, FreeBSD, NetBSD, OpenBSD.So, in order to reproduce before bug 1371159 on Tier1 one would have to force gecko_profiler return None.

https://searchfox.org/mozilla-central/rev/662de518b168/toolkit/moz.configure#61-66

No clue if dom/media/ is included in Gecko's media bindings for Rust (see bug 1403868).

Can you help landing the fix?

Flags: needinfo?(padenot)

(In reply to Jan Beich from comment #3)

Can you help landing the fix?

Sure thing, I'll take care of it, thanks for the patch, and sorry to have regressed this!

Flags: needinfo?(padenot)
Assignee: nobody → jbeich
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla69
Has Regression Range: --- → yes
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: