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.94.2) (envelope-from ) id 1rsRUQ-0075op-VO for pgsql-hackers@arkaria.postgresql.org; Thu, 04 Apr 2024 18:07:07 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1rsRUQ-00Auh1-6L for pgsql-hackers@arkaria.postgresql.org; Thu, 04 Apr 2024 18:07:06 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rsRUP-00Augt-Sn for pgsql-hackers@lists.postgresql.org; Thu, 04 Apr 2024 18:07:05 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rsRUN-000e4o-6u for pgsql-hackers@lists.postgresql.org; Thu, 04 Apr 2024 18:07:05 +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 434I6ow3757343; Thu, 4 Apr 2024 14:06:50 -0400 From: Tom Lane To: Alvaro Herrera cc: Jelte Fennema-Nio , Noah Misch , Jacob Champion , Denis Laxalde , vignesh C , Thomas Munro , Greg Stark , "Gregory Stark (as CFM)" , Jelte Fennema , Daniel Gustafsson , Peter Eisentraut , Andres Freund , Justin Pryzby , Robert Haas , pgsql-hackers@lists.postgresql.org, Etsuro Fujita Subject: Re: [EXTERNAL] Re: Add non-blocking version of PQcancel In-reply-to: <202403281115.sy2xffc2ms2d@alvherre.pgsql> References: <202403281115.sy2xffc2ms2d@alvherre.pgsql> Comments: In-reply-to Alvaro Herrera message dated "Thu, 28 Mar 2024 12:15:08 +0100" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <757341.1712254010.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Thu, 04 Apr 2024 14:06:50 -0400 Message-ID: <757342.1712254010@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk [ from a week ago ] Alvaro Herrera writes: > Hm, indri failed: > ccache gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-afte= r-statement -Werror=3Dvla -Werror=3Dunguarded-availability-new -Wendif-lab= els -Wmissing-format-attribute -Wcast-function-type -Wformat-security -fno= -strict-aliasing -fwrapv -Wno-unused-command-line-argument -Wno-compound-t= oken-split-by-macro -g -O2 -fno-common -Werror -fvisibility=3Dhidden -bun= dle -o dblink.dylib dblink.o -L../../src/port -L../../src/common -L../../= src/interfaces/libpq -lpq -isysroot /Applications/Xcode.app/Contents/Devel= oper/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.4.sdk -L/opt/local= /libexec/llvm-15/lib -L/opt/local/lib -L/opt/local/lib -L/opt/local/lib -= L/opt/local/lib -Wl,-dead_strip_dylibs -Werror -fvisibility=3Dhidden -bu= ndle_loader ../../src/backend/postgres > Undefined symbols for architecture arm64: > "_libintl_gettext", referenced from: > _libpqsrv_cancel in dblink.o > _libpqsrv_cancel in dblink.o > ld: symbol(s) not found for architecture arm64 > clang: error: linker command failed with exit code 1 (use -v to see invo= cation) > make[1]: *** [dblink.dylib] Error 1 > make: *** [all-dblink-recurse] Error 2 Having just fixed the same issue for test_json_parser, I now realize what's going on there: dblink's link command doesn't actually mention any of the external libraries that we might need, such as libintl. You can get away with that on some platforms, but not macOS. It would probably be possible to fix that if anyone cared to. I'm not sufficiently excited about it to do so right now --- as you say, we don't support translation in contrib anyway. regards, tom lane