=?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