agora inbox for postgres@postgres.berkeley.edu
help / color / mirror / Atom feedFrom: bachesta@angst.tera.com
To: postgres@postgres.Berkeley.EDU
Subject: problems building src/backend/storage/ipc/s_lock.c
Date: Mon, 31 Oct 94 21:30:59 PST
Message-ID: <9411010530.AA24046@angst.tera.com> (raw)
I'm busy porting postgres 4.2 to NetBSD 1.0 and I came across the
following error:
cc -O -DPORTNAME_netbsd -DPOSTPORT='"4321"' -DDEADLOCK_TIMEOUT=60 -DPOSTGRESDIR='"/usr/local/postgres"' -DDATADIR='"/usr/local/postgres/data"' -DBINDIR='"/usr/local/postgres/bin"' -I/usr/postgres/src/backend/. -I/usr/postgres/src/backend/obj -I/usr/postgres/src/backend/tmp -I/usr/postgres/src/backend/port/netbsd -c /usr/postgres/src/backend/storage/ipc/s_lock.c
/usr/postgres/src/backend/storage/ipc/s_lock.c: In function `tas':
/usr/postgres/src/backend/storage/ipc/s_lock.c:283: `m' undeclared (first use this function)
/usr/postgres/src/backend/storage/ipc/s_lock.c:283: (Each undeclared identifier is reported only once
/usr/postgres/src/backend/storage/ipc/s_lock.c:283: for each function it appears in.)
*** Error code 1
The code segment that is giving me the problem looks like this
#if defined(__i386__) && defined(__GNUC__)
tas(lock)
slock_t *lock;
{
slock_t res;
__asm__("xchgb %0,%1":"=q" (res),"=m" (*m):"0" (0x1));
return(res);
}
line 283 is the __asm__ line. My questin is where is "m" supposed to
be defined and why does this compile for other OS's (i.e. linux freebsd),
or does it. I'm not an assembly guru so any help you can give me is
appreciated.
Thanks,
Jim Bachesta
bachesta@tera.com
==============================================================================
To add/remove yourself to/from the POSTGRES mailing list: send mail with
the subject line ADD or DEL to "postgres-request@postgres.Berkeley.EDU"
If this fails, send mail to "post_questions@postgres.Berkeley.EDU" and
a human will deal with it. DO NOT post to the "postgres" mailing list.
==============================================================================
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: postgres@postgres.berkeley.edu
Cc: bachesta@angst.tera.com
Subject: Re: problems building src/backend/storage/ipc/s_lock.c
In-Reply-To: <9411010530.AA24046@angst.tera.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox