Subject: PostgreSQL compiling problem
To: None <port-vax@netbsd.org>
From: Matej 'Kockac' Kubik <kockac@aimant.sk>
List: port-vax
Date: 03/14/2003 18:07:17
--zhXaljGHf11kAtnf
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

Hello,
I tried to compile PostgreSQL from (yesterday's) pkgsrc on my VAXStation
(NetBSD 1.6.1_RC1 (MINICC) #1: Wed Feb 12 11:58:32 CET 2003), but it failed
with following message:

[make output stripped]

cc -O2 -I/usr/pkg/include -Wall -Wmissing-prototypes -Wmissing-declarations -Wl,-R/usr/pkg/lib -L/usr/pkg/lib -L/usr/lib -Wl,-R/usr/pkg/lib -Wl,-E access/SUBSYS.o bootstrap/SUBSYS.o catalog/SUBSYS.o parser/SUBSYS.o commands/SUBSYS.o executor/SUBSYS.o lib/SUBSYS.o libpq/SUBSYS.o main/SUBSYS.o nodes/SUBSYS.o optimizer/SUBSYS.o port/SUBSYS.o postmaster/SUBSYS.o regex/SUBSYS.o rewrite/SUBSYS.o storage/SUBSYS.o tcop/SUBSYS.o utils/SUBSYS.o -lssl -lcrypto -lcrypt -lresolv -lcompat -lm -lutil  -o postgres
access/SUBSYS.o: In function `XLogInsert':
access/SUBSYS.o(.text+0x17688): undefined reference to `r0'
access/SUBSYS.o(.text+0x17692): undefined reference to `r0'
access/SUBSYS.o(.text+0x17698): undefined reference to `r0'
access/SUBSYS.o(.text+0x17c49): undefined reference to `r0'
access/SUBSYS.o(.text+0x17c53): undefined reference to `r0'
access/SUBSYS.o(.text+0x17c59): more undefined references to `r0' follow
gmake: *** [postgres] Error 1

[make output stripped]

I suppose the problem is in src/include/storage/s_lock.h (starting from
line containing "defined(NEED_VAX_TAS_ASM)"), but I don't know the assembler
syntax, so I can't tell.

http://www.postgresql.org says the PostgreSQL runs under NetBSD/vax 1.5 but
nothing about 1.6 or this problem in particular.

Could anyone please provide me with some information? (I hope there are more
PostgreSQL-using people on this list than VAX-using people on PostgreSQL's
lists.) :)

Thanks,
Matej Kubik

--zhXaljGHf11kAtnf
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 5.0i for non-commercial use
MessageID: J/m4C70jXhZ9Fm1HaZSjb6OChuZHVwLM

iQA/AwUBPnIMRNpDstgxsUy6EQJ7vACgs1LSh3uYTm3Cqsvd3DH5dup97EMAoJB0
/k2fbavvRkMckTGE4iMM9nxB
=aiHH
-----END PGP SIGNATURE-----

--zhXaljGHf11kAtnf--