extism / extism-sqlite3

Use Extism plugins from SQLite3
https://extism.org
ISC License
23 stars 1 forks source link

is it support extism 0.3 #3

Closed taoistwar closed 1 year ago

taoistwar commented 1 year ago

make fail, error message is:

bigdata@Work-for-NGY:~/gitrepo/extism-sqlite3$ make
cc -shared -fPIC -o libextism_sqlite3.so extism_sqlite3.c -lextism -L.
extism_sqlite3.c: In function ‘ext_load’:
extism_sqlite3.c:60:25: error: too few arguments to function ‘extism_plugin_new’
   60 |   ExtismPlugin plugin = extism_plugin_new(context, wasm, len, false);
      |                         ^~~~~~~~~~~~~~~~~
In file included from extism_sqlite3.c:5:
/usr/local/include/extism.h:167:14: note: declared here
  167 | ExtismPlugin extism_plugin_new(ExtismContext *ctx,
      |              ^~~~~~~~~~~~~~~~~
make: *** [Makefile:2: lib] Error 1

bigdata@Work-for-NGY:~/gitrepo/extism-sqlite3$ extism info

Prefix  /usr/local
Version v0.3.0
nilslice commented 1 year ago

Hi @taoistwar - I think you're right, we need to update this example to work with the latest version. Thanks for bringing this up!

nilslice commented 1 year ago

@taoistwar - this should be fixed now, but please let us know if that's not the case. Thanks!