public inbox for [email protected]
help / color / mirror / Atom feedFrom: Andrew Dunstan <[email protected]>
To: mahendrakar s <[email protected]>
To: pgsql-novice <[email protected]>
Subject: Re: using libjansson in postgres extension
Date: Sat, 25 Feb 2023 10:54:52 -0500
Message-ID: <[email protected]> (raw)
In-Reply-To: <CABkiuWpS0d24E4rZV9WhWuWM6BBgi3P3pti5seuAgKOkhVJ7TA@mail.gmail.com>
References: <CABkiuWpifg0tA_odWOXMXcJEQ8ghk3n+amEFB_0Dg33fEmR6TA@mail.gmail.com>
<CABkiuWpS0d24E4rZV9WhWuWM6BBgi3P3pti5seuAgKOkhVJ7TA@mail.gmail.com>
On 2023-02-23 Th 20:59, mahendrakar s wrote:
>
> On Thu, 23 Feb 2023 at 19:08, mahendrakar s
> <[email protected]> wrote:
>
> Hello Hackers,
>
> I'm developing an extension where in it indirectly references
> (libjansson) and libjansson has a symbol json_object
> <https://github.com/akheron/jansson/blob/master/src/load.c#:~:text=json_t%20*object%20%3D%20json_obje...
> conflicts with postgres symbol 'json_object
> <https://github.com/postgres/postgres/blob/master/src/backend/utils/adt/json.c#:~:text=json_object(PG...;.
>
> I see below:
> PostgreSQL: Documentation: 11: 38.10. C-Language Functions
> <https://www.postgresql.org/docs/11/xfunc-c.html#id-1.8.3.13.8;
> "Symbol names defined within object files must not conflict with
> each other or with symbols defined in the PostgreSQL server
> executable. You will have to rename your functions or variables if
> you get error messages to this effect."
>
> But this requires to maintain libjansson with customizations(have
> a different symbol) to meet the needs.
>
> Do you have any suggestions to use the libjansson 'as it is'
> without using the different symbol.
>
>
No. AFAICT you will have to create a fork of the library as the
documentation suggests.
cheers
andrew
--
Andrew Dunstan
EDB:https://www.enterprisedb.com
view thread (4+ messages)
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: [email protected]
Cc: [email protected], [email protected], [email protected]
Subject: Re: using libjansson in postgres extension
In-Reply-To: <[email protected]>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox