pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
To: dominyktiller@gmail.com, pgsql-bugs@lists.postgresql.org, PG Bug reporting form <noreply@postgresql.org>
Subject: Re: BUG #15358: PostgreSQL fails to build on 10.14 when Perl is enabled.
Date: Thu, 6 Sep 2018 23:49:56 +0200
Message-ID: <d07f22c9-bf42-e525-e8e2-9df140907022@2ndquadrant.com> (raw)
In-Reply-To: <153558865647.1483.573481613491501077@wrigleys.postgresql.org>
References: <153558865647.1483.573481613491501077@wrigleys.postgresql.org>

On 30/08/2018 02:24, PG Bug reporting form wrote:
> That location contains only `libperl.dylib` now, but the output is correct
> as far as Apple are concerned because the usage of `-I` on Darwin is
> erroneous when trying to build against system-provided tools; the advice is
> for people to switch over to using `-iwithsysroot` in those circumstances.
> The absolute minimal patch to achieve that is to replace the three calls of
> `-I$perl_archlibexp/CORE` or `-I$(perl_archlibexp)/CORE` in `configure`,
> `contrib/hstore_plperl/Makefile` and `src/pl/plperl/GNUmakefile` with
> `-iwithsysroot $perl_archlibexp/CORE` or `-iwithsysroot
> $(perl_archlibexp)/CORE` respectively, which clang understands as
> `/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Perl/5.18/darwin-thread-multi-2level/CORE`
> or the Xcode equivalent of that path and thus PostgreSQL compiles
> successfully.

We also need to support gcc, so that's not going to work.  clang and gcc
appear to have an incompatible zoo of various "sysroot" options.  I
don't know how to consolidate that.

-- 
Peter Eisentraut              http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services




view thread (4+ messages)

Message-ID: <d07f22c9-bf42-e525-e8e2-9df140907022@2ndquadrant.com>
Permalink:  ../d07f22c9-bf42-e525-e8e2-9df140907022@2ndquadrant.com/
Also on:    postgresql.org/message-id/d07f22c9-bf42-e525-e8e2-9df140907022@2ndquadrant.com

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: peter.eisentraut@2ndquadrant.com, noreply@postgresql.org
  Subject: Re: BUG #15358: PostgreSQL fails to build on 10.14 when Perl is enabled.
  In-Reply-To: <d07f22c9-bf42-e525-e8e2-9df140907022@2ndquadrant.com>
  References: <153558865647.1483.573481613491501077@wrigleys.postgresql.org> <d07f22c9-bf42-e525-e8e2-9df140907022@2ndquadrant.com>

* 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