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)

x86_64
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 920551

People

(Reporter: vicamo, Assigned: chucklee)

References

Details

Attachments

(2 files, 2 obsolete files)

Attached file desktop.mozconfig (deleted) —
+++ 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
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
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.
Nominate for koi+ for we have to above reason.
Blocks: 920551
blocking-b2g: --- → koi?
(In reply to Vicamo Yang [:vicamo][:vyang] from comment #2) > Nominate for koi+ for above reason. Sorry, press 'save' button too early.
Assignee: nobody → chulee
Attached patch WIP : Change build condition. (obsolete) (deleted) — Splinter Review
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)
Run try to make sure WIP patch can be built on all platform : https://tbpl.mozilla.org/?tree=Try&rev=4daa6bdae203
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-
Attached patch WIP. Change keystore ipc depedency. (obsolete) (deleted) — Splinter Review
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)
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)
Attached patch Change keystore ipc depedency. (deleted) — Splinter Review
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)
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)
Attachment #819522 - Flags: review?(kyle) → review+
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 :)
Look like we can mark it as duplicate of bug 920551 now. Thank you!
No longer blocks: 920551
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → DUPLICATE
Attachment #819522 - Flags: review?(vyang)
blocking-b2g: koi? → ---
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: