Technical article 107561

Get Fatal Error "Unable to open host lcs table, error -1" in PCInterface

OpenServer 5.0.0

Written · Last revised

Problem

A user is unable to log in to SCO PCI server from PCI client;
unable to access host LCS table.  The error:

Fatal Error in 22198 Unable to access host LCS table, error -1

may occur.  You may also see a Fatal Error:
Unable to open host lcs table, error -1

Solution

Replace the file: /usr/pci/bin/environ with the enclosed
version.

This has been reported to SCO Engineering.

--------------------------
#! /bin/sh
# @(#)environ         2.4 5/4/95 15:35:04
#
# SCO PC-Interface for Unix Environment -- Santa Cruz Operation UNIX/ODT
# Set the umask to a reasonably safe value.
umask 002
# The user's file limit defaults to 4 MB.  However, since the value can
# only be increased by the root user, this will only work for network
# connections, or a serial connection by "root."
pciFileLimit=`ulimit -f`
if [ "$pciFileLimit" -lt 8192 ]; then
 ulimit -f 8192 > /dev/null 2>&1
fi
# If the "TIMEZONE" file exists, pull it in, so that the user will be started
# in the proper temporal region.

if [ -f /etc/TIMEZONE ]; then . /etc/TIMEZONE fi

# PRINTPROG is the default print program and PRINTPATH is a list of directories
# the system should search for print programs.  The print program specified for
# PRINTPROG, as well as the print programs invoked by the user with the PRINTER
# command, must reside in one of these directories.  Change these variables to
# specify the desired default print program and search paths.  If you do not
# define PRINTPROG, the server attempts to execute /usr/pci/bin/pciprint.  A
# sample pciprint program is in the host-side distribution.
PRINTPROG=/usr/pci/bin/pciprint
PRINTPATH=/bin:/usr/bin
export PRINTPROG PRINTPATH
# If the LANG environment variable isn't set, set it to a default, then pull
# out the separate parts: LANGPRT and CODESET.  LANGPART contains the language
# and country specification, while CODESET contains the code-set (codepage).
# Once the parts are separated, make sure that we understand the code-set.  If
# so, don't do anything else.  If the code-set isn't specified, silently set
# it to our default.  If the code-set is unrecognized, print a warning message
# and set it to the default.
#
# NOTE: These values, LANG, NLSPATH and LCSPATH, affect the host server only.
# The client messages are controlled on the client.
DEFAULT_LANG_FILE=/etc/default/lang
if [ "$LANG" = "" -a -f $DEFAULT_LANG_FILE ]; then
         eval `grep '^[          ]*LANG=' $DEFAULT_LANG_FILE | head -1`
fi
LANG=${LANG:-C_C.C}
eval `echo $LANG | awk -F. '{ printf("LANGPRT=%s\nCODESET=%s\n", $1, $2) }'`
case "$CODESET" in
         pc850 | pc437 | 8859 | C)
                  ;;
ISO8859-1 | ascii)
         LANG=$LANGPRT.8859
         ;;
"")
         LANG=$LANGPRT.pc850
         ;;
         *)
                  echo "The variable \$LANG ($LANG) doesn't specify a code set\c"
                  echo " that is"
                  echo "recognized by the PC-Interface Server.  Using the\c"
                  echo " default of pc850."
                  LANG=$LANGPRT.pc850
                  ;;
esac
unset CODEPAGE
unset LANGPRT
NLSPATH=/usr/pci/%N/%L.%C:/usr/pci/%N/%L.lmf
LCSPATH=/usr/pci/lib
export LANG NLSPATH LCSPATH
# The default startup options for both the mapsvr and consvr should work in
# most cases.  The following two variables can be altered to provide special
# case situations.
OPT_MAPSVR=
OPT_CONSVR=
-----------------------------------

From the Xinuos technical article database, record 107561. Reproduced with permission. The original is at www.sco.com/ta/107561, which is reachable but blocked from search engines. Xinuos marks this article against a retired product line. That refers to the product’s lifecycle, not to whether the advice still works — plenty of it still applies to running systems.

Next step

Need this fixed rather than explained?

Tell us the release, what the system runs and what it is doing. We will reply by email with what we would do next.

  • You deal with the people who do the work
  • No obligation, and no upgrade required before we will help
  • We tell you plainly if something is not worth doing

Send an enquiry

We reply by email. If a server is down, say so in the first line. You can also write to help@scoexpert.com.