Re: porting postgresql 7.0.3 to linux on SH3 - Mailing list pgsql-ports

From Tom Lane
Subject Re: porting postgresql 7.0.3 to linux on SH3
Date
Msg-id 3587.1033138656@sss.pgh.pa.us
Whole thread Raw
In response to porting postgresql 7.0.3 to linux on SH3  (Zhao Li <lizhaosg@yahoo.com.sg>)
List pgsql-ports
=?iso-8859-1?q?Zhao=20Li?= <lizhaosg@yahoo.com.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

pgsql-ports by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: porting postgresql 7.0.3 to linux on SH3
Next
From: Jeshua Lacock
Date:
Subject: 7.2.2 on Mac OS 10.2.1 (Darwin 6.0)