🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.soft-sys.andrew
Article #2103

Problems with Andrew on Sun SS-1

#2103
From: Keith Gorlen
Date: Mon, 26 Feb 1990 17:32
120 lines
5686 bytes
I'm having problems installing Andrew R3 (patch level 3) on a SPARCstation-1 running SUNOS 4.0.3c, X11R4 (fixes 1 and 2 installed), and the beta test release of AFS 3.0.  Copies of my site.mcr and site.h files are attached.  When built in this environment, few things work.  ez brings up a window and can do primitive editing operations, and I could insert an eq object, but it crashes if I try to insert a zip object.  Most other applications (e.g. help, console, ezprint, ness) just dump core after printing o


ut the "Starting ..." message but before bringing up a window.

I had in my notes from previous experiences with building andrew the following problems that have apparently not been corrected yet, so I made these changes:

ams/ms/Imakefile shouldn't explicitly use libplumber.a:

LIBS_PART_B= \
	${BASEDIR}/lib/libmail.a \
	${BASEDIR}/lib/liberrors.a \
	${UTILLIB} ${PRSLIB} \
	${MALLOCLIB} \
	${BASEDIR}/lib/libgasp.a \
	${RESOLVLIB}

Correct the modes on the following files (I don't own the files in the andrew source tree I'm using):

chmod 0444 atk/chart/chart.ch
chmod +r atk/supportviews/{strtbl.c,strtbl.ch,strtblv.c,strtblv.ch}
chmod +r atk/apt/apt/{apt.ch,aptv.ch}
chmod +r atk/apt/tree/{tree.ch,treev.ch}
chmod +r atk/calc.ch calcv.ch
chmod +r atk/eq/eqv.c
chmod +r atk/lookz/{lookz.c,lookz.ch,lookzt.c,lookzv.c,lookzv.ch,lookzvt.c}
chmod +r overhead/class/machdep/aix_i386/{dofix.c,doload.c,entry.spp,getlist.awk}

First, I tried building andrew with AFS_ENV and AFS30_ENV enabled, but this apparently hasn't been tested because expected files are missing from the AFS 3.0 distribution.  Four of the missing files looked like their names had been changed due to the change from "pr" to "pt" for the protection server.  As a workaround, I turned off SNAP_ENV, disabled making vopcon, and made these links in /usr/afs/include/afs:

	ln ptclient.h prclient.h
	ln pterror.h prerror.h
	ln ptint.h print.h
	ln ptserver.h prserver.h

But I gave up when compiling overhead/util/lib/alquery.c failed with undefined symbols.

Next, I tried making a non-AFS version of andrew.  I discovered that the version of install supplied with AFS 3.0 doesn't work.  The command

	install -c -m 0555 makedo.csh /usr/andrew/bin/makedo

creates the directory /usr/andrew/bin/makedo and places makedo.csh in it instead of copying makedo.csh to /usr/andrew/bin/makedo.

After switching to /usr/bin/install, building andrew seemed to work except that (1) I had to recover several times from the infamous Sun-4 "sh" problem, (2) I couldn't get the ness documentation installed because ness would dump core, and (3) I couldn't build parts of amsatk and contrib/wpedit because dofix failed with unresolved symbols.

Problem (2) is probably caused by whatever is causing most of the other andrew applications to die.  I recall reading that there were problems with the andrew version of malloc on the Sun-4, and also something about needing to statically link some libraries somehow, but I don't recall the details.  Were these fixed in patch 3, or could they be the source of my difficulties?

I suspect problem (3) is due to the way I was trying to link in a version of libc containing the DNS resolver routines, since the unresolved symbols looked like they were from the resolver.  I had set LD_LIBRARY_PATH to substitute the resolver version of libc.so.1.3 we had obtained from uunet instead of the libc.so supplied with SunOS 4.0.3.  It looks like the problem may be that dofix and doload get their symbol tables from libc.a, not libc.so, so they don't know about the resolver routines.  Unfortunatel


y, I don't have a resolver version of libc.a.  I tried modifying sun_sparc/Makefile to generate the globals from the resolver libc.so instead of libc.a, but then the testmain program couldn't seem to find even things like _print.

Any help or advice on these problems would be greatly appreciated.  Thanks!

	Keith Gorlen			phone: (301) 496-1111
	Building 12A, Room 2033		uucp: uunet!nih-csl!kgorlen
	National Institutes of Health	Internet: kgorlen@alw.nih.gov
	Bethesda, MD 20892

-----
site.mcr:
	AFSBASEDIR = /usr/afs
	XUTILDIR = /usr/bin/X11
	IMAKE = $(XUTILDIR)/imake
	XMAKEDEPEND = $(XUTILDIR)/makedepend

/* Don't use /usr/afs/bin/install */
	INSTALL = /usr/bin/install

/* -O doesn't work */
	CDEBUGFLAGS =

site.h:
#undef	AMS_DELIVERY_ENV
#define	AMS_DELIVERY_ENV 1

#undef	WHITEPAGES_ENV
#define	WHITEPAGES_ENV 1

#undef	ODA_ENV
#define	ODA_ENV 1

#undef	CONTRIB_ENV
#define	CONTRIB_ENV 1

#undef	MK_BASIC_UTILS
#define	MK_BASIC_UTILS 1

#undef	MK_AUTHORING
#define	MK_AUTHORING 1

#undef	MK_AUX_UTILS
#define	MK_AUX_UTILS 1

#undef	MK_EXAMPLES
#define	MK_EXAMPLES 1

#undef	LINKINSTALL_ENV

#undef	AFS_ENV
/* #define	AFS_ENV 1 */
#undef	AFS30_ENV
/* #define	AFS30_ENV 1 */

/* Can't build snap with AFS until we find lib/afs/librauth.a */
#undef	SNAP_ENV
#ifndef	AFS_ENV
#define	SNAP_ENV 1
#endif

#undef	RUN_AMDS_ENV
#define	RUN_AMDS_ENV 1

#undef	DEFAULT_LOCALDIR_ENV
#define DEFAULT_LOCALDIR_ENV /usr/andrew/local
-- 
	Keith Gorlen			phone: (301) 496-1111
	Building 12A, Room 2033		uucp: uunet!nih-csl!kgorlen
	National Institutes of Health	Internet: kgorlen@alw.nih.gov
	Bethesda, MD 20892
Technical Details
Message-ID: <1377@nih-csl.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!uunet!nih-csl!kgorlen

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!uunet!nih-csl!kgorlen
From: kgorlen@nih-csl.UUCP (Keith Gorlen)
Newsgroups: comp.soft-sys.andrew
Subject: Problems with Andrew on Sun SS-1
Keywords: Andrew, SPARCstation-1, resolver
Message-ID: <1377@nih-csl.UUCP>
Date: 26 Feb 90 17:32:18 GMT
Organization: NIH-CSL, Bethesda, MD
Lines: 114