trouble with OpenBSD

From: Louis Bertrand <louis(at)bertrandtech(dot)on(dot)ca>
To: pgsql-ports(at)postgreSQL(dot)org
Subject: trouble with OpenBSD
Date: 1999-06-26 05:17:32
Message-ID: Pine.BSO.4.10.9906260427430.4183-100000@tronix.bertrandtech.on.ca
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-ports

Hello,

I'm trying to make a 6.5 port for OpenBSD and I'm running to problems
making the package. Apologies if I'm covering known ground.

Version: PostgreSQL 6.5
Compiler: egcs-2.93.22
OS: OpenBSD 2.5 i386
Other tools:
bison-1.27
gmake-3.77

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

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.

Ciao!
--Louis

Louis Bertrand <louis(at)bertrandtech(dot)on(dot)ca>
Bertrand Technical Services, Bowmanville, ON, Canada
Tel: +1.905.623.8925 Fax: +1.905.623.3852

In response to

Responses

Browse pgsql-ports by date

  From Date Subject
Next Message Magnus Hagander 1999-06-26 12:45:24 RE: [PORTS] NT Port -- semaphores + running postmaster as daemon (service?)
Previous Message Peter Eisentraut 1999-06-26 04:26:12 Installation report