Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iF1KZ-0004vL-DH for pgsql-committers@arkaria.postgresql.org; Mon, 30 Sep 2019 19:27: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 1iF1KY-0005hT-7I for pgsql-committers@arkaria.postgresql.org; Mon, 30 Sep 2019 19:27:34 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iF1KY-0005hL-0B for pgsql-committers@lists.postgresql.org; Mon, 30 Sep 2019 19:27:34 +0000 Received: from mail-qk1-x741.google.com ([2607:f8b0:4864:20::741]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iF1KV-0002sn-71 for pgsql-committers@lists.postgresql.org; Mon, 30 Sep 2019 19:27:33 +0000 Received: by mail-qk1-x741.google.com with SMTP id u184so8898306qkd.4 for ; Mon, 30 Sep 2019 12:27:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=3/pIF8PywPHQRPg22uvFifqyPxYr8qTGuaboVTKo2g4=; b=vY8XIu/xX8reWPPt1hHyitU2e12X9NMw/CuevSX8WrUYOsrx63+NZHLc9B/fvNGb8l GWt5GQy4Un0JKzZb44TPlchCZRFhMlzbw0MBLtSwuQPhkVdBpJDS0SR0dLxVWxncirKL UqQU4WV8aV6ifgrsHajv+rIT8iSeuaPCs8pZErEJqUc2vDYIatSuSPD7m5a+D3msZxI4 UzJGsJLIowVmjNanSvH4qZdc4f21u6KzSGd2o0Gw8JKPmuyooOR6e4WAjT0/ng214BdS 7F/vm1IAFOEZ1/1OJ6bd/RKarPz39EMFARcdVYU4D+iBq+T+MCSt3GOI5Jnf5IbPHwKn uVFw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=3/pIF8PywPHQRPg22uvFifqyPxYr8qTGuaboVTKo2g4=; b=AL57AfjarAggmhkFXpYDNmdp+JeGklTOaHKlsShfGkw7/v4HnvD0xqrv69ynO9/6jB XpOHGN/fYtvx55sKuKMvgL8s0Kz/HXInrhMSeJKO7mNEdcxR3nSNHIlGZRE1m7tWCsKh 1jstuMhkwCNqAvFgZYiBJv6guLRWOZ/XiyX4ceCqaaN03mobIX/yUEmR1HomW1lAvoUY 8vpiwMPJMVUpghbVUazeU3ZyHnIjAmqYw/eziE8e5Jlo2jPOfVcvGhGHwgpTXl8XYaR2 mg4JsJyrerZALGhSHuVxR7MJ47RY0YFdVJR7PlJB1Lu8Lx0tLaYavvQyDLUFMIVtF6bO qYtw== X-Gm-Message-State: APjAAAV+QeJCn0+Hyb3IyR4avF4jw6qW91ZwYhn+AFO+uEdWwVkrZjkp 3z+DvU1XRyXoxhTUyptBheAyPBOjMsQ7EQ== X-Google-Smtp-Source: APXvYqx8Scz4pYJ6r392zzvj+2NpV2dG1Kq/dELxLLdXuGkW9fuyZktpghxVgAK8q2z0iBRGW99Oug== X-Received: by 2002:a37:883:: with SMTP id 125mr1850955qki.478.1569871649457; Mon, 30 Sep 2019 12:27:29 -0700 (PDT) Received: from nimloth.alvh.no-ip.org ([190.121.29.3]) by smtp.gmail.com with ESMTPSA id h10sm9863844qtk.18.2019.09.30.12.27.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Sep 2019 12:27:28 -0700 (PDT) Received: by nimloth.alvh.no-ip.org (Postfix, from userid 1000) id 6B91F120E27; Mon, 30 Sep 2019 16:27:27 -0300 (-03) Date: Mon, 30 Sep 2019 16:27:27 -0300 From: Alvaro Herrera To: Andres Freund Cc: pgsql-committers@lists.postgresql.org Subject: Re: pgsql: pg_rewind: Allow writing recovery configuration Message-ID: <20190930192727.GA32097@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20190930192013.r3wievljua2n3tbb@alap3.anarazel.de> User-Agent: Mutt/1.9.4 (2018-02-28) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2019-Sep-30, Andres Freund wrote: > This currently fails on windows under mingw: > https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=jacana&dt=2019-09-30%2018%3A00%3A36 > > Sep 30 14:11:02 ccache x86_64-w64-mingw32-gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -Wno-format-truncation -g -O2 pg_rewind.o parsexlog.o xlogreader.o datapagemap.o timeline.o fetch.o file_ops.o copy_fetch.o libpq_fetch.o filemap.o win32ver.o -L../../../src/port -L../../../src/common -L../../../src/common -lpgcommon -L../../../src/port -lpgport -L../../../src/interfaces/libpq -lpq -L../../../src/fe_utils -lpgfeutils -Wl,--allow-multiple-definition -Wl,--disable-auto-import -L/c/prog/3p64/lib -L/c/prog/3p64/lib -L/c/prog/3p64/openssl-win64/lib/VC -Wl,--as-needed -lpgcommon -lpgport -lintl -lxslt -lxml2 -lz -lws2_32 -lm -lws2_32 -o pg_rewind.exe > Sep 30 14:11:02 ../../../src/fe_utils/libpgfeutils.a(recovery_gen.o): In function `GenerateRecoveryConfig': > Sep 30 14:11:02 c:/mingw/msys/1.0/home/pgrunner/bf/root/HEAD/pgsql.build/../pgsql/src/fe_utils/recovery_gen.c:33: undefined reference to `createPQExpBuffer' > Sep 30 14:11:02 c:/mingw/msys/1.0/home/pgrunner/bf/root/HEAD/pgsql.build/../pgsql/src/fe_utils/recovery_gen.c:44: undefined reference to `PQserverVersion' > > I assume the issue is that the specified link order is: > LDFLAGS_INTERNAL += $(libpq_pgport) -L$(top_builddir)/src/fe_utils -lpgfeutils > but pgfeutils introduces a dependency on symbols from libpq that weren't > needed at the time libpq was linked. Therefore they aren't included > inthe resulting library. Hmm, that's weird but understandable. Thanks for researching. > I'll reorder them. Thanks. -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services