[comp.soft-sys.andrew] R4 contrib problems

tom@ICASE.EDU (Tom Crockett) (02/01/90)

> *Excerpts from xpert: 31-Jan-90 R4 contrib problems Dave Sill@think.com*
> *(2435)*

> (SPARCstation 1, unpatched R4)

> I've had trouble with several things under R4's contrib:

> 1. Andrew

>     After following the configuration instructions in README and
> running imake, I type `make World'.  It blows up with:

> ../.././config/depend.csh   //usr/include/X11 \
> "cc" /usr/andrew/bin/class "-I.  -I/usr/andrew/include/atk
> -I/usr/andrew/include
>  -I//usr/include/X11"
> usage: depends ${DEPEND} ${BASEDIR} ${XINCDIR} ${CC} ${CLASS}
> ${INCLUDES} [${AFS
> BASEDIR}]
> *** Error code 1
> make: Fatal error: Command failed for target `depend'
> Current working directory /wk/tape-4/contrib/toolkits/andrew/overhead/sys

> Examing the Makefile in overhead/sys, I find:

> depend::
>       $(DEPENDSCRIPT) $(/usr/bin/X11/makedepend) $(/wk/andy) $(XINCDIR) \
>       "$(CC)" $(CLASS) "-I. $(LOCALINCLUDES) $(INCLUDES)"

> The problem is apparently the superfluous $() around $XMAKEDEPEND and
> $BASEDIR.  I've been unable to locate the Imakefile or template
> responsible for this line.  Any ideas?


Well, I'm trying to build the same thing on my SPARCstation, and I haven't seen
that problem at all.  You might want to doublecheck your "site.h" and
"site.mcr" files.  I had a different problem when I omitted a trailing newline
from the last line of my "site.mcr" file.

My current problem is that "make World" always dies in atk/ness/doc where
"nessrun" aborts with an illegal instruction exception.  I've tried lots of
combinations of compiler options, patched vs. unpatched sources, etc., and
nothing seems to help.  Has anyone seen anything similar?  The problem does not
seem to be specific to "nessrun", because if I pick up and continue building
everything else with "make dependInstall", most of the other apps die with the
same error.  The only thing I've changed at all in the source distribution from
the R4 tape is adding "site.h" and "site.mcr" files.  (I'm quite sure of this,
I even restored everything from tape to be sure I had clean sources -- unless
the tape is mucked up.)  My "site.h" and "site.mcr" files follow.  I'm using
Sun's cc compiler with no optimization, although I get the same behavior
whether or not I use -O.

--- site.mcr ---

/* site.mcr file for ICASE Sun 4's */

XBASEDIR = /usr/icase/X11R4
CDEBUGFLAGS = -pipe
XUTILDIR = $(XBASEDIR)/bin
XINCDIR = $(XBASEDIR)/include/X11
XMKFONTDIR = $(XUTILDIR)/mkfontdir
XLIBDIR = $(XBASEDIR)/lib
XFC = $(XUTILDIR)/bdftosnf
RESOLVLIB = /usr/lib/libresolv.a

#define ConstructMFLAGS


--- site.h ---

/* site.h file for ICASE Sun 4's */

#define MK_BLD_BLKS             1
#define MK_BASIC_UTILS          1
#define MK_BASIC_INSETS         1
#define MK_HELP                 1
#define MK_TEXT_EXT             1
#define MK_AUTHORING            1
#define MK_AUX_UTILS            1
#define MK_AUX_INSETS           1
#define MK_EXAMPLES             1

#undef LINKINSTALL_ENV

/* Change this if we ever get ditroff! */
#undef  DITROFF_ENV

#undef  DEFAULT_ANDREWDIR_ENV
#define DEFAULT_ANDREWDIR_ENV   /usr/icase/X11R4/andrew

#undef  DEFAULT_LOCALDIR_ENV
#define DEFAULT_LOCALDIR_ENV    /usr/icase/X11R4/andrew/local


Tom Crockett

ICASE
Institute for Computer Applications in Science and Engineering
M.S. 132C                               e-mail:  tom@icase.edu
NASA Langley Research Center            phone:  (804) 864-2182
Hampton,  VA  23665-5225