Fix implicit declaration of page_close on Linux #20
Reference in New Issue
Block a user
Delete Branch "fix/stage-source-check"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.