Stéphane Schildknecht stephane.schildknecht
Fri Jan 12 04:14:17 PST 2007
Gavin,

Gavin Hamill a ?crit :
> roffle1:~/slony1-1.2.6# make
> make[1]: Entering directory `/root/slony1-1.2.6/src'
> make[2]: Entering directory `/root/slony1-1.2.6/src/xxid'
> gcc -g -O2 -Wall -Wmissing-prototypes -Wmissing-declarations -fpic -I../.. -I/usr/include/postgresql/ -I/usr/include/postgresql/8.1/server/  -c -o xxid.o xxid.c
> In file included from xxid.c:18:
> /usr/include/postgresql/8.1/server/access/xact.h:138:46: error: macro "GetTopTransactionId" passed 1 arguments, but takes just 0
> make[2]: *** [xxid.o] Error 1
> make[2]: Leaving directory `/root/slony1-1.2.6/src/xxid'
> make[1]: *** [all] Error 2
> make[1]: Leaving directory `/root/slony1-1.2.6/src'
> make: *** [all] Error 2
>
> Erk - and sure enough in xact.h, 
>
> extern TransactionId GetTopTransactionId(void);
>
> perhaps it started taking an argument in PG 8.2 ? We have 8.1.5...
>   

I've looked through PG8.2 (source code) and 8.1 installed by Ubuntu, and
none of them define GetTopTransactionId with an argument.

$ rgrep GetTopTransactionId /usr/include/postgresql/
/usr/include/postgresql/8.1/server/access/xact.h:extern TransactionId
GetTopTransactionId(void);
In 8.2.1 sources :
src/include/access/xact.h:extern TransactionId GetTopTransactionId(void);


SAS




More information about the Slony1-general mailing list