Re: Pgxs - How to reference another extension - Mailing list pgsql-general

From Michał Kłeczek
Subject Re: Pgxs - How to reference another extension
Date
Msg-id 98BD6A59-DD01-4F6B-8468-8C44B8C81878@kleczek.org
Whole thread Raw
In response to Pgxs - How to reference another extension  (Michał Kłeczek <michal@kleczek.org>)
Responses Re: Pgxs - How to reference another extension  (Artur Zakirov <zaartur@gmail.com>)
List pgsql-general
> On 11 Mar 2024, at 11:41, Michał Kłeczek <michal@kleczek.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


pgsql-general by date:

Previous
From: Stephen Frost
Date:
Subject: Re: Create a standby server
Next
From: normandavis1990
Date:
Subject: Re: Create a standby server