From: Tom Lane <tgl@sss.pgh.pa.us>
To: Thomas Munro <thomas.munro@gmail.com>
Cc: pgsql-committers <pgsql-committers@lists.postgresql.org>
Subject: Re: pgsql: Add PSQL_WATCH_PAGER for psql's \watch command.
Date: Tue, 13 Jul 2021 00:15:48 -0400
Message-ID: <3198323.1626149748@sss.pgh.pa.us> (raw)
In-Reply-To: <CA+hUKGKDKXEfkQR5HsG7pq7oLaH366zqyMuRE4DMg2=Hb_C1GQ@mail.gmail.com>
References: <E1m35jw-0006Gi-Qg@gemulon.postgresql.org>
<3187588.1626136248@sss.pgh.pa.us>
<CA+hUKGLpSgVmD1jMpBcsjnXun3jNxG+6dYzpocxOz3R6Z8n9rA@mail.gmail.com>
<3189569.1626138591@sss.pgh.pa.us>
<CA+hUKGKDKXEfkQR5HsG7pq7oLaH366zqyMuRE4DMg2=Hb_C1GQ@mail.gmail.com>
Thomas Munro <thomas.munro@gmail.com> writes:
> On Tue, Jul 13, 2021 at 1:09 PM Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> That won't help as-is, because it *does* have sigwait, just not with
>> the POSIX API. thread_test.c does this:
>>
>> /* Test for POSIX.1c 2-arg sigwait() and fail on single-arg version */
>> #include <signal.h>
>> int sigwait(const sigset_t *set, int *sig);
>>
>> which perhaps should be pulled out of there and moved to the
>> configure script proper.
> Ah, I see. I'll have a crack at that after lunch.
Huh ... gaur did this:
/usr/ccs/bin/ld: Unsatisfied symbols:
sigwait (code)
which is not what I was expecting, because there is a definition for
sigwait in /usr/include (though not in a header file we use). It must
be in some add-on library instead of libc.
However, wrasse did this:
"/export/home/nm/farm/studio64v12_6/HEAD/pgsql.build/../pgsql/src/bin/psql/command.c", line 5062: prototype mismatch: 2 args passed, 1 expected
cc: acomp failed for /export/home/nm/farm/studio64v12_6/HEAD/pgsql.build/../pgsql/src/bin/psql/command.c
which I was expecting even less. Evidently, prehistoric HPUX is not the
only platform still using the pre-POSIX API for this function. So we
really do need the full configure check.
regards, tom lane
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, thomas.munro@gmail.com
Subject: Re: pgsql: Add PSQL_WATCH_PAGER for psql's \watch command.
In-Reply-To: <3198323.1626149748@sss.pgh.pa.us>
References: <E1m35jw-0006Gi-Qg@gemulon.postgresql.org> <3187588.1626136248@sss.pgh.pa.us> <CA+hUKGLpSgVmD1jMpBcsjnXun3jNxG+6dYzpocxOz3R6Z8n9rA@mail.gmail.com> <3189569.1626138591@sss.pgh.pa.us> <CA+hUKGKDKXEfkQR5HsG7pq7oLaH366zqyMuRE4DMg2=Hb_C1GQ@mail.gmail.com> <3198323.1626149748@sss.pgh.pa.us>
* 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