Re: using libjansson in postgres extension - Mailing list pgsql-novice

From mahendrakar s
Subject Re: using libjansson in postgres extension
Date
Msg-id CABkiuWpS0d24E4rZV9WhWuWM6BBgi3P3pti5seuAgKOkhVJ7TA@mail.gmail.com
Whole thread Raw
In response to using libjansson in postgres extension  (mahendrakar s <mahendrakarforpg@gmail.com>)
Responses Re: using libjansson in postgres extension
List pgsql-novice
Thoughts?

On Thu, 23 Feb 2023 at 19:08, mahendrakar s <mahendrakarforpg@gmail.com> wrote:
Hello Hackers,

I'm developing an extension where in it indirectly references (libjansson) and libjansson has a symbol json_object which conflicts with postgres  symbol 'json_object'.

I see below:
PostgreSQL: Documentation: 11: 38.10. C-Language Functions
"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.

Thanks,
Mahendrakar.


pgsql-novice by date:

Previous
From: mahendrakar s
Date:
Subject: using libjansson in postgres extension
Next
From: Gurjeet Singh
Date:
Subject: Re: using libjansson in postgres extension