Re: Unable to build pg_rewind

From: Mark Kirkwood <mark(dot)kirkwood(at)catalyst(dot)net(dot)nz>
To: "Ratay, Steve" <Steve(dot)Ratay(at)Teradata(dot)com>, "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Unable to build pg_rewind
Date: 2015-02-24 23:03:33
Message-ID: 54ED0345.9080705@catalyst.net.nz
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 25/02/15 11:06, Ratay, Steve wrote:
> I have checked out the pg_rewind code from https://github.com/vmware/pg_rewind.git on the master branch and am using PostgreSQL 9.4.1 source code to build against. When I try to compile pg_rewind, I am getting the following errors. How can I resolve these problems?
>
>
> gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -I/var/tmp/vpagent/postgresql94-libs-9.4.1-build/usr/include/pgsql -I. -I./ -I/var/tmp/vpagent/postgresql94-libs-9.4.1-build/usr/include/pgsql/server -I/var/tmp/vpagent/postgresql94-libs-9.4.1-build/usr/include/pgsql/internal -DFRONTEND -c -o parsexlog.o parsexlog.c
>
> In file included from parsexlog.c:39:
>
> /var/tmp/vpagent/postgresql94-libs-9.4.1-build/usr/include/pgsql/server/access/rmgrlist.h:28:61: error: macro "PG_RMGR" requires 7 arguments, but only 6 given
>
> /var/tmp/vpagent/postgresql94-libs-9.4.1-build/usr/include/pgsql/server/access/rmgrlist.h:29:68: error: macro "PG_RMGR" requires 7 arguments, but only 6 given
>
> In file included from parsexlog.c:39:
>
> /var/tmp/vpagent/postgresql94-libs-9.4.1-build/usr/include/pgsql/server/access/rmgrlist.h:28: error: ‘PG_RMGR’ undeclared here (not in a function)
>
> /var/tmp/vpagent/postgresql94-libs-9.4.1-build/usr/include/pgsql/server/access/rmgrlist.h:29: error: expected ‘}’ before ‘PG_RMGR’
>
> /var/tmp/vpagent/postgresql94-libs-9.4.1-build/usr/include/pgsql/server/access/rmgrlist.h:30:64: error: macro "PG_RMGR" requires 7 arguments, but only 6 given
>
> /var/tmp/vpagent/postgresql94-libs-9.4.1-build/usr/include/pgsql/server/access/rmgrlist.h:31:61: error: macro "PG_RMGR" requires 7 arguments, but only 6 given
>
> /var/tmp/vpagent/postgresql94-libs-9.4.1-build/usr/include/pgsql/server/access/rmgrlist.h:32:68: error: macro "PG_RMGR" requires 7 arguments, but only 6 given
>
> /var/tmp/vpagent/postgresql94-libs-9.4.1-build/usr/include/pgsql/server/access/rmgrlist.h:33:73: error: macro "PG_RMGR" requires 7 arguments, but only 6 given
>
> /var/tmp/vpagent/postgresql94-libs-9.4.1-build/usr/include/pgsql/server/access/rmgrlist.h:34:81: error: macro "PG_RMGR" requires 7 arguments, but only 6 given
>
> /var/tmp/vpagent/postgresql94-libs-9.4.1-build/usr/include/pgsql/server/access/rmgrlist.h:35:69: error: macro "PG_RMGR" requires 7 arguments, but only 6 given
>
> /var/tmp/vpagent/postgresql94-libs-9.4.1-build/usr/include/pgsql/server/access/rmgrlist.h:36:73: error: macro "PG_RMGR" requires 7 arguments, but only 6 given
>
> /var/tmp/vpagent/postgresql94-libs-9.4.1-build/usr/include/pgsql/server/access/rmgrlist.h:37:65: error: macro "PG_RMGR" requires 7 arguments, but only 6 given
>
> /var/tmp/vpagent/postgresql94-libs-9.4.1-build/usr/include/pgsql/server/access/rmgrlist.h:38:61: error: macro "PG_RMGR" requires 7 arguments, but only 6 given
>
> /var/tmp/vpagent/postgresql94-libs-9.4.1-build/usr/include/pgsql/server/access/rmgrlist.h:39:65: error: macro "PG_RMGR" requires 7 arguments, but only 6 given
>
> /var/tmp/vpagent/postgresql94-libs-9.4.1-build/usr/include/pgsql/server/access/rmgrlist.h:40:61: error: macro "PG_RMGR" requires 7 arguments, but only 6 given
>
> /var/tmp/vpagent/postgresql94-libs-9.4.1-build/usr/include/pgsql/server/access/rmgrlist.h:41:81: error: macro "PG_RMGR" requires 7 arguments, but only 6 given
>
> /var/tmp/vpagent/postgresql94-libs-9.4.1-build/usr/include/pgsql/server/access/rmgrlist.h:42:87: error: macro "PG_RMGR" requires 7 arguments, but only 6 given
>
> /var/tmp/vpagent/postgresql94-libs-9.4.1-build/usr/include/pgsql/server/access/rmgrlist.h:43:62: error: macro "PG_RMGR" requires 7 arguments, but only 6 given
>
> /var/tmp/vpagent/postgresql94-libs-9.4.1-build/usr/include/pgsql/server/access/rmgrlist.h:44:87: error: macro "PG_RMGR" requires 7 arguments, but only 6 given
>
> parsexlog.c: In function ‘findLastCheckpoint’:
>
> parsexlog.c:198: warning: implicit declaration of function ‘XLogRecGetInfo’
>
> parsexlog.c:200: warning: implicit declaration of function ‘XLogRecGetRmid’
>
> parsexlog.c: In function ‘extractPageInfo’:
>
> parsexlog.c:344: error: ‘XLR_SPECIAL_REL_UPDATE’ undeclared (first use in this function)
>
> parsexlog.c:344: error: (Each undeclared identifier is reported only once
>
> parsexlog.c:344: error: for each function it appears in.)
>
> parsexlog.c:358: error: ‘XLogReaderState’ has no member named ‘max_block_id’
>
> parsexlog.c:364: warning: implicit declaration of function ‘XLogRecGetBlockTag’
>
> make: *** [parsexlog.o] Error 1
>
>

It looks like master of pg_rewind expects to be built against Postgres
9.5. Try checking out the REL9_4_STABLE branch.

Cheers

Mark

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Gavin Flower 2015-02-24 23:07:21 Re: PostgreSQL on z/OS UNIX?
Previous Message Gilles Darold 2015-02-24 22:46:23 Re: Bug in pg_dump