Thread: current cvs doesn't compile

current cvs doesn't compile

From
Hubert depesz Lubaczewski
Date:
hi
i downloaded sources from cvs on approx 19-20 of my time (cet i belive).
when i try to compile, i get:
...
...
...

make[4]: Opuszczam katalog `/home/services/pgdba/cvs/pgsql/src/backend/acce=
ss/rtree'
make -C transam SUBSYS.o
make[4]: Wchodz=EA w katalog `/home/services/pgdba/cvs/pgsql/src/backend/ac=
cess/transam'
gcc -O2 -Wall -Wmissing-prototypes -Wmissing-declarations -I../../../../src=
/include   -c -o clog.o clog.c
gcc -O2 -Wall -Wmissing-prototypes -Wmissing-declarations -I../../../../src=
/include   -c -o transam.o transam.c
gcc -O2 -Wall -Wmissing-prototypes -Wmissing-declarations -I../../../../src=
/include   -c -o varsup.o varsup.c
gcc -O2 -Wall -Wmissing-prototypes -Wmissing-declarations -I../../../../src=
/include   -c -o xact.o xact.c
gcc -O2 -Wall -Wmissing-prototypes -Wmissing-declarations -I../../../../src=
/include   -c -o xid.o xid.c
gcc -O2 -Wall -Wmissing-prototypes -Wmissing-declarations -I../../../../src=
/include   -c -o xlog.o xlog.c
gcc -O2 -Wall -Wmissing-prototypes -Wmissing-declarations -I../../../../src=
/include   -c -o xlogutils.o xlogutils.c
gcc -O2 -Wall -Wmissing-prototypes -Wmissing-declarations -I../../../../src=
/include   -c -o rmgr.o rmgr.c
/usr/bin/ld -r -o SUBSYS.o clog.o transam.o varsup.o xact.o xid.o xlog.o xl=
ogutils.o rmgr.o
make[4]: Opuszczam katalog `/home/services/pgdba/cvs/pgsql/src/backend/acce=
ss/transam'
/usr/bin/ld -r -o SUBSYS.o common/SUBSYS.o gist/SUBSYS.o hash/SUBSYS.o heap=
/SUBSYS.o index/SUBSYS.o nbtree/SUBSYS.o rtree/SUBSYS.o transam/SUBSYS.o
make[3]: Opuszczam katalog `/home/services/pgdba/cvs/pgsql/src/backend/acce=
ss'
make -C bootstrap all
make[3]: Wchodz=EA w katalog `/home/services/pgdba/cvs/pgsql/src/backend/bo=
otstrap'
gcc -O2 -Wall -Wmissing-prototypes -Wmissing-declarations -I. -I../../../sr=
c/include   -c -o bootparse.o bootparse.c
bootparse.y: In function `do_start':
bootparse.y:58: too few arguments to function `StartTransactionCommand'
bootparse.y: In function `do_end':
bootparse.y:66: too few arguments to function `CommitTransactionCommand'
bootparse.y: In function `Int_yyparse':
bootparse.y:181: warning: passing arg 2 of `CreateTupleDesc' makes integer =
from pointer without a cast
bootparse.y:181: too few arguments to function `CreateTupleDesc'
bootparse.y:182: warning: implicit declaration of function `BoolToHasOid'
bootparse.y:196: warning: passing arg 2 of `CreateTupleDesc' makes integer =
from pointer without a cast
bootparse.y:196: too few arguments to function `CreateTupleDesc'
bootparse.y:203: too many arguments to function `heap_create_with_catalog'
make[3]: *** [bootparse.o] B=B3=B1d 1
make[3]: Opuszczam katalog `/home/services/pgdba/cvs/pgsql/src/backend/boot=
strap'
make[2]: *** [bootstrap-recursive] B=B3=B1d 2
make[2]: Opuszczam katalog `/home/services/pgdba/cvs/pgsql/src/backend'
make[1]: *** [all] B=B3=B1d 2
make[1]: Opuszczam katalog `/home/services/pgdba/cvs/pgsql/src'
make: *** [all] B=B3=B1d 2
[pgdba@pldmachine pgsql]$

my build environment is:
2x pentium3 933
1.5 gb ram
scsi discs
linux, pld distrubution with:
[pgdba@pldmachine pgsql]$ rpm -q glibc gcc zlib readline openssl automake a=
utoconf cpp libtool
glibc-2.2.5-19
gcc-2.95.4-0.20010823.3
zlib-1.1.4-4
readline-4.3-4
openssl-0.9.6c-3
automake-1.6.3-1
autoconf-2.53a-1
cpp-2.95.4-0.20010823.3
libtool-1.4.2-11


do you have any idea on what is wrong?

depesz

--=20
hubert depesz lubaczewski                          http://www.depesz.pl/
------------------------------------------------------------------------
M=F3j Bo=BFe, spraw abym milcza=B3, dop=F3ki si=EA nie upewni=EA,  =BFe  na=
prawd=EA  mam
co=B6 do powiedzenia.                                      (c) 1998 depesz

Re: current cvs doesn't compile

From
Tom Lane
Date:
Hubert depesz Lubaczewski <depesz@depesz.pl> writes:
> gcc -O2 -Wall -Wmissing-prototypes -Wmissing-declarations -I. -I../../../sr=
> c/include   -c -o bootparse.o bootparse.c
> bootparse.y: In function `do_start':
> bootparse.y:58: too few arguments to function `StartTransactionCommand'

> do you have any idea on what is wrong?

Looks like your bootparse.c is out of date.  Perhaps you have an old
version with a wrong timestamp in your source tree?

            regards, tom lane