APPENDIX - PLATFORM-DEPENDENT INFORMATION

		    Supplemental Information for S/390 Linux
			    II 2.5/0011 (ibm.lnx/00)

Introduction
This document contains information about Ingres II that is specific to
the S/390 Linux operating system.

Compatible Versions
Ingres II for S/390 Linux requires an S/390 Linux system based on the
2.2.16 kernel and the glibc 2.1.3 C-language libraries, or an S/390
Linux system which is upwardly binary compatible.

Compatible Bourne-style Shells
Ingres II was developed and tested on an S/390 Linux system using GNU
bash shell, version 1.14.7(1).  Use of this shell as "/bin/sh" is
recommended for best results.  See the "Frequently Asked Questions"
section below for more details.

Installation
Use the following information in conjunction with the Getting Started
guide.  Information presented here supersedes information in the Getting
Started guide.

LD_LIBRARY_PATH
This release of Ingres supports the use of shared libraries.
The LD_LIBRARY_PATH environment variable must be set to add the Ingres
shared libraries to your shared library path.  Set this variable as
shown in the following examples:
	For C-style shells (such as tcsh):
		setenv LD_LIBRARY_PATH /lib:/usr/lib:$II_SYSTEM/ingres/lib
	For Bourne-style shells (such as bash):
		export LD_LIBRARY_PATH=/lib:/usr/lib:$II_SYSTEM/ingres/lib

Security
Ingres II for S/390 Linux provides C2 security and support for systems
using traditional UNIX-style /etc/passwd files and "shadow password"
/etc/shadow support.  After installation and before running Ingres II
for remote connections be sure to run the mkvalidpw program as root and,
if Ingres II is running, stop and then restart it.  Also, if the shadow
password status of the system changes (e.g. via the shadowconfig utility
available on some S/390 Linux systems), mkvalidpw must be re-run (the
S/390 Linux version of Ingres II checks for the presence of the file
/etc/shadow and compiles ingvalidpw.c differently depending on whether
this file exists or not).  It is easy to check ingvalidpw from the command
line to determine if it is working correctly.  For example:
	$ ingvalidpw
	myuserid mypassword
	$ echo $status		[tcsh shell]
	$ echo $?		[bash shell]
This will provide the return code from ingvalidpw.  The codes are
documented in ingvalidpw.c, which is delivered as source:
	/*
	** error return codes
	*/
	#define E_OK		0
	#define E_NOUSER	1
	#define E_NOCRYPT	2
	#define E_NOMATCH	3
	#define E_NOTROOT	4
	#define E_BADLOG	5
	#define E_BADINPUT	6
	#define E_EXPIRED	7

Syscheck
Ingres II provides a system-requirement checking program called syscheck
that tries to determine whether the machine on which Ingres II is running
has sufficient resources.  For this release of Ingres II for S/390 Linux
this program always returns a good result, regardless of the system
parameters.  During ingstart processing the message "Your system has
sufficient resources to run Ingres" will always be displayed, regardless
of the hardware and software resources available.

Frequently Asked Questions

Question: S/390 Linux provides multiple sh-type shells.  Which should I
use with Ingres II?
Answer: On S/390 Linux systems the file /bin/sh is a link to a shell such
as bash, ash, ksh, or zsh.  This is the shell that is invoked when a
Bourne shell script is run.  Ingres II was developed and tested on an
S/390 Linux system using GNU bash, version 1.14.7(1).  Limited, successful
testing has also been done with the ksh and zsh shells.  Testing has
turned up problems running Ingres II with version 2.0.3 of the bash
shell (this will manifest itself, for example, as a permissions problem
running ckpdb).  The problem with bash 2.x is not unique to Ingres II;
the release NOTES file supplied with the source code to bash release
2.0.3 explains this issue and provides an "*unofficial*" patch to bash.
This patch will, indeed, correct the problems running Ingres II.

Question: I am having trouble creating databases with the createdb
program; the program is issuing strange error messages.  Why?
Answer: Make sure that you are not running the "createdb" program that
is provided by PostgreSQL.  Make sure that the PATH setting for the shell
from which you install and start Ingres II includes Ingres II executable
directories before other executable directories.

Question: Where are the function keys PFK1 through PFK4 on my PC keyboard?
Answer: Although key bindings and terminal settings vary with equipment
and with character sets, the following should work if you are running
Ingres II on an S/390 Linux console in vt100 mode.  Set TERM to vt100 and
set TERM_INGRES to vt100f.  The keys PFK1 through PFK4 should be bound to
the top row of the numeric key pad.

Question: How can I map the function keys PFK1 through PFK4 for an xterm?
Answer: Running Ingres II in an xterm, set TERM to xterm and set
TERM_INGRES to vt100fx.  Then use xmodmap to determine and set your
function keys.  "xmodmap -pke" should show current settings.  (Use "man
xmodmap" to determine the syntax for your version of xmodmap.)  You will
probably find that there are no bindings for KP_F1 through KP_F4; you
will need to bind them.

For example: to bind keys Shift-F1 through Shift-F4 create a file "mykeys"
that contains:
	keycode 67 = F1 KP_F1
	keycode 68 = F2 KP_F2
	keycode 69 = F3 KP_F3
	keycode 70 = F4 KP_F4

Then issue the command:
	xmodmap mykeys

Shift and F1 through F4 will now be defined as PFK1 through PFK4.

Question: What compiler and compiler switches were used to create the
S/390 Linux version of Ingres II?  Are there additional switches needed
for compiling C-language application programs?
Answer: Ingres II was compiled using the GCC compiler version 2.95.2
with the following switches:

-O -fPIC -fsigned-char -fno-strength-reduce -DLINUX -DXLIB_ILLEGAL_ACCESS

If your application program modifies its own storage (and is therefore
non-reentrant) you will also have to provide the following switch:

-fwritable-strings

GCC provides this option: "... for compatibility with old programs which
assume they can write into string constants".  If you are not sure that
your program needs this switch, try compiling without it.  If you get
a segv in your program, give the switch a try.

Question: Do I need to modify system kernel parameters before running
Ingres II?
Answer: No.  Standard kernels and kernels compiled with default values
(without modifying the S/390 Linux source headers) should provide adequate
resources.  However, changing certain Ingres default parameters (such as
enabling more than one cache size) may warrant an increase in certain S/390
Linux kernel parameters (such as shmmax).

Question: Do I need to change the permissions for /dev/kmem in order to
run Ingres II on S/390 Linux?
Answer: No.  While this step is required on some Unix-type systems,
this is not required for this version of Ingres II for S/390 Linux.

Question: When I try and compile the Fortran code generated by the ESQLF 
pre-compiler using g77, it fails with 'Unrecognized statement name.....'. 
Why?
Answer: The g77 compiler (which is bundled with many if not all S/390 Linux 
distributions) does not support some of the statements that the ESQLF 
pre-compiler generates. Further information is available at:
http://www.gnu.org/software/gcc/onlinedocs/g77_1.html
 
Question: When using alternative Ingres character sets, is there anything
else I need to do, apart from setting II_CHARSETXX, to get the characters 
to display correctly?
Answer: As long as the terminal you are working from is using the same 
character set as Ingres there shouldn't be a problem. If you are having 
trouble with characters not being displayed properly, try starting
the terminal with specific character set. 

	e.g. If you are using shiftjis (Japanese DoubleByte character set)
as the II_CHARSETXX setting in a 'kterm', start the kterm with the following
command:

	kterm -km sjis

This will ensure the terminal starts up with the correct character set.
It is also worth mentioning that you may encounter problems using double
byte character sets and kterm. If you do, try using the rxvt terminal instead.

e.g.
	rxvt -km sjis

for shiftjis.

Known Problems in IngresII 2.5/00(ibm.lnx/00)

Contact Computer Associates Technical Support for a workaround/patch for
the following known problems.  In each case the bug number precedes the
description of the problem. Please note the problems documented here are 
the problems present ONLY in the S/390 Linux version. For information
on Generic problems, see the 'Release Notes for Ingres Release 2.5/0011'.

