Building prosqlite from source ? (with a view towards osquery)

Hi.

I’m attempting to build prosqlite from source. Being new to the prolog world, I wonder how do you people build or do not build from source.

I tried:

CFLAGS=-I/location/to/lib/swipl/include LDSOFLAGS=-lc PACKSODIR=$PWD/build make

And got linking errors:

prosqlite.c:(.text+0x22): undefined reference to `PL_blob_data’

So how do you people build that kind fo stuff from source without too much pain ?

Context: trying to model osquery/swipl integration on what has been done for sqlite as there is a common codebase between osquery and sqlite.

FYI for others.

This is a duplicate question. Please use