Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vniv2-00Alt3-0g for pgsql-hackers@arkaria.postgresql.org; Wed, 04 Feb 2026 19:52:08 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vniv0-00DHuT-0W for pgsql-hackers@arkaria.postgresql.org; Wed, 04 Feb 2026 19:52:06 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vniuz-00DHuJ-0B for pgsql-hackers@lists.postgresql.org; Wed, 04 Feb 2026 19:52:05 +0000 Received: from fhigh-b7-smtp.messagingengine.com ([202.12.124.158]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1vniuw-00000000ZcK-21gt for pgsql-hackers@postgresql.org; Wed, 04 Feb 2026 19:52:03 +0000 Received: from phl-compute-04.internal (phl-compute-04.internal [10.202.2.44]) by mailfhigh.stl.internal (Postfix) with ESMTP id 9D3A87A0084; Wed, 4 Feb 2026 14:52:00 -0500 (EST) Received: from phl-frontend-03 ([10.202.2.162]) by phl-compute-04.internal (MEProxy); Wed, 04 Feb 2026 14:52:01 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kurilemu.de; h= cc:cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :reply-to:subject:subject:to:to; s=fm1; t=1770234720; x= 1770321120; bh=AjsDmKo1eYl5Vbhg/obS0ns4Dyq2PmQbNfgCV92zKOA=; b=D 5mr1/JVgn8ka+8MyVHFNNN7HzF7+O9xvUInMIQPSyO1KQzUufbQmw4FkozdQaiXe mfB1IoY9L68NAVC/SjtDflsZ78m1Bk3wGc2hARv9s2GVdUvdOKlPa+vpxVM+t1c9 WImEIHHv843IuSHuaTs3R8Lc1nw9yIozvTqWkmBLEyX+bMNQ2gwOt/zwidQUiySx +jwuMW7WWT3hCLSppNf4dR+r2bCYNdW7jXfr4OUtRbn3u4bdUOe2lCdFPxX5Xrpd mX3sWyKGVwAo7AiRsAoPp8JgpT5t8akAb++4j+rGxlvO5UlObIPZfOuIdvpzOG/k HUDsGxdUAKa0oq86FDsLw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :reply-to:subject:subject:to:to:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm3; t=1770234720; x=1770321120; bh=A jsDmKo1eYl5Vbhg/obS0ns4Dyq2PmQbNfgCV92zKOA=; b=kUaiC3fdKvDekgTVq J4KxeoVqcOj5iIP6Z25zyTVwworA/Qw4NGo+zeN2ilN7/RYF4opIO+h3QmkDMVFR iVFhNcz/MbPckzYWy3Thy1QGte972gRv5WVMXd8JIV7qsGKr6nD+c29wwMX1axDp VJNRR1jqdj/BHxfphwCvwrwWtAPFtuvTr16Db9An28v6QTOzmjiqFdpgJTV0q5H5 BFlUwB/aDFg7hfN6G/B9J5Yj1YghKnE4s+ihUQUsS/9WWje2w/SxPDY+yvpndRE+ vAqrGetU0qjUaW+n/+VnZYic9bbPr1OOWw7z9P7ZHLtdvn/40Rl97ZY7Cx2n3ZZ7 qVFXg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefgedrtddtgddukeeffeefucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu rghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujf gurhepfffhvfevuffkgggtugfgjgesthekredttddtjeenucfhrhhomheplmhlvhgrrhho ucfjvghrrhgvrhgruceorghlvhhhvghrrhgvsehkuhhrihhlvghmuhdruggvqeenucggtf frrghtthgvrhhnpeefgeevkeetjefhueekgffhffekiefhueeljeeiffetteettdffkeek leejjefhudenucffohhmrghinhepphhoshhtghhrvghsqhhlrdhorhhgpdgvnhhtvghrph hrihhsvggusgdrtghomhenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgr ihhlfhhrohhmpegrlhhvhhgvrhhrvgeskhhurhhilhgvmhhurdguvgdpnhgspghrtghpth htohepjedpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtoheprghnughrvgifseguuhhn shhlrghnvgdrnhgvthdprhgtphhtthhopehpvghtvghrsegvihhsvghnthhrrghuthdroh hrghdprhgtphhtthhopehthhhomhgrshdrmhhunhhrohesghhmrghilhdrtghomhdprhgt phhtthhopehtrhhishhtrghnsehnvghonhdrthgvtghhpdhrtghpthhtohepmhhitghhrg gvlhesphgrqhhuihgvrhdrgiihiidprhgtphhtthhopehpghhsqhhlqdhhrggtkhgvrhhs sehpohhsthhgrhgvshhqlhdrohhrghdprhgtphhtthhopehtghhlsehsshhsrdhpghhhrd hprgdruhhs X-ME-Proxy: Feedback-ID: ie3de48e3:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 4 Feb 2026 14:51:59 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kurilemu.de; s=schmee; t=1770234717; bh=hOlYv00lT+rPBuRE6izcQAsmvZyBw2UyjNYBhKtWcu4=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=HzU8WUM9kZKjbEfgEItV4X+Fxq2RPsoIxHLTQlwwCCBiSItdZUreUFVdDBCLsmcCg J8JnRfXMmiCwxnPM0XOuS/aekf5AutpRtu11X2+S7DZheuFfkf/4bL9mpKsDQRfqCf QRLKo6XPejELlw9EQzD3WuXLFYRQNL5Rfnw4tKPGTE4xR4i4/D+vAmw4D0TgHGcN8O 3PTKVYyzPqAzX0nD/el8s7Kkdy/JAHyvTKaEPuTRu9qFjo57g81DjN+uBPztw5kArw uCOKcXoZIDEfsdqshmjFLo8e62s9s6EF/sHNBDDeeidsqDd4oLC4Y8SvrUIkZX14LQ yQWJI4hUguwpQ== Received: by schmee.kurilemu.internal (Postfix, from userid 1000) id 86CCB7A; Wed, 04 Feb 2026 20:51:57 +0100 (CET) Date: Wed, 4 Feb 2026 20:51:57 +0100 From: =?utf-8?Q?=C3=81lvaro?= Herrera To: Peter Eisentraut Cc: Thomas Munro , Michael Paquier , Andrew Dunstan , Tristan Partin , Tom Lane , pgsql-hackers Subject: Re: On non-Windows, hard depend on uselocale(3) Message-ID: <202602041910.ridz5gice3bi@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2026-Feb-04, Peter Eisentraut wrote: > > It corresponds to this stale CF entry, > > https://commitfest.postgresql.org/patch/5166/ > > My recollection is that I didn't at the time find any common pattern among > the failing buildfarm members. So the only way to move forward here would > be to commit it again and then debug it live via the buildfarm. Did you try adding $(PTHREAD_CFLAGS) or $(PTHREAD_LIBS) to the compile line for test_json_parser? I see that the failure in jackdaw (snapshot 2025-03-28 15:30:44) was ccache gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Wendif-labels -Wmissing-format-attribute -Wimplicit-fallthrough=3 -Wcast-function-type -Wshadow=compatible-local -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -Wno-format-truncation -Wno-stringop-truncation -g -O2 -I. -I. -I../../../../src/include -D_GNU_SOURCE -I/usr/include/libxml2 -c -o test_json_parser_incremental.o test_json_parser_incremental.c ccache gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Wendif-labels -Wmissing-format-attribute -Wimplicit-fallthrough=3 -Wcast-function-type -Wshadow=compatible-local -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -Wno-format-truncation -Wno-stringop-truncation -g -O2 test_json_parser_incremental.o -L../../../../src/port -L../../../../src/common -Wl,--as-needed -Wl,-rpath,'/home/debian/17-jackdaw/buildroot/HEAD/inst/lib',--enable-new-dtags -lpgcommon -lpgport -lxslt -lxml2 -lssl -lcrypto -lgssapi_krb5 -lz -lreadline -lpthread -lrt -ldl -lm -o test_json_parser_incremental ccache gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Wendif-labels -Wmissing-format-attribute -Wimplicit-fallthrough=3 -Wcast-function-type -Wshadow=compatible-local -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -Wno-format-truncation -Wno-stringop-truncation -g -O2 test_json_parser_incremental.o -L../../../../src/port -L../../../../src/common -Wl,--as-needed -Wl,-rpath,'/home/debian/17-jackdaw/buildroot/HEAD/inst/lib',--enable-new-dtags -lpgcommon_excluded_shlib -L../../../../src/common -lpgcommon_shlib -L../../../../src/port -lpgport_shlib -L../../../../src/interfaces/libpq -lpq -o test_json_parser_incremental_shlib /usr/bin/ld: ../../../../src/port/libpgport_shlib.a(locale_shlib.o): undefined reference to symbol 'pthread_once@@GLIBC_2.17' /usr/bin/ld: /lib/aarch64-linux-gnu/libpthread.so.0: error adding symbols: DSO missing from command line collect2: error: ld returned 1 exit status make[1]: *** [Makefile:30: test_json_parser_incremental_shlib] Error 1 But if you look at how jackdaw compiles, say, ecpglib, there's ccache gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Wendif-labels -Wmissing-format-attribute -Wimplicit-fallthrough=3 -Wcast-function-type -Wshadow=compatible-local -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -Wno-format-truncation -Wno-stringop-truncation -g -O2 -pthread -D_REENTRANT -D_THREAD_SAFE -I../include -I../../../../src/interfaces/ecpg/include -I. -I. -I../../../../src/interfaces/ecpg/ecpglib -I../../../../src/interfaces/libpq -I../../../../src/include -D_GNU_SOURCE -I/usr/include/libxml2 -c -o keywords.o keywords.c note that it has "-pthread", which is not present in the test_json_parser compile/link. Does this matter because libpgport_shlib.a needs that? Did maybe test_json_parser not previously need this locale thingy? I suspect this is a problem in test_json_parser that somehow got tickled by your patch, not a problem in your patch. -- Álvaro Herrera 48°01'N 7°57'E — https://www.EnterpriseDB.com/ ¡Ay, ay, ay! Con lo mucho que yo lo quería (bis) se fue de mi vera ... se fue para siempre, pa toíta ... pa toíta la vida ¡Ay Camarón! ¡Ay Camarón! (Paco de Lucía)