Unable to build pg_rewind

From: "Ratay, Steve" <Steve(dot)Ratay(at)Teradata(dot)com>
To: "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>
Subject: Unable to build pg_rewind
Date: 2015-02-24 22:06:38
Message-ID: D112601D.739C5%steve.ratay@teradata.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

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

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2015-02-24 22:08:20 Re: Precedence of NOT LIKE, NOT BETWEEN, etc
Previous Message David Fetter 2015-02-24 21:42:35 Re: PostgreSQL on z/OS UNIX?