Closed Bug 861980 Opened 11 years ago Closed 11 years ago

B2G Desktop does not compile on Ubuntu 12.04 due to bluetooth socket type issues

Categories

(Firefox OS Graveyard :: Bluetooth, defect)

x86_64
Linux
defect
Not set
normal

Tracking

(blocking-b2g:tef+, firefox21 wontfix, firefox22 wontfix, firefox23 fixed, b2g18 fixed, b2g18-v1.0.0 wontfix, b2g18-v1.0.1 fixed)

RESOLVED FIXED
blocking-b2g tef+
Tracking Status
firefox21 --- wontfix
firefox22 --- wontfix
firefox23 --- fixed
b2g18 --- fixed
b2g18-v1.0.0 --- wontfix
b2g18-v1.0.1 --- fixed

People

(Reporter: qdot, Assigned: qdot)

Details

(Whiteboard: QARegressExclude)

Attachments

(1 file, 1 obsolete file)

/share/code/mozbuild/mozilla-central/dom/bluetooth/BluetoothUnixSocketConnector.cpp: In member function ‘virtual bool mozilla::dom::bluetooth::BluetoothUnixSocketConnector::SetUp(int)’:
/share/code/mozbuild/mozilla-central/dom/bluetooth/BluetoothUnixSocketConnector.cpp:127:50: error: invalid conversion from ‘int*’ to ‘socklen_t* {aka unsigned int*}’ [-fpermissive]
/usr/include/x86_64-linux-gnu/sys/socket.h:190:12: error:   initializing argument 5 of ‘int getsockopt(int, int, int, void*, socklen_t*)’ [-fpermissive]

Came in with bug 823803. Thought we were building desktop on tbpl, but guess not.
Changed type, also removed sizeof because we set the optlen in the getsockopt call right after it.
Attachment #737604 - Flags: review?(echou)
Oops. Forgot that we needed the initial struct size in getsockopt, so readded sizeof. :)
Attachment #737604 - Attachment is obsolete: true
Attachment #737604 - Flags: review?(echou)
Attachment #737605 - Flags: review?(echou)
Marking tef+ because bug 823803 was uplifted already.
blocking-b2g: --- → tef?
Comment on attachment 737605 [details] [diff] [review]
Patch 1 (v2) - Change sockopt length to be a socklen_t

Review of attachment 737605 [details] [diff] [review]:
-----------------------------------------------------------------

Thanks.
Attachment #737605 - Flags: review?(echou) → review+
blocking-b2g: tef? → tef+
Whiteboard: [status: needs landing]
https://hg.mozilla.org/mozilla-central/rev/14810c6f3dde
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Whiteboard: [status: needs landing]
Can you please provide steps to verify this fix - as we will blackbox test from the UI?
Flags: needinfo?
This is tested by the sheer fact that it compiles at all. :)
Flags: needinfo?
Marking as QARegressExclude
Whiteboard: QARegressExclude
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: