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

**URL:** <https://swi-prolog.discourse.group/t/building-prosqlite-from-source-with-a-view-towards-osquery/7495>\
**Category:** General\
**Created:** [June 1, 2024, 11:00pm UTC](https://swi-prolog.discourse.group/t/building-prosqlite-from-source-with-a-view-towards-osquery/7495 "2024-06-01T23:00:32Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![yziquel](https://avatars.discourse-cdn.com/v4/letter/y/d9b06d/32.png) [@yziquel](https://swi-prolog.discourse.group/u/yziquel)\
**Post date:** [June 1, 2024, 11:00pm UTC](https://swi-prolog.discourse.group/t/building-prosqlite-from-source-with-a-view-towards-osquery/7495/1 "2024-06-01T23:00:32Z")

</div>

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.

> **[GitHub - nicos-angelopoulos/prosqlite: An SWI-Prolog interface to SQLite](https://github.com/nicos-angelopoulos/prosqlite)**
>
> An SWI-Prolog interface to SQLite. Contribute to nicos-angelopoulos/prosqlite development by creating an account on GitHub.

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.

---

<div class="post-metadata">

**Author:** ![EricGT](https://avatars.discourse-cdn.com/v4/letter/e/f1d935/32.png) [@EricGT](https://swi-prolog.discourse.group/u/EricGT)\
**Post date:** [June 2, 2024, 9:13am UTC](https://swi-prolog.discourse.group/t/building-prosqlite-from-source-with-a-view-towards-osquery/7495/2 "2024-06-02T09:13:54Z")

</div>

FYI for others.

This is a duplicate question. Please use

> [@Building prosqlite from source ? (with a view towards osquery)](https://swi-prolog.discourse.group/t/building-prosqlite-from-source-with-a-view-towards-osquery/7493):
>
> Hi. I’ve been trying to get to grips with SWI prolog. As I like to build things from source, I’ve been looking at how to build prosqlite from source. Little build documentation. I tried: CFLAGS=-I/location/of/lib/swipl/include LDSOFLAGS=-lc PACKSODIR=$PWD/build make Not very conclusive: prosqlite.c:(.text+0x22): undefined reference to `PL\_blob\_data’ And lots of errors like that. So. How do you people build stuff from source in the prolog world ? Context: investigating how to integrate…
