Re: Unable to build pg_rewind
От | Mark Kirkwood |
---|---|
Тема | Re: Unable to build pg_rewind |
Дата | |
Msg-id | 54ED0345.9080705@catalyst.net.nz обсуждение исходный текст |
Ответ на | Unable to build pg_rewind ("Ratay, Steve" <Steve.Ratay@Teradata.com>) |
Ответы |
Re: Unable to build pg_rewind
|
Список | 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 PostgreSQL9.4.1 source code to build against. When I try to compile pg_rewind, I am getting the following errors. How canI 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’ undeclaredhere (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
В списке pgsql-hackers по дате отправления: