Re: [PORTS] trouble with OpenBSD

From: Bruce Momjian <maillist(at)candle(dot)pha(dot)pa(dot)us>
To: Louis Bertrand <louis(at)bertrandtech(dot)on(dot)ca>
Cc: pgsql-ports(at)postgreSQL(dot)org
Subject: Re: [PORTS] trouble with OpenBSD
Date: 1999-06-26 15:57:03
Message-ID: 199906261557.LAA10475@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-ports

> I made one patch so far in src (-m486 won't fly on non-i386 hardware):
>
> *** template/openbsd.orig Thu Jun 24 03:19:42 1999
> --- template/openbsd Thu Jun 24 03:20:15 1999
> ***************
> *** 1,6 ****
> AROPT:cq
> SHARED_LIB:-fpic -DPIC
> ! CFLAGS:-O2 -m486 -pipe
> SRCH_INC:
> SRCH_LIB:
> USE_LOCALE:no
> --- 1,6 ----
> AROPT:cq
> SHARED_LIB:-fpic -DPIC
> ! CFLAGS:-O2 -pipe
> SRCH_INC:
> SRCH_LIB:
> USE_LOCALE:no

Applied.

> My build starts getting into trouble with
> src/backend/storage/buffer/buf_init.c:
>
> cc -I../../../include -I../../../backend -I/usr/local/include -O2 -pipe
> -I../.
> . -c buf_init.c -o buf_init.o
> buf_init.c: In function `InitBufferPool':
> buf_init.c:241: `WaitCLSemId' undeclared (first use in this function)
> buf_init.c:241: (Each undeclared identifier is reported only once
> buf_init.c:241: for each function it appears in.)
> gmake[3]: *** [buf_init.o] Error 1
>
> To me it looks like you're missing a declaration, referring to file
> bufmgr.c:
> extern IpcSemaphoreId WaitCLSemId;
>
> I would add the line but I don't know if that's the real solution.

Yes, add them. My new buf_init.c shows:

#ifndef HAS_TEST_AND_SET
{
int status;
--> extern IpcSemaphoreId WaitIOSemId;
--> extern IpcSemaphoreId WaitCLSemId;

WaitIOSemId =
IpcSemaphoreCreate(IPCKeyGetWaitIOSemaphoreKey(key),

I will add it to the main source tree. We don't have many people using
HAS_TEST_AND_SET as undefined.

--
Bruce Momjian | http://www.op.net/~candle
maillist(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026

In response to

Responses

Browse pgsql-ports by date

  From Date Subject
Next Message Louis Bertrand 1999-06-26 16:34:11 Re: [PORTS] trouble with OpenBSD
Previous Message Chris Bitmead 1999-06-26 15:29:45 Re: [HACKERS] Severe SUBSELECT bug in 6.5 CVS