[comp.soft-sys.andrew] help on Sun4/110 4.0.3c core dumping

kriso@LOMBARD.DARTMOUTH.EDU (Kris Olander) (11/15/90)

Yeah.  I finally found out why help was core dumping in 

help__InitializeClass.

It is related to my last info-andrew report regarding installs
behavior on the Sun 4/110 I've been building the release on.

Here's the problem.

In /afs/..../src/andrew/helpindex, the Makefile installs 
help.ovrvw  and help.prgms as follows:

install -c -m 0444 help.ovrvw ${DESTDIR}/lib/help.overviews
install -c -m 0444 help.prgms ${DESTDIR}/lib/help.programs

Well, install is creating directories instead of files, so... what you have is
(if $DESTDIR == /usr/andrew)

/usr/andrew/lib/help.overviews/help.ovrvw , and
/usr/andrew/lib/help.programs/help.prgms.

When help tries to open these directories as files and reads them, ... BARFO!

Excerpts from mail: 13-Nov-90 Re: makedo bad install on S..
Craig_Everhart@transarc. (586)

> This is properly a complaint about the ``install'' program, not about
> Andrew's use of it.  Where are you getting your ``install'' program?

> The one that comes with AFS has exactly the property you describe: it
> creates subdirectories that are unexpected by the Andrew installation
> mechanism, but that are important for installing AFS.  I believe that it
> accepts the ``-f'' command-line option, though, to treat the final
> target as a file name rather than as a directory name.

> My recommendation would be to use the ``install'' program that comes
> with the Andrew distribution.

> 		Craig


I just typed which install and got /usr/afsws/bin/install as my response.
You were right on the nail Craig.  I will make sure that I put /usr/bin/install
in my system.mcr file or something similar so that this won't happen
again.  

I believe that this was also messing up my attempts to debug runapp.  I
installed a debugged version of runapp, but whenever I ran gdb, there
was no symbol table.  I eventually just copied the new runapp binary
into /usr/andrew/bin/runapp.

SO THE MORALE HERE IS:
if you are using AFS 3.x, make sure that install from AFS isn't being used
when you're making the ATK suite of apps.



			-Kris Olander
			 Project NORTHSTAR
			 Dartmouth College