make[1]: Entering directory `/home/stub/src/slony1-1.2.13/src'
make[2]: Entering directory `/home/stub/src/slony1-1.2.13/src/xxid'
gcc -g -O2 -Wall -Wmissing-prototypes -Wmissing-declarations -fpic -I../.. -I/usr/include/postgresql/ -I/usr/include/postgresql/8.2/server/ -c -o xxid.o xxid.c
In file included from /usr/include/postgresql/8.2/server/storage/bufpage.h:17, from /usr/include/postgresql/8.2/server/access/relscan.h:18, from /usr/include/postgresql/8.2/server/access/heapam.h:18, from /usr/include/postgresql/8.2/server/executor/spi.h:22, from xxid.c:20:
/usr/include/postgresql/8.2/server/storage/bufmgr.h:23: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘int’
/usr/include/postgresql/8.2/server/storage/bufmgr.h:33: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘char’
/usr/include/postgresql/8.2/server/storage/bufmgr.h:34: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘int32’
/usr/include/postgresql/8.2/server/storage/bufmgr.h:37: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘int’
/usr/include/postgresql/8.2/server/storage/bufmgr.h:38: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘Block’
/usr/include/postgresql/8.2/server/storage/bufmgr.h:39: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘int32’
In file included from /usr/include/postgresql/8.2/server/access/relscan.h:19, from /usr/include/postgresql/8.2/server/access/heapam.h:18, from /usr/include/postgresql/8.2/server/executor/spi.h:22, from xxid.c:20:
/usr/include/postgresql/8.2/server/utils/tqual.h:62: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘Snapshot’
/usr/include/postgresql/8.2/server/utils/tqual.h:73: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘Snapshot’
/usr/include/postgresql/8.2/server/utils/tqual.h:74: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘Snapshot’
/usr/include/postgresql/8.2/server/utils/tqual.h:75: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘Snapshot’
In file included from /usr/include/postgresql/8.2/server/storage/lock.h:20, from /usr/include/postgresql/8.2/server/storage/lmgr.h:17, from /usr/include/postgresql/8.2/server/access/heapam.h:24, from /usr/include/postgresql/8.2/server/executor/spi.h:22, from xxid.c:20:
/usr/include/postgresql/8.2/server/storage/shmem.h:38: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘SHMEM_OFFSET’
In file included from /usr/include/postgresql/8.2/server/utils/resowner.h:23, from /usr/include/postgresql/8.2/server/utils/portal.h:50, from /usr/include/postgresql/8.2/server/tcop/pquery.h:17, from /usr/include/postgresql/8.2/server/executor/spi.h:34, from xxid.c:20:
/usr/include/postgresql/8.2/server/utils/catcache.h:160: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘MemoryContext’
In file included from /usr/include/postgresql/8.2/server/utils/portal.h:50, from /usr/include/postgresql/8.2/server/tcop/pquery.h:17, from /usr/include/postgresql/8.2/server/executor/spi.h:34, from xxid.c:20:
/usr/include/postgresql/8.2/server/utils/resowner.h:36: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘ResourceOwner’
/usr/include/postgresql/8.2/server/utils/resowner.h:37: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘ResourceOwner’
/usr/include/postgresql/8.2/server/utils/resowner.h:38: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘ResourceOwner’
In file included from /usr/include/postgresql/8.2/server/executor/spi.h:34, from xxid.c:20:
/usr/include/postgresql/8.2/server/tcop/pquery.h:20: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘Portal’
In file included from /usr/include/postgresql/8.2/server/tcop/tcopprot.h:23, from /usr/include/postgresql/8.2/server/executor/spi.h:35, from xxid.c:20:
/usr/include/postgresql/8.2/server/utils/guc.h:118: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘bool’
In file included from /usr/include/postgresql/8.2/server/executor/spi.h:35, from xxid.c:20:
/usr/include/postgresql/8.2/server/tcop/tcopprot.h:30: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘const’
In file included from /usr/include/postgresql/8.2/server/executor/spi.h:37, from xxid.c:20:
/usr/include/postgresql/8.2/server/utils/builtins.h:260: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘int’
In file included from xxid.c:20:
/usr/include/postgresql/8.2/server/executor/spi.h:78: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘uint32’
/usr/include/postgresql/8.2/server/executor/spi.h:79: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘Oid’
/usr/include/postgresql/8.2/server/executor/spi.h:80: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘SPITupleTable’
/usr/include/postgresql/8.2/server/executor/spi.h:81: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘int’
xxid.c:23: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘const’
xxid.c:23: warning: no previous prototype for ‘Pg_magic_func’
xxid.c:28:1: warning: "SET_VARSIZE" redefined
In file included from xxid.c:14:
/usr/include/postgresql/postgres.h:261:1: warning: this is the location of the previous definition
xxid.c:49: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘const’
xxid.c:49: warning: no previous prototype for ‘pg_finfo__Slony_I_xxidin’
xxid.c:50: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘const’
xxid.c:50: warning: no previous prototype for ‘pg_finfo__Slony_I_xxidout’
xxid.c:51: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘const’
xxid.c:51: warning: no previous prototype for ‘pg_finfo__Slony_I_xxideq’
xxid.c:52: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘const’
xxid.c:52: warning: no previous prototype for ‘pg_finfo__Slony_I_xxidne’
xxid.c:53: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘const’
xxid.c:53: warning: no previous prototype for ‘pg_finfo__Slony_I_xxidlt’
xxid.c:54: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘const’
xxid.c:54: warning: no previous prototype for ‘pg_finfo__Slony_I_xxidle’
xxid.c:55: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘const’
xxid.c:55: warning: no previous prototype for ‘pg_finfo__Slony_I_xxidgt’
xxid.c:56: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘const’
xxid.c:56: warning: no previous prototype for ‘pg_finfo__Slony_I_xxidge’
xxid.c:57: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘const’
xxid.c:57: warning: no previous prototype for ‘pg_finfo__Slony_I_btxxidcmp’
xxid.c:58: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘const’
xxid.c:58: warning: no previous prototype for ‘pg_finfo__Slony_I_getCurrentXid’
xxid.c:59: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘const’
xxid.c:59: warning: no previous prototype for ‘pg_finfo__Slony_I_getMinXid’
xxid.c:60: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘const’
xxid.c:60: warning: no previous prototype for ‘pg_finfo__Slony_I_getMaxXid’
xxid.c:74: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘const’
xxid.c:74: warning: no previous prototype for ‘pg_finfo__Slony_I_xxid_snapshot_in’
xxid.c:75: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘const’
xxid.c:75: warning: no previous prototype for ‘pg_finfo__Slony_I_xxid_snapshot_out’
xxid.c:76: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘const’
xxid.c:76: warning: no previous prototype for ‘pg_finfo__Slony_I_xxid_lt_snapshot’
xxid.c:77: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘const’
xxid.c:77: warning: no previous prototype for ‘pg_finfo__Slony_I_xxid_ge_snapshot’
xxid.c: In function ‘_Slony_I_getMinXid’:
xxid.c:236: error: ‘SerializableSnapshot’ undeclared (first use in this function)
xxid.c:236: error: (Each undeclared identifier is reported only once
xxid.c:236: error: for each function it appears in.)
xxid.c: In function ‘_Slony_I_getMaxXid’:
xxid.c:249: error: ‘SerializableSnapshot’ undeclared (first use in this function)
xxid.c: In function ‘_Slony_I_xxid_snapshot_in’:
xxid.c:327: warning: implicit declaration of function ‘VARATT_SIZEP’
xxid.c:327: error: lvalue required as left operand of assignment
make[2]: *** [xxid.o] Error 1
make[2]: Leaving directory `/home/stub/src/slony1-1.2.13/src/xxid'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/stub/src/slony1-1.2.13/src'
make: *** [all] Error 2
I'm unable to come up with a workaround, as it no longer appears possible to build Slony 1.2.13 against PostgreSQL 8.2 on Hardy.
sudo apt-get install postgresql- server- dev-8.2 main.slony. info/downloads/ 1.2/source/ slony1- 1.2.13. tar.bz2 1.2.13. tar.bz2 | tar xf - pgconfigdir= /usr/lib/ postgresql/ 8.2/bin
wget -S http://
bunzip2 -c slony1-
cd slony1-1.2.13
./configure --with-
make
produces:
make[1]: Entering directory `/home/ stub/src/ slony1- 1.2.13/ src' stub/src/ slony1- 1.2.13/ src/xxid' prototypes -Wmissing- declarations -fpic -I../.. -I/usr/ include/ postgresql/ -I/usr/ include/ postgresql/ 8.2/server/ -c -o xxid.o xxid.c postgresql/ 8.2/server/ storage/ bufpage. h:17,
from /usr/include/ postgresql/ 8.2/server/ access/ relscan. h:18,
from /usr/include/ postgresql/ 8.2/server/ access/ heapam. h:18,
from /usr/include/ postgresql/ 8.2/server/ executor/ spi.h:22,
from xxid.c:20: postgresql/ 8.2/server/ storage/ bufmgr. h:23: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘int’ postgresql/ 8.2/server/ storage/ bufmgr. h:33: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘char’ postgresql/ 8.2/server/ storage/ bufmgr. h:34: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘int32’ postgresql/ 8.2/server/ storage/ bufmgr. h:37: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘int’ postgresql/ 8.2/server/ storage/ bufmgr. h:38: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘Block’ postgresql/ 8.2/server/ storage/ bufmgr. h:39: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘int32’ postgresql/ 8.2/server/ access/ relscan. h:19,
from /usr/include/ postgresql/ 8.2/server/ access/ heapam. h:18,
from /usr/include/ postgresql/ 8.2/server/ executor/ spi.h:22,
from xxid.c:20: postgresql/ 8.2/server/ utils/tqual. h:62: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘Snapshot’ postgresql/ 8.2/server/ utils/tqual. h:73: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘Snapshot’ postgresql/ 8.2/server/ utils/tqual. h:74: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘Snapshot’ postgresql/ 8.2/server/ utils/tqual. h:75: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘Snapshot’ postgresql/ 8.2/server/ storage/ lock.h: 20,
from /usr/include/ postgresql/ 8.2/server/ storage/ lmgr.h: 17,
from /usr/include/ postgresql/ 8.2/server/ access/ heapam. h:24,
from /usr/include/ postgresql/ 8.2/server/ executor/ spi.h:22,
from xxid.c:20: postgresql/ 8.2/server/ storage/ shmem.h: 38: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘SHMEM_OFFSET’ postgresql/ 8.2/server/ utils/resowner. h:23,
from /usr/include/ postgresql/ 8.2/server/ utils/portal. h:50,
from /usr/include/ postgresql/ 8.2/server/ tcop/pquery. h:17,
from /usr/include/ postgresql/ 8.2/server/ executor/ spi.h:34,
from xxid.c:20: postgresql/ 8.2/server/ utils/catcache. h:160: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘MemoryContext’ postgresql/ 8.2/server/ utils/portal. h:50,
from /usr/include/ postgresql/ 8.2/server/ tcop/pquery. h:17,
from /usr/include/ postgresql/ 8.2/server/ executor/ spi.h:34,
from xxid.c:20: postgresql/ 8.2/server/ utils/resowner. h:36: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘ResourceOwner’ postgresql/ 8.2/server/ utils/resowner. h:37: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘ResourceOwner’ postgresql/ 8.2/server/ utils/resowner. h:38: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘ResourceOwner’ postgresql/ 8.2/server/ executor/ spi.h:34,
from xxid.c:20: postgresql/ 8.2/server/ tcop/pquery. h:20: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘Portal’ postgresql/ 8.2/server/ tcop/tcopprot. h:23,
from /usr/include/ postgresql/ 8.2/server/ executor/ spi.h:35,
from xxid.c:20: postgresql/ 8.2/server/ utils/guc. h:118: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘bool’ postgresql/ 8.2/server/ executor/ spi.h:35,
from xxid.c:20: postgresql/ 8.2/server/ tcop/tcopprot. h:30: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘const’ postgresql/ 8.2/server/ executor/ spi.h:37,
from xxid.c:20: postgresql/ 8.2/server/ utils/builtins. h:260: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘int’ postgresql/ 8.2/server/ executor/ spi.h:78: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘uint32’ postgresql/ 8.2/server/ executor/ spi.h:79: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘Oid’ postgresql/ 8.2/server/ executor/ spi.h:80: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘SPITupleTable’ postgresql/ 8.2/server/ executor/ spi.h:81: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘int’ postgresql/ postgres. h:261:1: warning: this is the location of the previous definition _Slony_ I_xxidin’ _Slony_ I_xxidout’ _Slony_ I_xxideq’ _Slony_ I_xxidne’ _Slony_ I_xxidlt’ _Slony_ I_xxidle’ _Slony_ I_xxidgt’ _Slony_ I_xxidge’ _Slony_ I_btxxidcmp’ _Slony_ I_getCurrentXid ’ _Slony_ I_getMinXid’ _Slony_ I_getMaxXid’ _Slony_ I_xxid_ snapshot_ in’ _Slony_ I_xxid_ snapshot_ out’ _Slony_ I_xxid_ lt_snapshot’ _Slony_ I_xxid_ ge_snapshot’ I_getMinXid’ : apshot’ undeclared (first use in this function) I_getMaxXid’ : apshot’ undeclared (first use in this function) I_xxid_ snapshot_ in’: stub/src/ slony1- 1.2.13/ src/xxid' stub/src/ slony1- 1.2.13/ src'
make[2]: Entering directory `/home/
gcc -g -O2 -Wall -Wmissing-
In file included from /usr/include/
/usr/include/
/usr/include/
/usr/include/
/usr/include/
/usr/include/
/usr/include/
In file included from /usr/include/
/usr/include/
/usr/include/
/usr/include/
/usr/include/
In file included from /usr/include/
/usr/include/
In file included from /usr/include/
/usr/include/
In file included from /usr/include/
/usr/include/
/usr/include/
/usr/include/
In file included from /usr/include/
/usr/include/
In file included from /usr/include/
/usr/include/
In file included from /usr/include/
/usr/include/
In file included from /usr/include/
/usr/include/
In file included from xxid.c:20:
/usr/include/
/usr/include/
/usr/include/
/usr/include/
xxid.c:23: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘const’
xxid.c:23: warning: no previous prototype for ‘Pg_magic_func’
xxid.c:28:1: warning: "SET_VARSIZE" redefined
In file included from xxid.c:14:
/usr/include/
xxid.c:49: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘const’
xxid.c:49: warning: no previous prototype for ‘pg_finfo_
xxid.c:50: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘const’
xxid.c:50: warning: no previous prototype for ‘pg_finfo_
xxid.c:51: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘const’
xxid.c:51: warning: no previous prototype for ‘pg_finfo_
xxid.c:52: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘const’
xxid.c:52: warning: no previous prototype for ‘pg_finfo_
xxid.c:53: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘const’
xxid.c:53: warning: no previous prototype for ‘pg_finfo_
xxid.c:54: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘const’
xxid.c:54: warning: no previous prototype for ‘pg_finfo_
xxid.c:55: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘const’
xxid.c:55: warning: no previous prototype for ‘pg_finfo_
xxid.c:56: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘const’
xxid.c:56: warning: no previous prototype for ‘pg_finfo_
xxid.c:57: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘const’
xxid.c:57: warning: no previous prototype for ‘pg_finfo_
xxid.c:58: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘const’
xxid.c:58: warning: no previous prototype for ‘pg_finfo_
xxid.c:59: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘const’
xxid.c:59: warning: no previous prototype for ‘pg_finfo_
xxid.c:60: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘const’
xxid.c:60: warning: no previous prototype for ‘pg_finfo_
xxid.c:74: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘const’
xxid.c:74: warning: no previous prototype for ‘pg_finfo_
xxid.c:75: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘const’
xxid.c:75: warning: no previous prototype for ‘pg_finfo_
xxid.c:76: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘const’
xxid.c:76: warning: no previous prototype for ‘pg_finfo_
xxid.c:77: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘const’
xxid.c:77: warning: no previous prototype for ‘pg_finfo_
xxid.c: In function ‘_Slony_
xxid.c:236: error: ‘SerializableSn
xxid.c:236: error: (Each undeclared identifier is reported only once
xxid.c:236: error: for each function it appears in.)
xxid.c: In function ‘_Slony_
xxid.c:249: error: ‘SerializableSn
xxid.c: In function ‘_Slony_
xxid.c:327: warning: implicit declaration of function ‘VARATT_SIZEP’
xxid.c:327: error: lvalue required as left operand of assignment
make[2]: *** [xxid.o] Error 1
make[2]: Leaving directory `/home/
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/
make: *** [all] Error 2