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

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

From
pgsql-bugs@postgresql.org
Date:
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

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

From
Tom Lane
Date:
pgsql-bugs@postgresql.org writes:
> 7.1.3 will not compile/install on SCO Open Server 5.0.4/5.0.5

AFAICT, all these code changes are already present in current sources
(7.2 beta).  Would you be willing to pull down the current beta and
do a build/regression test?

> 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.

This info presumably belongs in FAQ_SCO, but I'm a little unclear on its
applicability.  Is it relevant to UnixWare?  Do SCO users all know where
to get these patches?

Could someone come up with a patch to apply to FAQ_SCO?

            regards, tom lane

Re: Bug #542: 7.1.3 will not compile/install on SCO Open

From
Peter Eisentraut
Date:
> 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

Thanks for the info.  We have already attempted to fix these issues in the
next release.  If time allows please get the latest beta of PostgreSQL 7.2
from a mirror near you, test it on your platform, and send a report (good
or bad) to pgsql-hackers@postgresql.org so we can include it on the
"supported" list or iron out the remaining problems.

--
Peter Eisentraut   peter_e@gmx.net