Sender: owner-postgres95@postgres.Berkeley.EDU
X-Return-Path: andrew_yu
Received: from VNET.IBM.COM (vnet.ibm.com [199.171.26.4]) by nobozo.CS.Berkeley.EDU (8.6.10/8.6.3) with SMTP id EAA23528 for <postgres95@postgres.berkeley.edu>; Thu, 16 Nov 1995 04:54:08 -0800
From: aherbst@VNET.IBM.COM
Message-Id: <199511161254.EAA23528@nobozo.CS.Berkeley.EDU>
Received: from MAZVM01 by VNET.IBM.COM (IBM VM SMTP V2R3) with BSMTP id 8591;
   Thu, 16 Nov 95 07:53:50 EST
Date: Thu, 16 Nov 95 13:37:51 CET
To: postgres95@postgres.Berkeley.EDU
Subject: pg95 on AIX 4.1
Resent-To: postgres95-redist
Resent-Date: Thu, 16 Nov 95 04:54:10 -0800
Resent-From: pglite
Resent-XMts: smtp

Loc Luu, the good news is that pg95 indeed runs on AIX 4.1.2.
(Even the regression tests look fine).
The bad news is that I don't have a formal patch. However, the
attached file might help you or somebody else who volunteers
to do a "clean" port.
I guess pg comiles with the built-in cc as well.

Axel.

=============================================================================
How to install Postgres95 1.0 on AIX 4.1.2 using gmake and IBM C Set ++ 3.1.3
                     (Patches not yet applied)

Axel Herbst (aherbst@vnet.ibm.com), 11/16/1995
IBM Heidelberg Scientific Center/University of Kaiserslautern, Germany
-----------------------------------------------------------------------------
- untar as described

- adapt src/Makefile.global as suggested within the distributed file

- change src/mk/port/postgres.mk.aix
   - MK_PORT=aix
   - INSTALL= installbsd -o postgres -g usr    (should be smarter)
   - CC = cc                                   (only this invocation works)

- change src/backend/utils/adt/misc.c
   - && !defined(PORTNAME_aix)                 (because of (s)random())

- change src/backend/port/aix/dlfcn.c
   - extern char *strdup(const char *)         (cf. <string.h>)

- change src/backend/port/aix/mkldexport.sh
   - nm -B                                     (no pure bsd-nm any more)

- gmake mkldexport
   make sure you have the resulting executable (mkldexport) in the PATH

- gmake clean (maybe not necessary but it doesn't harm)

- proceed as described
  - gmake
  - gmake install
  - initdb
  - postmaster -S

-run regression tests
  - Here it gets messy. I've built it manually, i.e. executed the
    Makefile step by step.
    You need to copy regexp.exp/o as required by cc, do mkldexport (in ksh),
    copy src/backend/obj/postgres.exp to lib
  - Good luck with working out a real procedure :-)
--------------------------------------------------------------------------

Complete list of modified files as is:

- src/Makefile.global
- src/mk/port/postgres.mk.aix
- src/backend/utils/adt/misc.c
- src/backend/port/aix/dlfcn.c
- src/backend/port/aix/mkldexport.sh





===============================================================================
  To unsubscribe from the Postgres95 mailing list, send mail with the subject
  line "DEL" to "postgres95-request@postgres.Berkeley.EDU". 
============  URL: http://s2k-ftp.CS.Berkeley.EDU:8000/postgres95/  ===========
