pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Thomas Munro <thomas.munro@enterprisedb.com>
Cc: PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Subject: Re: PG vs macOS Mojave
Date: Tue, 25 Sep 2018 19:22:23 -0400
Message-ID: <20709.1537917743@sss.pgh.pa.us> (raw)
In-Reply-To: <CAEepm=16o51oMvY6K-E_mpSR6mPjm-zgDgY6_RE1VJGriLDPtA@mail.gmail.com>
References: <20840.1537850987@sss.pgh.pa.us>
	<CAEepm=2UEMvWryEybTQPX1dHifEhV1oVEKwCwDS4ceXnJB8NFg@mail.gmail.com>
	<19767.1537888452@sss.pgh.pa.us>
	<CAEepm=16o51oMvY6K-E_mpSR6mPjm-zgDgY6_RE1VJGriLDPtA@mail.gmail.com>

Thomas Munro <thomas.munro@enterprisedb.com> 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




view thread (30+ messages)  latest in thread

Message-ID: <20709.1537917743@sss.pgh.pa.us>
Permalink:  ../20709.1537917743@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/20709.1537917743@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-hackers@postgresql.org
  Cc: tgl@sss.pgh.pa.us, thomas.munro@enterprisedb.com, pgsql-hackers@lists.postgresql.org
  Subject: Re: PG vs macOS Mojave
  In-Reply-To: <20709.1537917743@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox