pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Paquier <michael@paquier.xyz>
To: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Cc: stadtkind2@gmx.de, pgsql-bugs@lists.postgresql.org, PG Bug reporting form <noreply@postgresql.org>
Subject: Re: BUG #15132: Build fails in src/backend/utils/adt/encode.c
Date: Wed, 28 Mar 2018 21:12:52 +0900
Message-ID: <20180328121252.GA5673@paquier.xyz> (raw)
In-Reply-To: <71d2aa5d-a901-de98-3ff8-eec0ff57b06a@2ndquadrant.com>
References: <152223827472.4537.14909179289459774445@wrigleys.postgresql.org>
	<71d2aa5d-a901-de98-3ff8-eec0ff57b06a@2ndquadrant.com>

On Wed, Mar 28, 2018 at 08:09:11AM -0400, Peter Eisentraut wrote:
> On 3/28/18 07:57, PG Bug reporting form wrote:
> > Solaris 11.4 has b64_encode/b64_decode in libc. So building PostgreSQL 10.3
> > fails because they are defined in src/backend/utils/adt/encode.c as well:
> 
> This will be fixed in the next minor release.

You are looking for this commit if you are interested (see the thread
reference as well):

commit: aac6286d8fd17f94f3bce5dd8b942b7fcf9e2a61
author: Tom Lane <tgl@sss.pgh.pa.us>
date: Wed, 28 Feb 2018 18:33:45 -0500
Rename base64 routines to avoid conflict with Solaris built-in
functions.

Solaris 11.4 has built-in functions named b64_encode and b64_decode.
Rename ours to something else to avoid the conflict (fortunately,
ours are static so the impact is limited).

One could wish for less duplication of code in this area, but that
would be a larger patch and not very suitable for back-patching.
Since this is a portability fix, we want to put it into all supported
branches.

Report and initial patch by Rainer Orth, reviewed and adjusted a bit
by Michael Paquier

Discussion: https://postgr.es/m/ydd372wk28h.fsf@CeBiTec.Uni-Bielefeld.DE
--
Michael

Attachments:

  signature.asc (application/pgp-signature, 832B) download

view thread (3+ messages)

Message-ID: <20180328121252.GA5673@paquier.xyz>
Permalink:  ../20180328121252.GA5673@paquier.xyz/
Also on:    postgresql.org/message-id/20180328121252.GA5673@paquier.xyz

 · 

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: michael@paquier.xyz, peter.eisentraut@2ndquadrant.com, noreply@postgresql.org
  Subject: Re: BUG #15132: Build fails in src/backend/utils/adt/encode.c
  In-Reply-To: <20180328121252.GA5673@paquier.xyz>
  References: <152223827472.4537.14909179289459774445@wrigleys.postgresql.org> <71d2aa5d-a901-de98-3ff8-eec0ff57b06a@2ndquadrant.com> <20180328121252.GA5673@paquier.xyz>

* 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