From: mf@ic.ac.uk (Mr M. Forster/20000)
Newsgroups: comp.unix.aix
Subject: Re: xrn for aix
Date: 14 Oct 92 14:15:23 GMT
Organization: Imperial College Mathematics Department


> I'm trying to install xrn6-17 on my IBM RS/6000 320 running AIX 3.2.1
> (I've compiled it with the OSF/Motif libraries).
> The compilation was fine, and I've put the XRn file in my app-defaults
> directory.
> When I try to run xrn, it produces a segmentation fault and
> a coredump.



We solved the problem you describe with xrn by building in the athena
environment rather than motif.  This assumes that you have already built
the supplementary x software in /usr/lpp/X11/Xamples (things not fully
supported by ibm).   The athena variant seems to work ok - I read my
news on it under AIX 3.2.0.

I have appended notes I made while building xrn 6-17, patch level 2. They
may be of use - don't forget to change the site-specific bits (sorry,
I dont have time to produce more general notes).  Also, I
notice from recent news items that a more elegant way of dealing with
the  char *index(); problem mentioned below, is to undefine __STR__
i.e.  use -U__STR__  when compiling refile.c.

  Mark Forster  ( m.forster@cc.ic.ac.uk )

  Centre for Computing Services,
  Mechanical Engineering Building,
  Imperial College,
  Exhibition Road,
  London,
  SW7 2AZ,
  UNITED KINGDOM.


______________________________________________________________________________

      COMPILING xrn (version 6-17) FOR AIX 3.2                         30.9.92
______________________________________________________________________________


The source contained alongside this readme file is of xrn version 6-17 with
patches 1 and 2 applied.  To compile for aix 3.2 (using the computer centre as
the example site) do the following:

.   Edit config.h as follows:

        Add #define SYSV  as the first entry.
        #define DOMAIN_NAME ".cc.ic.ac.uk"
        #define RETURN_HOST "ic.ac.uk"
        #define ORG_NAME    "Imperial College Centre for Computing Services"
        Comment out #define RESOLVER
        #define HIDE_PATH
        #define PRINTCOMMAND    "lpr -Pcc"

N.B.  Do not uncomment the MOTIF define.  The build must be with Athena
widgets - a motif build will compile but not run.


.   In refile.c comment out the line (ca. line 37):

        char *index();

Compilation will fail if this is not done.

.   Edit the EXTRA_LOAD_FLAGS assignment in Makefile.NoXtr:

        EXTRA_LOAD_FLAGS = -lPW -L/usr/lpp/X11/Xamples/lib

This assumes that the additional X stuff has been built as directed in
the Xamples readme file (/usr/lpp/X11/Xamples/README).

.   Build with:

        make -f Makefile.NoXtr

.   Install the athena app-defaults file XRn.ad in:

        /usr/lib/X11/app-defaults/XRn

or in a local area with a link to it,  e.g:

        /usr/lib/X11/app-defaults/XRn -> /usr/local/lib/X11/app-defaults/XRn

.   Install the binary xrn in /usr/local/bin after stripping it.


.   Install the man page xrn.man as /usr/local/man/mann/xrn.n.
 /usr/local/man should be in the users' MANPATH.

.   Make the following files:

        /usr/local/lib/rn/server          should contain:  news.cc.ic.ac.uk
        /usr/local/lib/news/hiddenhost    should contain:  ic.ac.uk
        /usr/local/lib/news/pathhost      should contain:  ic.ac.uk (but
                                            will never be used because
                                            HIDE_PATH is #defined above.
        /usr/local/lib/news/domain        should contain:  cc.ic.ac.uk
        /usr/local/lib/news/organization  should contain:

               Imperial College Centre for Computing Services