Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.92) (envelope-from ) id 1jHviH-0005Mq-W4 for pgsql-bugs@arkaria.postgresql.org; Fri, 27 Mar 2020 20:36:22 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1jHviF-0005LC-Fm for pgsql-bugs@arkaria.postgresql.org; Fri, 27 Mar 2020 20:36:19 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1jHviF-0005JE-7Q for pgsql-bugs@lists.postgresql.org; Fri, 27 Mar 2020 20:36:19 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jHviB-0007tt-VK for pgsql-bugs@lists.postgresql.org; Fri, 27 Mar 2020 20:36:18 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id 02RKaCFJ023963; Fri, 27 Mar 2020 16:36:13 -0400 From: Tom Lane To: Stephen Frost cc: brahmbhattkinjal18@gmail.com, pgsql-bugs@lists.postgresql.org Subject: Re: BUG #16320: GSSAPI Error In-reply-to: <20200327195705.GH13712@tamriel.snowman.net> References: <16320-912ad260120988a2@postgresql.org> <20200327163051.GE13712@tamriel.snowman.net> <20458.1585336517@sss.pgh.pa.us> <20200327195705.GH13712@tamriel.snowman.net> Comments: In-reply-to Stephen Frost message dated "Fri, 27 Mar 2020 15:57:05 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <23961.1585341372.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Fri, 27 Mar 2020 16:36:12 -0400 Message-ID: <23962.1585341372@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Stephen Frost writes: > * Tom Lane (tgl@sss.pgh.pa.us) wrote: >> Should we document somewhere that we consider that unsupported? >> Trying it here, I see a bunch of "deprecation" warnings during >> the build, but it does build --- which might lead people to expect >> that it'd work. > There had been discussion on another thread about trying to figure out a > way to detect the OSX GSSAPI library and refuse to build with GSSAPI > support when that's what we'd be building against. I didn't see anyone > post a patch though and I haven't got an OSX box to play with myself > easily at hand. Just poking around, it looks like something along this line would work: #ifdef GSSKRB_APPLE_DEPRECATED #error "Postgres doesn't work with the macOS GSSAPI library, please use XX= X instead." #endif (in any suitable spot after #including gssapi.h) Now, this is testing the *headers* not the actual *library*, which in some sense is not the right thing. But it's probably close enough for the purpose. regards, tom lane