Closed Bug 1039187 Opened 10 years ago Closed 10 years ago

[Bluetooth] Bluetooth2 build fail

Categories

(Core :: DOM: Core & HTML, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla33

People

(Reporter: tzimmermann, Assigned: peterv)

References

Details

Attachments

(3 files)

Since yesterday, Bluetooth2 builds fail with 

> In file included from LocationBinding.cpp:3:0,
>                  from UnifiedBindings17.cpp:2:
> ../../dist/include/mozilla/dom/LocationBinding.h: In function 'bool mozilla::dom::LocationBinding::IsPermitted(JSFlatString*, jschar, bool)':
> ../../dist/include/mozilla/dom/LocationBinding.h:68:57: error: 'JS_FlatStringEqualsAscii' was not declared in this scope
> ../../dist/include/mozilla/dom/LocationBinding.h:74:61: error: 'JS_FlatStringEqualsAscii' was not declared in this scope
When I apply 'new-api.patch', builds fail. The current Bluetooth module works.
Flags: needinfo?(btian)
I can work around the problem by including 'jsapi.h' in 'LocationBinding.h'.
Patch to enable building Bluetooth2.
Jocelyn found that this problem might have been introduced by bug 832014.
Flags: needinfo?(btian) → needinfo?(peterv)
Just a finding to share, LocationBinding.h can use JS_FlatStringEqualsAscii without include 'jsapi.h' if we didn't apply our newapi-config.patch.
Assignee: nobody → peterv
Blocks: 832014
Status: NEW → ASSIGNED
Flags: needinfo?(peterv)
Hmm.  This is presumably the IsPermitted method.  We could make it out-of-line if that's OK perf wise; else we need to twiddle includes.
Flags: needinfo?(bobbyholley)
Making it out-of-line is probably fine, I think.
Flags: needinfo?(bobbyholley)
Attached patch v1Splinter Review
This keeps it inline but fixes the headers. Let me know if you prefer I do the uninlining instead. diff -w coming up.
Attachment #8458311 - Flags: review?(bzbarsky)
Attached patch v1 (diff -w)Splinter Review
Comment on attachment 8458311 [details] [diff] [review]
v1

>+            elif descriptor.needsSpecialGenericOps():
>+                props.isSetter = True
>+        elif m.getExtendedAttribute("Replaceable"):
>+            if descriptor.needsSpecialGenericOps():
>+                props.isSetter = True

Those should both be isGenericSetter, no?

r=me with that fixed
Attachment #8458311 - Flags: review?(bzbarsky) → review+
https://hg.mozilla.org/mozilla-central/rev/e53c1891fd6b
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → 2.1 S2 (15aug)
Component: Bluetooth → DOM
Product: Firefox OS → Core
Target Milestone: 2.1 S2 (15aug) → mozilla33
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: