README-ARCH
(Last revised 23 Jan 97)
Ian Soboroff

Contents
--------
0. Introduction
1. New /home/src/kqml/C/ver.2 Structure
2. Status of IRIX compatibility
3. Status of Solaris compatibility
4. Status of SunOS compatibility

(note: paragraphs labelled TODO for handy grepping indicate things
that should be done at some point)

0. Introduction
---------------
Please read the other README first.  It describes the old directory
structure and how to build the world.  A lot of that has changed, as
described in this document, but as of right now I haven't made the
effort to really incorporate all the info from the old README.

1. New /home/src/kqml/C/ver.2 Structure
---------------------------------------

In honor of the department migration from SunOS to Solaris ;-), the
KQML directories have been rearranged a bit to support IRIX and
Solaris simultaneously.

The Way Things Used To Be, one could build libkqml and the assorted
miscellany for SunOS, IRIX (allegedly) or Solaris (more allegedly),
but not for more than one of these in any sane fashion.

However, now that SunOS has gone from the department, it became
necessary to support Solaris and IRIX more fully.  In starting to make
sure that the code was portable to this extent, the directory
structure and Makefiles needed a bit of rearranging.

Now, binaries and libkqml can be built for multiple OS's from the same
source tree.  Yipee!

1.1 New Stuff
-------------

There is now an ARCH/ subdirectory.  Under ARCH/, there are the
directories irix5.3/, sunos4.1/, and solaris2.5/; below, these are
called the ARCH directories.  Under each of these can be found bin/,
lib/, and include/, which contain the platform-specific built files
for each OS.  Also present in each ARCH/ subdir is a build/ directory,
where compilation happens.

Because of this, the kqmlenv.* scripts have needed some reworking.
They are still present in the top-level bin/ directory.  They now
check for the current OS they are running under, and set the paths
appropriately.  They also set the location of the ANS to a suitable
machine, but this of course can be changed.  The important thing is
that binaries for the ANS and example agents, which used to be in the
top-level bin/ directory, are now in ARCH/*/bin/.

Before building, you should source an appropriate kqmlenv script.
Otherwise, necessary environment vars (specifically KQML_HOME and
KQML_ARCH) will be unset.

To build, go into ARCH/ and type 'make'.  This will only build for the
current OS; obviously, building in the Solaris area under IRIX won't
be helpful.

1.2 Old (and Gone Missing) Stuff
--------------------------------

The file 'kqml.tar' contains a snapshot before this restructuring.
This is helpful because this is known to build and work on SunOS, and
we don't have any SunOS machines to test the new structure out on.

(TODO) The toplevel bin/ directory currently contains the old SunOS
binaries.  These should be cleaned out and/or moved to
ARCH/sunos4.1/bin.  Likewise the lib/ directory.

(TODO) All the ANS's currently drop their database in the toplevel
adm/ directory.  Not so great.  Then again, log locations could also
use some more thinking about.

The src/ tree used to contain some quasi-source files which were
actually generated during the compilation process, e.g., yacc parsers
and RPC stubs.  These have all been blown away and are now built in
the ARCH areas; this might be overly paranoid, but is decidedly more
safe than sorry.  include/ was the same way, and likewise
build-generated include files are now in the ARCH areas.


2. Status of IRIX compatibility
-------------------------------

Everything builds under IRIX, and the ANS and example agents seem to
work ok.  I'm branding IRIX "alpha-working" pending some non-working
counterexamples which I expect to show up sooner or later.


3. Status of Solaris compatibility
----------------------------------

My first attempt at a Solaris build was successful, but agents died in
kqml_initialize.  This should be working very soon.


4. Status of SunOS compatibility
--------------------------------

If some kind soul would provide a pre-Solaris SunOS box to try it out
on, everything should be perfectly fine; however, since I have yet to
validate this claim empirically, the state of SunOS compatibility is
"untested" as of now.
