I added the original code for libkona about 4 years back but
haven't done anything with it since then.
kapi-test passes its tests on arm and x86 but not on x86_64.
Adding the below externs does the trick on both FreeBSD & OSX
(and should work on other platforms):
extern K X(S);
extern K show(K);
extern I attend();
extern void boilerplate();
I will try to submit a pull request with a few more fixes.
IIRC, last when I left it, there was still some issue about
the sfn() function so need to do some testing. Do let me know
if you discover any new issues.
Thanks
Bakul