Comment 1 for bug 236749

Revision history for this message
Stuart Bishop (stub) wrote : Re: No PostgreSQL 8.2 (or earlier) packages

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
wget -S http://main.slony.info/downloads/1.2/source/slony1-1.2.13.tar.bz2
bunzip2 -c slony1-1.2.13.tar.bz2 | tar xf -
cd slony1-1.2.13
./configure --with-pgconfigdir=/usr/lib/postgresql/8.2/bin
make

produces:

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