Closed
Bug 928112
Opened 11 years ago
Closed 11 years ago
Failed to build b2g-desktop, error: 'unlink' and 'NAME_MAX' were not declared in this scope
Categories
(Firefox OS Graveyard :: Wifi, defect)
Tracking
(Not tracked)
RESOLVED
DUPLICATE
of bug 920551
People
(Reporter: vicamo, Assigned: chucklee)
References
Details
Attachments
(2 files, 2 obsolete files)
+++ This bug was initially created as a clone of Bug #789217 +++
Failed to building b2g-desktop when compiling ipc/keystore/KeyStore.cpp:
ipc/keystore/KeyStore.cpp:40:30: error: 'unlink' was not declared in this scope
ipc/keystore/KeyStore.h:37:31: error: 'NAME_MAX' was not declared in this scope
Reporter | ||
Updated•11 years ago
|
Summary: [Wifi] Support keystore protocol for wpa_supplicant to read CA from NSS → Failed to build b2g-desktop, error: 'unlink' and 'NAME_MAX' were not declared in this scope
Reporter | ||
Comment 1•11 years ago
|
||
Since B2G WiFi is only available on Gonk, I suggest guard ipc/keystore with MOZ_WIDGET_GONK instead of MOZ_B2G_RIL. Actually, we're going to allow building B2G without RIL (see bug 920551), which follows MOZ_B2G_RIL will not be defined in that case, and that will certainly break current keystore code.
Reporter | ||
Comment 2•11 years ago
|
||
Nominate for koi+ for we have to above reason.
Blocks: 920551
blocking-b2g: --- → koi?
Reporter | ||
Comment 3•11 years ago
|
||
(In reply to Vicamo Yang [:vicamo][:vyang] from comment #2)
> Nominate for koi+ for above reason.
Sorry, press 'save' button too early.
Assignee | ||
Updated•11 years ago
|
Assignee: nobody → chulee
Assignee | ||
Comment 4•11 years ago
|
||
Change build rule per but 789217 comment 52.
unixsocket ipc is required for keystore, but BT might not always be enabled under condition |MOZ_WIDGET_TOOKIT == 'gonk'|.
So the new rule is always enable unixsocket and keystore ipc under gonk. Otherwise, enable unixsocket based on BT flag.
Attachment #818898 -
Flags: feedback?(khuey)
Assignee | ||
Updated•11 years ago
|
Attachment #818898 -
Flags: feedback?(vyang)
Assignee | ||
Comment 5•11 years ago
|
||
Run try to make sure WIP patch can be built on all platform : https://tbpl.mozilla.org/?tree=Try&rev=4daa6bdae203
Reporter | ||
Comment 6•11 years ago
|
||
Comment on attachment 818898 [details] [diff] [review]
WIP : Change build condition.
Review of attachment 818898 [details] [diff] [review]:
-----------------------------------------------------------------
SystemWorkerManager.cpp:34:34: fatal error: mozilla/ipc/KeyStore.h: No such file or directory
14:15.56 make[5]: *** [SystemWorkerManager.o] Error 1
14:15.56 make[4]: *** [dom/system/gonk/compile] Error 2
14:15.56 make[4]: *** Waiting for unfinished jobs....
I must add b2g-desktop is officially built without MOZ_B2G_RIL, so the patch here works fine. But since the original problem is bug 789217 fails b2g-desktop build with MOZ_B2G_RIL enabled, so this patch doesn't really solve the core issue.
https://developer.mozilla.org/en-US/docs/Mozilla/Firefox_OS/Using_the_B2G_desktop_client
Attachment #818898 -
Flags: feedback?(vyang) → feedback-
Assignee | ||
Comment 7•11 years ago
|
||
Fix build error mentioned in comment 6.
Attachment #818898 -
Attachment is obsolete: true
Attachment #818898 -
Flags: feedback?(khuey)
Attachment #818951 -
Flags: feedback?(vyang)
Attachment #818951 -
Flags: feedback?(khuey)
Assignee | ||
Comment 8•11 years ago
|
||
Comment on attachment 818951 [details] [diff] [review]
WIP. Change keystore ipc depedency.
There's still build error.
Attachment #818951 -
Attachment is obsolete: true
Attachment #818951 -
Flags: feedback?(vyang)
Attachment #818951 -
Flags: feedback?(khuey)
Assignee | ||
Comment 9•11 years ago
|
||
1. build keystore and unixsocket while using gonk.
2. build unixsocket when bluetooth support is enabled but not using gonk.
Attachment #819522 -
Flags: review?(vyang)
Attachment #819522 -
Flags: review?(khuey)
Attachment #819522 -
Flags: review?(echou)
Assignee | ||
Comment 10•11 years ago
|
||
Make sure everything is fine : https://tbpl.mozilla.org/?tree=Try&rev=7cb7b46a51cc
Attachment #819522 -
Flags: review?(khuey) → review+
Comment 11•11 years ago
|
||
Comment on attachment 819522 [details] [diff] [review]
Change keystore ipc depedency.
Review of attachment 819522 [details] [diff] [review]:
-----------------------------------------------------------------
This patch isn't related to Bluetooth implementaion very much. khuey and vicamo are much more qualified than me to review this. :)
Attachment #819522 -
Flags: review?(echou)
Assignee | ||
Updated•11 years ago
|
Attachment #819522 -
Flags: review?(kyle)
Updated•11 years ago
|
Attachment #819522 -
Flags: review?(kyle) → review+
Reporter | ||
Comment 12•11 years ago
|
||
Comment on attachment 819522 [details] [diff] [review]
Change keystore ipc depedency.
Review of attachment 819522 [details] [diff] [review]:
-----------------------------------------------------------------
Bug 920551 is going to remove all MOZ_WIDGET_GONK labels in dom/system/gonk because we'll only compile stuff inside when we're really building b2g with Gonk. Unless the review prefers another way, the lines added in this patch will soon be removed again. So I'd like to wait for the result there and see if we really need this. Thank you, Chuck :)
Reporter | ||
Comment 13•11 years ago
|
||
Look like we can mark it as duplicate of bug 920551 now. Thank you!
Reporter | ||
Updated•11 years ago
|
Attachment #819522 -
Flags: review?(vyang)
Updated•11 years ago
|
blocking-b2g: koi? → ---
You need to log in
before you can comment on or make changes to this bug.
Description
•