Commit e1345567 authored by Bruce Momjian's avatar Bruce Momjian

I have compiled and tested PostgreSQL 7.1devel on UnixWare 7.1. During the

process, the need for changes to the FAQ_SCO document was uncovered.  The
attach patch file implements thost changes.

Billy G. Allie
parent 984b0b4d
...@@ -3,7 +3,7 @@ Frequently Asked Questions (FAQ) for PostgreSQL V7.0 ...@@ -3,7 +3,7 @@ Frequently Asked Questions (FAQ) for PostgreSQL V7.0
SCO UnixWare and OpenServer Specific SCO UnixWare and OpenServer Specific
TO BE READ IN CONJUNCTION WITH THE NORMAL FAQ TO BE READ IN CONJUNCTION WITH THE NORMAL FAQ
======================================================= =======================================================
last updated: $Date: 2000/08/26 19:34:24 $ last updated: $Date: 2000/10/09 03:49:42 $
current maintainer: Billy G. Allie (Bill.Allie@mug.org) current maintainer: Billy G. Allie (Bill.Allie@mug.org)
original author: Andrew Merrill (andrew@compclass.com) original author: Andrew Merrill (andrew@compclass.com)
...@@ -28,29 +28,28 @@ Topics: ...@@ -28,29 +28,28 @@ Topics:
*************************************************************************** ***************************************************************************
*) Skunkware *) Skunkware
You should locate your copy of the SCO Skunkware CD. The Skunkware CD You should locate your copy of the SCO Skunkware CD. The Skunkware CD is
is included with UnixWare 7 and current versions of OpenServer 5. included with UnixWare 7 and current versions of OpenServer 5.
Skunkware includes ready-to-install versions of many popular programs that Skunkware includes ready-to-install versions of many popular programs that
are available on the Internet. For example, gzip, gunzip, GNU make, flex, are available on the Internet. For example, gzip, gunzip, GNU make, flex,
and bison are all included. and bison are all included.
If you do not have this CD, the software on it If you do not have this CD, the software on it is available via anonymous
is available via anonymous ftp from ftp.sco.com/skunkware. ftp from ftp.sco.com/skunkware.
For UnixWare 7.1, this CD is now labeled "Open License Software Supplement". For UnixWare 7.1, this CD is now labeled "Open License Software Supplement".
Skunkware has different versions for UnixWare and Skunkware has different versions for UnixWare and OpenServer. Make sure
OpenServer. Make sure you install the correct version for your you install the correct version for your operating system, except as noted
operating system, except as noted below. below.
*************************************************************************** ***************************************************************************
*) GNU Make *) GNU Make
You need to use the GNU make program, which is on the Skunkware CD. You need to use the GNU make program, which is on the Skunkware CD. By
By default, it installs as /usr/local/bin/make. To avoid confusion default, it installs as /usr/local/bin/make. To avoid confusion with the
with the SCO make program, you may want to rename GNU make to gmake. SCO make program, you may want to rename GNU make to gmake.
*************************************************************************** ***************************************************************************
...@@ -74,19 +73,19 @@ configure --without-CXX ...@@ -74,19 +73,19 @@ configure --without-CXX
*************************************************************************** ***************************************************************************
*) Readline *) Readline
If you install the readline library, then psql (the PostgreSQL command If you install the readline library, then psql (the PostgreSQL command line
line SQL interpreter) remembers each command you type, and allows SQL interpreter) remembers each command you type, and allows you to use
you to use arrow keys to recall and edit previous commands. This is arrow keys to recall and edit previous commands. This is very helpful, and
very helpful, and is strongly recommended. The readline library is is strongly recommended. The readline library is on the Skunkware CD.
on the Skunkware CD.
The readline library is not included on the UnixWare 7.1 Skunkware CD. If The readline library is not included on the UnixWare 7.1 Skunkware CD. If
you have the UnixWare 7.0.0 or 7.0.1 Skunkware CDs, you can install it you have the UnixWare 7.0.0 or 7.0.1 Skunkware CDs, you can install it from
from there. Otherwise, try ftp.sco.com/skunkware. there. Otherwise, try ftp.sco.com/skunkware.
By default, readline installs into /usr/local/lib and /usr/local/include. By default, readline installs into /usr/local/lib and /usr/local/include.
However, the PostgreSQL configure program will not find it there without However, the PostgreSQL configure program will not find it there without
help. If you installed readline, then use the following options to configure: help. If you installed readline, then use the following options to
configure:
configure --with-libs=/usr/local/lib --with-includes=/usr/local/include configure --with-libs=/usr/local/lib --with-includes=/usr/local/include
...@@ -117,41 +116,67 @@ Putting these together with the no-C++ and readline options from above: ...@@ -117,41 +116,67 @@ Putting these together with the no-C++ and readline options from above:
*) Compiling PostgreSQL 7.0 with the UDK *) Compiling PostgreSQL 7.0 with the UDK
The program, backend/utils/adt/int8.c, tickles a compiler bug with in the The program, backend/utils/adt/int8.c, tickles a compiler bug with in the
following version of the C compiler: following versions (and probably others as well) of the C compiler:
Optimizing C Compilation System (CCS) 3.2 08/18/98 (u701) Optimizing C Compilation System (CCS) 3.2 08/18/98
Optimizing C Compilation System (CCS) 3.2 09/28/99
If you encounter an error compiling backend/utils/adt/int8.c, please apply If you encounter an error compiling backend/utils/adt/int8.c, please apply
the following patch: the following patch:
------------------------------8< CUT HERE >8------------------------------ ------------------------------8< CUT HERE >8------------------------------
*** ./src/backend/utils/adt/int8.c.orig Mon Apr 3 13:24:12 2000 *** src/backend/utils/adt/int8.c.orig Sat Oct 7 20:48:17 2000
--- ./src/backend/utils/adt/int8.c Mon Apr 3 13:28:47 2000 --- src/backend/utils/adt/int8.c Sat Oct 7 20:52:03 2000
*************** ***************
*** 410,416 **** *** 489,495 ****
if (*arg1 < 1) if (arg1 < 1)
*result = 0; result = 0;
else else
! for (i = *arg1, *result = 1; i > 0; --i) ! for (i = arg1, result = 1; i > 0; --i)
*result *= i; result *= i;
return result; PG_RETURN_INT64(result);
--- 410,416 ---- --- 489,495 ----
if (*arg1 < 1) if (arg1 < 1)
*result = 0; result = 0;
else else
! for (i = *arg1, *result = 1; 0 < i; --i) ! for (i = arg1, result = 1; i; --i)
*result *= i; result *= i;
PG_RETURN_INT64(result);
------------------------------8< CUT HERE >8------------------------------
The bind function in UnixWare 7.1+ has a problem when used with the AF_UNIX
family. The following patch provides a work-around for the problem (thanks
go to Oliver PRENANT <ohp@pyrenet.fre> for this patch).
------------------------------8< CUT HERE >8------------------------------
*** src/backend/libpq/pqcomm.c.orig Sun Oct 8 02:21:25 2000
--- src/backend/libpq/pqcomm.c Sun Oct 8 02:42:57 2000
***************
*** 329,334 ****
--- 329,341 ----
return STATUS_ERROR;
}
return result; + /* Work around a bug in UnixWare 7.1.x - accept is not returning the
+ * correct family when the family is AF_UNIX.
+ */
+
+ if (port->raddr.sa.sa_family == 0)
+ port->raddr.sa.sa_family = AF_UNIX;
+
/* fill in the server (local) address */
addrlen = sizeof(port->laddr);
if (getsockname(port->sock, (struct sockaddr *) & port->laddr,
------------------------------8< CUT HERE >8------------------------------ ------------------------------8< CUT HERE >8------------------------------
*************************************************************************** ***************************************************************************
*) Reading the PostgreSQL man pages on UnixWare *) Reading the PostgreSQL man pages on UnixWare
By default, the PostgreSQL man pages are installed into /usr/local/pgsql/man. By default, the PostgreSQL man pages are installed into /usr/local/pgsql/man.
By default, UnixWare does not look there for man pages, so you will not By default, UnixWare does not look there for man pages, so you will not be
be able to read them. able to read them.
You need to make the following changes to access the PostgreSQL man pages You need to make the following changes to access the PostgreSQL man pages
from UnixWare. from UnixWare.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment