Search Postgresql Archives

Re: Pgxs - How to reference another extension

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> On 11 Mar 2024, at 11:41, Michał Kłeczek <michal@xxxxxxxxxxx> 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





[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]

  Powered by Linux