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

__________________________________________________
Do You Yahoo!?
Get cool ringtones and name logos for your phone!
http://sg.mobile.yahoo.com

Search Discussions

  • Bruce Momjian at Sep 27, 2002 at 1:48 pm
    Please upgrade to 7.3beta and try that.

    ---------------------------------------------------------------------------

    Zhao Li wrote:
    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

    __________________________________________________
    Do You Yahoo!?
    Get cool ringtones and name logos for your phone!
    http://sg.mobile.yahoo.com

    ---------------------------(end of broadcast)---------------------------
    TIP 5: Have you checked our extensive FAQ?

    http://www.postgresql.org/users-lounge/docs/faq.html
    --
    Bruce Momjian | http://candle.pha.pa.us
    [email protected] | (610) 359-1001
    + If your life is a hard drive, | 13 Roberts Road
    + Christ can be your backup. | Newtown Square, Pennsylvania 19073
  • Tom Lane at Sep 27, 2002 at 2:57 pm

    =?iso-8859-1?q?Zhao=20Li?= <[email protected]> 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

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppgsql-ports @
categoriespostgresql
postedSep 23, '02 at 12:16p
activeSep 27, '02 at 2:57p
posts3
users3
websitepostgresql.org
irc#postgresql

People

Translate

site design / logo © 2023 Grokbase