ffi-shim system snapshot uses utmpx on Android where Bionic lacks usable struct utmpx #75

Open
opened 2026-09-12 01:47:56 -04:00 by ober · 0 comments
Owner

The Android build failed compiling ffi-shim.c in the system snapshot path because Android/Bionic does not provide a usable struct utmpx API even though some names may be visible.

Local workaround was to guard the jsh_system_w_snapshot utmpx loop with #if defined(__ANDROID__), leaving only the header output and marking user_filter unused on Android.

Expected: Android builds should skip or replace the utmpx-backed user/session scan.
Actual: the Linux/Unix utmpx code is compiled on Android and fails.

The Android build failed compiling `ffi-shim.c` in the system snapshot path because Android/Bionic does not provide a usable `struct utmpx` API even though some names may be visible. Local workaround was to guard the `jsh_system_w_snapshot` utmpx loop with `#if defined(__ANDROID__)`, leaving only the header output and marking `user_filter` unused on Android. Expected: Android builds should skip or replace the utmpx-backed user/session scan. Actual: the Linux/Unix utmpx code is compiled on Android and fails.
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
ober/jerboa-shell#75
No description provided.