Re: compile problem on a vax

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: bart sikkes <b(dot)sikkes(at)student(dot)utwente(dot)nl>
Cc: pgsql-ports(at)postgresql(dot)org
Subject: Re: compile problem on a vax
Date: 2001-01-18 01:19:14
Message-ID: 200101180119.UAA18367@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-ports

Do a mailing list search. Someone did work on a VAX port about a year
ago. They never got it to work, though. Sounds like you have problems
with the assembly code.

[ Charset ISO-8859-1 unsupported, converting... ]
> Hello,
>
> I have been trying to compile postgresql-7.0.3 on a uVax II running NetBSD
> 1.5, after some problems i am almost there, now i only get these errors
> during the final compile:
>
> >gcc -I../include -I../backend -O2 -pipe -Wall -Wmissing-prototypes -Wmissin
> g-declarations -o postgres access/SUBSYS.o bootstrap/SUBSYS.o
> >catalog/SUBSYS.o commands/SUBSYS.o executor/SUBSYS.o lib/SUBSYS.o
> libpq/SUBSYS.o main/SUBSYS.o parser/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
> ../utils/version.o -lcrypt -lcompat -lm -lutil -ltermcap -lcurses
> >access/SUBSYS.o: Undefined symbol `r0' referenced
> >storage/SUBSYS.o: Undefined symbol `r0' referenced
> >collect2: ld returned 1 exit status
> >gmake[1]: *** [postgres] Error 1
> >gmake[1]: Leaving directory `/dinges/temp/postgresql-7.0.3/src/backend'
> >gmake: *** [all] Error 2
>
> I have change something in /src/include/storage/s_lock.h (because else i
> would get another error, saying that slock_t was already defined in os.h):
>
> >#if defined(NEED_VAX_TAS_ASM)
> >/*
> > * VAXen -- even multiprocessor ones
> > * (thanks to Tom Ivar Helbekkmo)
> > */
> >#define TAS(lock) tas(lock)
> >
> >typedef unsigned char slock_t; <---- DELETED THIS LINE
> >
> >static __inline__ int
> >tas(volatile slock_t *lock)
> >{
> > register _res;
> >
> > __asm__(" movl $1, r0 \
> > bbssi $0, (%1), 1 f \
> > clrl r0 \
> >1: movl r0, %0 "
> >: "=r"(_res) /* return value, in
> register */
> >: "r"(lock) /* argument, 'lock
> pointer', in register */
> >: "r0"); /* inline code uses
> this register */
> > return (int) _res;
> >}
> >
> >#endif /* NEED_VAX_TAS_ASM */
>
> Can anybody help me and explain to me how to fix this?
>
> Are there people here that have any postgresql version running on the vax?
> which version do you use and which OS for your vax
>
> thank you,
> bart
>
>

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026

In response to

Browse pgsql-ports by date

  From Date Subject
Next Message Jason Tishler 2001-01-18 01:48:01 Re: Re: Cygwin PostgreSQL CVS Patch
Previous Message Fred Yankowski 2001-01-18 01:16:15 Re: PostGreSQL on Windows Help