[comp.soft-sys.andrew] HELP: Andrew applications will not create window.

oldam@math.liu.se (Olof Damberg) (10/14/90)

I got curious about the Andrew Toolkit, so I decided to take a few hours to
install the stuff and test it to see what it could offer us.
I took the Andrew distribution from the X11R4 release tape and patched it to
PL 7 (plus the vui patch). The patch logs reported no errors.
I compiled and installed the default set of programs plus MK_BASIC_UTILS on
a root account on one of our SPARC servers (SUN4/390 named calc)
The cc compiler was used with the CDEGUBFLAGS set to -O2
No radical changes in the site.h and the site.mcr files
I defined DEFAULT_ANDREWDIR_ENV to /usr/share/lib/X11/Andrew
The compilation and installation run without any pain whatsoever.

Now, when I try to run ANY windowbased Andrew program I always get the 
following message:

 calc[~]>help -display wagner:0.0
 Starting help (Version 7.2, ATK 15.1); please wait...
 No 'localhost' found in host table; creating new window.
 Could not open the display; this program will not run without a window system.
 help: failed to create new window; exiting.

A look in the /etc/hosts file gives that it IS a 'localhost' defined.
Is it looking in some other file (on what machine) ??
Needless to say, I am running X and every other X program I use runs smoothly.

I have setenv ANDREWDIR /usr/share/lib/X11/Andrew
       setenv DISPLAY wagner:0.0 (This my SUN3/50 on the local net)
and $ANDREWDIR/bin is in my PATH.
SUNOS 4.0.3 Export ; X11R4 PL 18, MIT Xsun server.

Maybe this info is insufficient for anyone to give me the solution to this,
but ANY pointers are GREATLY appreciated.

Another thing, I really miss some info file containing instructions for
setting the Andrew system up, once it is installed. Is there such a file ?
Perhaps I haven't looked closely enough...

-------------------------------------------------------------
Olof Damberg                       | email: oldam@math.liu.se
Dept of Math, Linkoping University | phone: +46 13 281473
S-581 83  Linkoping, SWEDEN        | fax:   +46 13 100746

gk5g+@andrew.cmu.edu (Gary Keim) (10/16/90)

Excerpts from internet.info-andrew: 13-Oct-90 HELP: Andrew applications
w.. Olof Damberg@math.liu.se (1982)

> No radical changes in the site.h and the site.mcr files


What exactly are the changes.  Did you read this paragraph from andrew/README:

    RESOLVLIB   [Default: empty string] 

        RESOLVLIB denotes the full path of the domain name
        resolver library.  It is used only if RESOLVER_ENV is
        defined, which it is unless your system.h or site.h file
        undefines it.  The default value (the empty string) is
        useful if the resolver code is in your libc.a.  If the
        resolver code is in a separate library, such as
        /usr/lib/libresolv.a, that name should be the definition
        for RESOLVLIB; define it in your site.mcr file.

If you left RESOLVER_ENV defined, did you set RESOLVLIB to
/usr/lib/libresolv.a?

If the answer to the above question is one of (1) you undefined
RESOLVER_ENV in you site.h or (2) you left RESOLVER_ENV defined and
properly set RESOLVLIB = /usr/lib/libresolv.a in your site.mcr, then
there is one little experiment I would like you to carry out.  Do this:

% cd ....../andrew/atk/apps
% <edit the Imakefile to remove the instance of ${RESOLVER_LIB} from this line:

ProgramTarget(runapp, runapp.o statload.o, ${ATKLIBS} ${OTHERLIBS}
${RESOLVER_LIB}, ${SYSLIBS})

% make clean
% cd ..
% make Makefiles SUBDIRS=apps
% make dependInstall SUBDIRS=apps

Now try a remote application.  Please let me know what the answers are.

Thanks,
Gary Keim
ATK Group