Fix implicit declaration of page_close on Linux #20

Merged
will.anderson merged 1 commits from fix/stage-source-check into dev 2026-05-09 22:54:06 +00:00
Owner

ci-base elb doesn't emit forward declarations for extern fns imported across modules. page_close (an extern fn) is called by main.el, terms.el, and enterprise_terms.el — the compiler saw an implicit int return, truncating the 64-bit pointer on call, causing a startup segfault on Linux.

Fix: rename C function to _page_close_impl, wrap with a native El fn page_close() { return _page_close_impl() } — native El fns get proper forward declarations generated by elb.

ci-base elb doesn't emit forward declarations for extern fns imported across modules. page_close (an extern fn) is called by main.el, terms.el, and enterprise_terms.el — the compiler saw an implicit int return, truncating the 64-bit pointer on call, causing a startup segfault on Linux. Fix: rename C function to _page_close_impl, wrap with a native El fn page_close() { return _page_close_impl() } — native El fns get proper forward declarations generated by elb.
will.anderson added 1 commit 2026-05-09 22:50:14 +00:00
Fix implicit declaration of page_close on Linux: wrap extern as native El fn
Dev — Build & local smoke test / build-smoke (pull_request) Successful in 3m25s
9892d89c01
will.anderson merged commit 0abef440fa into dev 2026-05-09 22:54:06 +00:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: neuron-technologies/neuron-web#20