~subsetpark/bagatto#14: 
Can’t import library with native component

Z. D. Smith: I tried to just import markable, but it errs with error: could not load native /usr/local/lib/janet/markable.so: /usr/local/lib/janet/markable.so: undefined symbol: janet_getkeyword should I create the todo for this?

Status
REPORTED
Submitter
~subsetpark
Assigned to
No-one
Submitted
1 year, 11 months ago
Updated
1 year, 10 months ago
Labels
bug

~subsetpark 1 year, 11 months ago

repl:8:> (array/push module/paths ["vendor/:all::native:" :native])
@[(<function is-cached> :preload) (":cur:/:all:.jimage" :image <function check-.>) (":cur:/:all:.janet" :source <function check-.>) (":cur:/:all:/init.janet" :source <function check-.>) (":cur:/:all::native:" :native <function check-.>) (":sys:/:all:.jimage" :image <function not-check-.>) (":sys:/:all:.janet" :source <function not-check-.>) (":sys:/:all:/init.janet" :source <function not-check-.>) (":sys:/:all::native:" :native <function not-check-.>) (":all:.jimage" :image <function not-check-.>) (":all:.janet" :source <function not-check-.>) (":all:/init.janet" :source <function not-check-.>) (":all::native:" :native <function not-check-.>) ("vendor/:all::native:" :native)]
repl:9:> (import markable)
@{_ @{:value <cycle 0>} markable/markdown->html @{:private true}}

Appending to module/paths makes for working imports in the repl. Need to confirm the same will happen in compiled bag binary.

~subsetpark 1 year, 10 months ago

After inclusion in a template:

could not load native janet_modules/moondown.so: janet_modules/moondown.so: undefined symbol: janet_cfuns.

Seems like a hard constraint...?

Register here or Log in to comment, or comment via email.