Dear Sir,
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. The errors are
as follows:
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
s_lock.c: In function `s_lock_stuck':
s_lock.c:51: `lock' undeclared (first use in this
function)
s_lock.c:51: (Each undeclared identifier is reported
only once
s_lock.c:51: for each function it appears in.)
s_lock.c:51: `file' undeclared (first use in this
function)
s_lock.c:51: `line' undeclared (first use in this
function)
s_lock.c: At top level:
s_lock.c:74: warning: type defaults to `int' in
declaration of `slock_t'
s_lock.c:74: parse error before '*' token
s_lock.c:75: warning: no previous prototype for
`s_lock'
s_lock.c: In function `s_lock':
s_lock.c:78: warning: implicit declaration of function
`TAS'
s_lock.c:78: `lock' undeclared (first use in this
function)
s_lock.c:84: `file' undeclared (first use in this
function)
s_lock.c:84: `line' undeclared (first use in this
function)
make[3]: *** [s_lock.o] Error 1
Is there any way to fix the compliler errors?
Any help will be highly appreciated!
Regards,
Li Zhao
__________________________________________________