

APPENDIX - PLATFORM-DEPENDENT INFORMATION

		    Supplemental Information for S/390 Linux
			    EC 1.1/0106 (ibm.lnx/00)

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

Compatible Versions
EDBC 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
EDBC 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 EDBC supports the use of shared libraries.
The LD_LIBRARY_PATH environment variable must be set to add the EDBC
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:$EDBC_ROOT/edbc/lib
	For Bourne-style shells (such as bash):
		export LD_LIBRARY_PATH=/lib:/usr/lib:$EDBC_ROOT/edbc/lib

Syscheck
EDBC provides a system-requirement checking program called syscheck
that tries to determine whether the machine on which EDBC is running
has sufficient resources.  For this release of EDBC for S/390 Linux
this program always returns a good result, regardless of the system
parameters.  During edbcstart processing the message "Your system has
sufficient resources to run EDBC" 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 EDBC?
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.  EDBC 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 EDBC 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 EDBC;
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 EDBC.

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
EDBC on an S/390 Linux console in vt100 mode.  Set TERM to vt100 and
set TERM_EDBC 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 EDBC in an xterm, set TERM to xterm and set
TERM_EDBC 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 EDBC?  Are there additional switches needed
for compiling C-language application programs?
Answer: EDBC 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
EDBC?
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 EDBC 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 EDBC on S/390 Linux?
Answer: No.  While this step is required on some Unix-type systems,
this is not required for this version of EDBC 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 EDBC character sets, is there anything
else I need to do, apart from setting ED_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 EDBC 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 ED_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 EDBC EC 1.1/0106(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 EDBC Release 1.1/0106'.

