Closed Bug 1123077 Opened 9 years ago Closed 9 years ago

[Flatfish] build broken due to missing defines for Bluetooth

Categories

(Firefox OS Graveyard :: Bluetooth, defect)

All
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(firefox38 fixed)

RESOLVED FIXED
2.2 S5 (6feb)
Tracking Status
firefox38 --- fixed

People

(Reporter: gerard-majax, Assigned: tzimmermann)

References

Details

Attachments

(1 file)

In file included from ../../../gecko/dom/bluetooth/bluedroid/BluetoothA2dpHALInterface.cpp:8:0:
../../../gecko/dom/bluetooth/bluedroid/BluetoothHALHelpers.h: In function 'nsresult mozilla::dom::bluetooth::Convert(bt_property_type_t, mozilla::dom::bluetooth::BluetoothPropertyType&)':
../../../gecko/dom/bluetooth/bluedroid/BluetoothHALHelpers.h:201:6: error: 'BT_PROPERTY_REMOTE_VERSION_INFO' was not declared in this scope
     CONVERT(BT_PROPERTY_REMOTE_VERSION_INFO,PROPERTY_REMOTE_VERSION_INFO)
      ^
../../../gecko/dom/bluetooth/bluedroid/BluetoothHALHelpers.h:202:3: error: name used in a GNU-style designated initializer for an array

As far as I can say, the value BT_PROPERTY_REMOTE_VERSION_INFO do not exists in the <hardware/bluetooth.h> file used by Flatfish device.
Flags: needinfo?(tzimmermann)
I'll fix that, thanks for reporting. Flatfish is painful to work with. We had multiple such bugs.
Assignee: nobody → tzimmermann
Status: NEW → ASSIGNED
Flags: needinfo?(tzimmermann)
Component: DOM: Device Interfaces → Bluetooth
Product: Core → Firefox OS
Hardware: ARM → All
Need to fix some build problems first, I guess.
Depends on: 1122932
And this one too
Depends on: 1123072
Depends on: 1127690
This should fix the build break. BT_PROPERTY_REMOTE_VERSION_INFO is not defined in Android 4.2 (API level 17) but it appears in Android 4.3 (API level 18).

diff --git a/dom/bluetooth/bluedroid/BluetoothHALHelpers.h b/dom/bluetooth/bluedroid/BluetoothHALHelpers.h
index 4827f7f..b87e35e 100644
--- a/dom/bluetooth/bluedroid/BluetoothHALHelpers.h
+++ b/dom/bluetooth/bluedroid/BluetoothHALHelpers.h
@@ -198,7 +198,9 @@ Convert(bt_property_type_t aIn, BluetoothPropertyType& aOut)
       PROPERTY_ADAPTER_DISCOVERY_TIMEOUT),
     CONVERT(BT_PROPERTY_REMOTE_FRIENDLY_NAME, PROPERTY_REMOTE_FRIENDLY_NAME),
     CONVERT(BT_PROPERTY_REMOTE_RSSI, PROPERTY_REMOTE_RSSI),
+#if ANDROID_VERSION >= 18
     CONVERT(BT_PROPERTY_REMOTE_VERSION_INFO,PROPERTY_REMOTE_VERSION_INFO)
+#endif
   };
Hi, trailing comma in enum might not be supported on old compiler, but trailing comma in array should be allowed at all time, right?
https://hg.mozilla.org/mozilla-central/rev/4d3548b9bceb
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → 2.2 S5 (6feb)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: