Re: porting postgresql 7.0.3 to linux on SH3

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Zhao Li <lizhaosg(at)yahoo(dot)com(dot)sg>
Cc: pgsql-ports(at)postgresql(dot)org
Subject: Re: porting postgresql 7.0.3 to linux on SH3
Date: 2002-09-27 14:57:36
Message-ID: 3587.1033138656@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-ports

=?iso-8859-1?q?Zhao=20Li?= <lizhaosg(at)yahoo(dot)com(dot)sg> writes:
> When I tried to port postgresql 7.0.3 to linux on SH3,
> I cannot compile the s_lock.c under the
> src/backend/storage/buffer directory.

Why are you bothering with 7.0.3? That's two major versions back
(almost three, in fact). Use 7.2.2 if you want a stable release,
or 7.3 beta if you are experimenting.

> gcc -I../../../include -I../../../backend -O2 -Wall
> -Wmissing-prototypes -Wmissing-declarations -I../..
> -c -o s_lock.o s_lock.c
> s_lock.c:47: warning: type defaults to `int' in
> declaration of `slock_t'
> s_lock.c:47: parse error before '*' token

This looks like your compiler does not understand "volatile".
While a compiler update might be appropriate too, I would have
thought that "configure" would catch this. Did you run configure
for this platform?

regards, tom lane

In response to

Browse pgsql-ports by date

  From Date Subject
Next Message Jeshua Lacock 2002-09-30 23:46:44 7.2.2 on Mac OS 10.2.1 (Darwin 6.0)
Previous Message Bruce Momjian 2002-09-27 13:48:44 Re: porting postgresql 7.0.3 to linux on SH3