Bug #542: 7.1.3 will not compile/install on SCO Open Server 5.0.4/5.0.5 - Mailing list pgsql-bugs

From pgsql-bugs@postgresql.org
Subject Bug #542: 7.1.3 will not compile/install on SCO Open Server 5.0.4/5.0.5
Date
Msg-id 200112181029.fBIATgb64551@postgresql.org
Whole thread Raw
Responses Re: Bug #542: 7.1.3 will not compile/install on SCO Open Server 5.0.4/5.0.5
Re: Bug #542: 7.1.3 will not compile/install on SCO Open
List pgsql-bugs
Roger While (simrw@sim-basis.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

pgsql-bugs by date:

Previous
From: Markus Bertheau
Date:
Subject: Re: stuck spinlock. Aborting. What does this mean?
Next
From: pgsql-bugs@postgresql.org
Date:
Subject: Bug #541: [JDBC] DatabaseMetaData.getTables() does not return tables with rules on them