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 1uAvVJ-0044bF-Fy for pgsql-hackers@arkaria.postgresql.org; Fri, 02 May 2025 18:52:57 +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 1uAvVH-00Azas-HD for pgsql-hackers@arkaria.postgresql.org; Fri, 02 May 2025 18:52:56 +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 1uAvVH-00Azak-7g for pgsql-hackers@lists.postgresql.org; Fri, 02 May 2025 18:52:56 +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.96) (envelope-from ) id 1uAvVG-000kSo-1b for pgsql-hackers@postgresql.org; Fri, 02 May 2025 18:52:55 +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 542IqaLg1977698; Fri, 2 May 2025 14:52:36 -0400 From: Tom Lane To: Jacob Champion cc: Nathan Bossart , Daniel Gustafsson , Christoph Berg , Jelte Fennema-Nio , Peter Eisentraut , Andres Freund , Bruce Momjian , PostgreSQL Hackers , Thomas Munro , Nazir Bilal Yavuz , Antonin Houska , Wolfgang Walther , =?UTF-8?B?RGV2cmltIEfDvG5kw7x6?= Subject: Re: [PoC] Federated Authn/z with OAUTHBEARER In-reply-to: References: <8210C830-DDBB-4CD7-AB39-F5F59C36D547@yesql.se> <1921698.1746207330@sss.pgh.pa.us> <1974924.1746210349@sss.pgh.p! a.us> Comments: In-reply-to Jacob Champion message dated "Fri, 02 May 2025 11:46:15 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1977696.1746211956.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Fri, 02 May 2025 14:52:36 -0400 Message-ID: <1977697.1746211956@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Jacob Champion writes: > Hm. If you clear out the build artifacts under > src/interfaces/libpq-oauth, and then build with > $ ninja -v src/interfaces/libpq-oauth/libpq-oauth.a > does that help surface anything interesting? $ rm -rf src/interfaces/libpq-oauth $ ninja -v src/interfaces/libpq-oauth/libpq-oauth.a [1/2] ccache cc -Isrc/interfaces/libpq-oauth/libpq-oauth.a.p -Isrc/interfa= ces/libpq-oauth -I../src/interfaces/libpq-oauth -Isrc/interfaces/libpq -I.= ./src/interfaces/libpq -Isrc/port -I../src/port -Isrc/include -I../src/inc= lude -I/opt/local/include -I/opt/local/libexec/openssl3/include -fdiagnost= ics-color=3Dalways -Wall -Winvalid-pch -O2 -g -isysroot /Applications/Xcod= e.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15= .4.sdk -fno-strict-aliasing -fwrapv -fexcess-precision=3Dstandard -Wmissin= g-prototypes -Wpointer-arith -Werror=3Dvla -Werror=3Dunguarded-availabilit= y-new -Wendif-labels -Wmissing-format-attribute -Wcast-function-type -Wfor= mat-security -Wdeclaration-after-statement -Wmissing-variable-declarations= -Wno-unused-command-line-argument -Wno-compound-token-split-by-macro -Wno= -format-truncation -Wno-cast-function-type-strict -MD -MQ src/interfaces/l= ibpq-oauth/libpq-oauth.a.p/oauth-curl.c.o -MF src/interfaces/libpq-oauth/l= ibpq-oauth.a.p/oauth-curl.c.o.d -o src/interfaces/libpq-oauth/libpq-oauth.= a.p/oauth-curl.c.o -c ../src/interfaces/libpq-oauth/oauth-curl.c [2/2] rm -f src/interfaces/libpq-oauth/libpq-oauth.a && ar csr src/interfa= ces/libpq-oauth/libpq-oauth.a src/interfaces/libpq-oauth/libpq-oauth.a.p/o= auth-curl.c.o && ranlib -c src/interfaces/libpq-oauth/libpq-oauth.a So it's getting -I/opt/local/include and also -I/opt/local/libexec/openssl3/include from somewhere, which I guess must be libcurl's pkg-config data ... yup: $ pkg-config --cflags libcurl -I/opt/local/include -I/opt/local/libexec/openssl3/include -I/opt/local/in= clude I bet Homebrew's libcurl packaging doesn't do that. regards, tom lane