Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m39pq-0002sK-Ed for pgsql-committers@arkaria.postgresql.org; Tue, 13 Jul 2021 04:15:54 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1m39pp-0001CB-CL for pgsql-committers@arkaria.postgresql.org; Tue, 13 Jul 2021 04:15:53 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m39pp-0001C3-6l for pgsql-committers@lists.postgresql.org; Tue, 13 Jul 2021 04:15:53 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m39pm-0006UO-Ri for pgsql-committers@lists.postgresql.org; Tue, 13 Jul 2021 04:15:52 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 16D4Fm1O3198324; Tue, 13 Jul 2021 00:15:48 -0400 From: Tom Lane To: Thomas Munro cc: pgsql-committers Subject: Re: pgsql: Add PSQL_WATCH_PAGER for psql's \watch command. In-reply-to: References: <3187588.1626136248@sss.pgh.pa.us> <3189569.1626138591@sss.pgh.pa.us> Comments: In-reply-to Thomas Munro message dated "Tue, 13 Jul 2021 13:20:28 +1200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <3198322.1626149748.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Tue, 13 Jul 2021 00:15:48 -0400 Message-ID: <3198323.1626149748@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Thomas Munro writes: > On Tue, Jul 13, 2021 at 1:09 PM Tom Lane 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 >> 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