| From: | Michał Kłeczek <michal(at)kleczek(dot)org> |
|---|---|
| To: | pgsql-general <pgsql-general(at)lists(dot)postgresql(dot)org> |
| Subject: | Re: Pgxs - How to reference another extension |
| Date: | 2024-03-11 12:26:00 |
| Message-ID: | 98BD6A59-DD01-4F6B-8468-8C44B8C81878@kleczek.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
> On 11 Mar 2024, at 11:41, Michał Kłeczek <michal(at)kleczek(dot)org> wrote:
>
> Hi,
>
> I am trying to create an extension that delegates some calls to btree_gist functions:
>
> DirectFunctionCall5Coll(
> gbt_text_consistent, …other arguments);
>
> Basic PGXS Makefile does not work - I get linker error:
>
> Undefined symbols for architecture arm64:
> "_gbt_text_consistent", referenced from:
>
>
> Anyone could provide me with some hints?
I’ve added:
PG_LDFLAGS += -L$(shell $(PG_CONFIG) --pkglibdir) -lbtree_gist
to Makefile and I get the following:
ld: library 'btree_gist' not found
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Note that I am on Mac and btree_gist.dylib is present in $(pg_config —pkglibdir)
—
Michal
| From | Date | Subject | |
|---|---|---|---|
| Next Message | normandavis1990 | 2024-03-11 12:32:25 | Re: Create a standby server |
| Previous Message | Stephen Frost | 2024-03-11 12:13:45 | Re: Create a standby server |