Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1g4wf5-00050g-5k for pgsql-hackers@arkaria.postgresql.org; Tue, 25 Sep 2018 23:22:35 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1g4wf3-0008Cq-3S for pgsql-hackers@arkaria.postgresql.org; Tue, 25 Sep 2018 23:22:33 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1g4wf2-0008Cj-Ov for pgsql-hackers@lists.postgresql.org; Tue, 25 Sep 2018 23:22:32 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1g4wew-0007ys-4e for pgsql-hackers@lists.postgresql.org; Tue, 25 Sep 2018 23:22:31 +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 w8PNMNgx020710; Tue, 25 Sep 2018 19:22:23 -0400 From: Tom Lane To: Thomas Munro cc: PostgreSQL Hackers Subject: Re: PG vs macOS Mojave In-reply-to: References: <20840.1537850987@sss.pgh.pa.us> <19767.1537888452@sss.pgh.pa.us> Comments: In-reply-to Thomas Munro message dated "Wed, 26 Sep 2018 10:58:44 +1200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <20708.1537917743.1@sss.pgh.pa.us> Date: Tue, 25 Sep 2018 19:22:23 -0400 Message-ID: <20709.1537917743@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Thomas Munro writes: > ... and now I'm on macOS 10.14. I removed all traces of MacPorts from > my PATH and configure line to test this. --with-tcl worked, but > --with-perl couldn't find "perl.h". Then I realised that it was > because I was still on Xcode 9, so I was in for another ~5GB of > upgrading to get to Xcode 10. After that, it all worked fine. Interesting. IME, updating Xcode first usually gives you a working system, for some value of "work". Right now I've updated to Xcode 10 but not yet Mojave on my main laptop, and PG works except that the linker warns about out-of-sync library files during some link steps. I don't see that on the other machine where I've done both updates. I don't recall ever having tried the other order, but evidently it (sometimes?) has some issues. Maybe we should make the test in configure for whether to prepend PG_SYSROOT be more specific, ie - if test -d "$PG_SYSROOT$perl_archlibexp" ; then + if test -f "$PG_SYSROOT$perl_archlibexp/CORE/perl.h" ; then perl_includedir="$PG_SYSROOT$perl_archlibexp" I think what must've happened to you is that in Xcode 9, the $PG_SYSROOT$perl_archlibexp directory exists but doesn't contain the header files. Now, once you'd updated the main system, neither would $perl_archlibexp, so you're going to fail either way in that state :-(. But this feels a bit safer somehow. regards, tom lane