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 1kzklL-0001Yg-LO for pgsql-hackers@arkaria.postgresql.org; Wed, 13 Jan 2021 18:20:55 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kzklK-0006do-Ga for pgsql-hackers@arkaria.postgresql.org; Wed, 13 Jan 2021 18:20:54 +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 1kzklK-0006dg-9s for pgsql-hackers@lists.postgresql.org; Wed, 13 Jan 2021 18:20:54 +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 1kzklH-0004pV-8O for pgsql-hackers@postgresql.org; Wed, 13 Jan 2021 18:20:53 +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 10DIKkSw1297390; Wed, 13 Jan 2021 13:20:46 -0500 From: Tom Lane To: Sergey Shinderuk cc: Thomas Munro , pgsql-hackers Subject: Re: pg_preadv() and pg_pwritev() In-reply-to: <1286060.1610558607@sss.pgh.pa.us> References: <341497.1608420857@sss.pgh.pa.us> <20201220224040.evr5pduibvm6dze5@alap3.anarazel.de> <448b3cb5-0ba0-6dc5-63c7-789e4eebc40b@postgrespro.ru> <1283127.1610554395@sss.pgh.pa.us> <1286060.1610558607@sss.pgh.pa.us> Comments: In-reply-to Tom Lane message dated "Wed, 13 Jan 2021 12:23:27 -0500" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1297388.1610562046.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Wed, 13 Jan 2021 13:20:46 -0500 Message-ID: <1297389.1610562046@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hmmm ... I can further report that on Catalina + Xcode 12.0, everything seems fine. configure correctly detects that preadv and pwritev aren't there: configure:15161: checking for preadv configure:15161: ccache gcc -o conftest -Wall -Wmissing-prototypes -Wpoint= er-ar\ ith -Wdeclaration-after-statement -Werror=3Dvla -Wendif-labels -Wmissing-f= ormat-a\ ttribute -Wformat-security -fno-strict-aliasing -fwrapv -Wno-unused-comman= d-lin\ e-argument -g -O2 -isysroot /Applications/Xcode.app/Contents/Developer/Pla= tform\ s/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk -isysroot /Applications= /Xcod\ e.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10= .15.s\ dk conftest.c -lz -lm >&5 Undefined symbols for architecture x86_64: "_preadv", referenced from: _main in conftest-fca7e9.o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invoca= tion) configure:15161: $? =3D 1 So I'm a little confused as to why this test is failing to fail with (I assume) newer Xcode. Can we see the relevant part of config.log on your machine? regards, tom lane