pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Fix configure's AC_CHECK_DECLS tests to work correctly with clan
Date: Wed, 21 Sep 2022 19:42:19 +0000
Message-ID: <E1ob5bu-001O8H-K0@gemulon.postgresql.org> (raw)

Fix configure's AC_CHECK_DECLS tests to work correctly with clang.

Back-port commit 16fbac39f into 9.3 and 9.2, so that these
out-of-support branches can be built with clang without wading
through a pile of warnings about strlcpy and related functions.
check_decls.m4 required some adaptation to work with autoconf 2.63,
but nothing too major.

Discussion: https://postgr.es/m/26819.1542515567@sss.pgh.pa.us
Discussion: https://postgr.es/m/1081321.1663775084@sss.pgh.pa.us

Branch
------
REL9_2_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/b8464d2f5da0d1abe0925c5712d0c4810986e629

Modified Files
--------------
aclocal.m4            |   1 +
config/check_decls.m4 | 112 +++++++++++++++++++++++++++++
configure             | 192 +++++++++++++++++++++++++++++++++++++++++++++++---
configure.in          |   5 +-
4 files changed, 300 insertions(+), 10 deletions(-)



view thread (8+ messages)

Message-ID: <E1ob5bu-001O8H-K0@gemulon.postgresql.org>
Permalink:  ../E1ob5bu-001O8H-K0@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1ob5bu-001O8H-K0@gemulon.postgresql.org

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: tgl@sss.pgh.pa.us
  Subject: Re: pgsql: Fix configure's AC_CHECK_DECLS tests to work correctly with clan
  In-Reply-To: <E1ob5bu-001O8H-K0@gemulon.postgresql.org>
  References: <E1ob5bu-001O8H-K0@gemulon.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