From: PG Bug reporting form <noreply@postgresql.org>
To: pgsql-bugs@lists.postgresql.org
Cc: yorick17@outlook.com
Subject: BUG #16686: GCC C++ depends on libintl for some STL, even if PostgreSQL was not build with NLS support
Date: Sat, 24 Oct 2020 14:35:31 +0000
Message-ID: <16686-e5a62dc361b60193@postgresql.org> (raw)
The following bug has been logged on the website:
Bug reference: 16686
Logged by: Yorick de Wid
Email address: yorick17@outlook.com
PostgreSQL version: 13.0
Operating system: Ubuntu 20.04
Description:
Postgres C++ extensions can use STL functions and methods that (indirectly)
depend on <locale>. GNU GCC implements <locale> via `libintl.h`.
This causes a build conflict if postgres is not build with NLS support. The
prototype definitions of `libintl.h` conflict with defined placeholders in
the `c.h`.
There is no flag to disable `libintl.h` in the GCC implementation of the
STL.
When building anything that utilizes the C++ STL, one does not have the
guarantee it will compile, unless postgres was build with NLS support.
This does not necessarily constitutes a bug, however another warning in the
manual about C++ extensions could be sufficient.
Cheers,
Y
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: pgsql-bugs@postgresql.org
Cc: noreply@postgresql.org, pgsql-bugs@lists.postgresql.org, yorick17@outlook.com
Subject: Re: BUG #16686: GCC C++ depends on libintl for some STL, even if PostgreSQL was not build with NLS support
In-Reply-To: <16686-e5a62dc361b60193@postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox