Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1f19x0-0003fF-QT for pgsql-bugs@arkaria.postgresql.org; Wed, 28 Mar 2018 12:13:11 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1f19wz-0004Yk-1Y for pgsql-bugs@arkaria.postgresql.org; Wed, 28 Mar 2018 12:13:09 +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 1f19wx-0004Yb-VC for pgsql-bugs@lists.postgresql.org; Wed, 28 Mar 2018 12:13:08 +0000 Received: from out5-smtp.messagingengine.com ([66.111.4.29]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1f19wu-0003ze-6G for pgsql-bugs@lists.postgresql.org; Wed, 28 Mar 2018 12:13:06 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 221C1213EA; Wed, 28 Mar 2018 08:13:03 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Wed, 28 Mar 2018 08:13:03 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= cc:content-type:date:from:in-reply-to:message-id:mime-version :references:subject:to:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; bh=TjRXoW+SJIpDO+1UUp7MtRU3GQwTTj23w9noWHAdD6k=; b=fTAogdAk xYy/9ZqNOpauOzkjOQU4Pe/HNm2HviMzVa/TSxiELCpHtWeWvZxuBMudnARfeHt5 cziVyuffwxn5G7kvfNuYt/VrUYvfcTIiTdH1TF4egqyN7AQnXZNAGARk8p56REnA Ig1gcoC50W9UAKXxHMs7qBAzSirkVD9eqXSnwBhNiPEfOUM32t32T626J92NZgkQ FGqLDWQba5L+4vIklOmz0ueElUhRM36Y8S6SsOnbIuyzwvp5Kjwpkp45Cf5/ISUo BcwLOrN7ULoAeytQD273tirm3yTyb/nUj4SXONWkEA++RGYLtZTEKokEcOie1zIz CMQ/yhKHXSVEqw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=fm2; bh=TjRXoW+SJIpDO+1UUp7MtRU3GQwTT j23w9noWHAdD6k=; b=XwKPdSBnhGMn8ghl4U9Xky7BRDPDbnhcAetyzrIOYAbSc gjgA/0Xm6yM3iRlvy5kiA8v1N287iu23fN862lPHuamqst2QaBGZJfWvHP2j3yIL jYsqCiNPDH6BJPfUMW+0vBu2JoiPA0JiqB0lFhGy8adxQGNYjTOusLfrHNUuWJwG hBIahqwm+Ed6KDt5UZiyI4gueNRqzh+7YrAHU9gnzs9IYZV3duI+qLCXWLO4CL4q lUrcHmXemJQK7N43Yrr3jZIq2KD2tddY0+c6k8yvV12woJ1/zaBXRm+yIqTPTsmd 0waDjDG5HyTkel+dCki4uvLNuH+zhM33dZ38hJTKQ== X-ME-Sender: Received: from paquier.xyz (c137162.net61215.cablenet.ne.jp [61.215.137.162]) by mail.messagingengine.com (Postfix) with ESMTPA id 59D43E5086; Wed, 28 Mar 2018 08:13:01 -0400 (EDT) Date: Wed, 28 Mar 2018 21:12:52 +0900 From: Michael Paquier To: Peter Eisentraut Cc: stadtkind2@gmx.de, pgsql-bugs@lists.postgresql.org, PG Bug reporting form Subject: Re: BUG #15132: Build fails in src/backend/utils/adt/encode.c Message-ID: <20180328121252.GA5673@paquier.xyz> References: <152223827472.4537.14909179289459774445@wrigleys.postgresql.org> <71d2aa5d-a901-de98-3ff8-eec0ff57b06a@2ndquadrant.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="lrZ03NoBR/3+SXJZ" Content-Disposition: inline In-Reply-To: <71d2aa5d-a901-de98-3ff8-eec0ff57b06a@2ndquadrant.com> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --lrZ03NoBR/3+SXJZ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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 wel= l: >=20 > 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 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 --lrZ03NoBR/3+SXJZ Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAlq7hsQACgkQnvQgOdby QH3ETQ//Z/RCnzBCxqnYE7JtPVtiRpAjtUSmZ9o2BjD2SVCOWmhDaSURARAFBN5t LSpk2/Eygpdb4RXs9xL0n389ViKkXJ3JKj8rI60kCjHIVy7fJZMepF1aY9LHMPvD EXgvnJhmQy1tX59IkgZOJvGSR+gxFc+lnrsQEWFStQCQsSZaKRlyoBRfbDFq1xS9 zN02AyVknVAUC4uRRjLvEvYSpSnR2ag/5HOmtbA3ntHz8CLUBcvATzf+Kldt7rsA 5G6Q2GcTLM8fkKPo761hjJ2EfcebDWPBEjzO5dp7b7V28p2ZqUBd9YYMXxZOSXeR 2FDUYAQh3em8Sr3M9gLtW1+flf6GTRfV7ls/Xa+mCR0fkIaKG368npkV8r3UXeGs i/Gm9jUyq7CmuO29f74Z97h9HfMsnEU5fd3UAraGjoHXQSU82Qw79X5io4aU68cR s0oHWhtBkaIP+NOJBbuoQphJDGWvXPEYwdcvpSUk0vyWUyLKfe3Hfo9D9zogWpdt y04TkFaGZIhf1bi7ENTBzlVfZeuEDj7irAla8nJo6NecsA3EJjyL0WKF2UmHC91N IVGFP32J8HxTitRXmpX1PlDds89DjfbAmYVuHkRKzIVOs4EHDf6dSdj/T+7OV0P3 74g9g6KeYuX+hgV234nGkTjZY8n1qjoK16bOium3NEbtfkH/zM8= =swKd -----END PGP SIGNATURE----- --lrZ03NoBR/3+SXJZ--