Bug #542: 7.1.3 will not compile/install on SCO Open Server 5.0.4/5.0.5

From: pgsql-bugs(at)postgresql(dot)org
To: pgsql-bugs(at)postgresql(dot)org
Subject: Bug #542: 7.1.3 will not compile/install on SCO Open Server 5.0.4/5.0.5
Date: 2001-12-18 10:29:42
Message-ID: 200112181029.fBIATgb64551@postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Roger While (simrw(at)sim-basis(dot)de) reports a bug with a severity of 1
The lower the number the more severe it is.

Short Description
7.1.3 will not compile/install on SCO Open Server 5.0.4/5.0.5

Long Description
Firstly, "make" blows with undefined symbol "NOFILE" in
"src/backend/storage/file/fd.c". I temporarily changed this
to a hard-coded value.
Maybe should insert an #ifndef NOFILE after the normal includes.

After correcting this the Make actually completes; however
without creating any shared libraries, so that the "make install" blows.
What's missing is the following in "src/Makefile.shlib"

ifeq ($(PORTNAME), sco)
shlib := lib$(NAME)$(DLSUFFIX).$(SO_MAJOR_VERSION).$(SO_MINOR_VERSION)
ifndef cplusplus
ifeq ($(GCC), yes)
LINK.shared = $(CC) -shared
else
LINK.shared = $(CC) -G
endif
else
ifeq ($(GXX), yes)
LINK.shared = $(CXX) -shared
else
LINK.shared = $(CXX) -G
endif
endif
LINK.shared += -Wl,-z,text -Wl,-h,$(soname)
endif

Also to note for SCO is that apart from the obligatory base
patch (RS504C for 5.0.4, RS505A for 5.0.5) the following
patches MUST be applied BEFORE the make ;-)
OSS459B
OSS495C
OSS499A

Other patches MAY be relevant according to your system.

Note that the kernel parameters for semaphores/shared memory must
be upped to enable Postgresql to run.

Regards

Roger While

Sample Code

No file was uploaded with this report

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Tony Nicol 2001-12-18 11:20:28 Problem creating database using windows2k + cygwin + cygipc
Previous Message pgsql-bugs 2001-12-18 10:20:29 Bug #541: [JDBC] DatabaseMetaData.getTables() does not return tables with rules on them