[comp.soft-sys.andrew] HP9000 && #undef LINKINSTALL_ENV broken?

chance@hpfcso.FC.HP.COM (Chance Brohm) (02/12/91)

Howdy! I'm trying to build the latest Andrew software on an HP9000 running
HP-UX 7.0. I got patchlevel 7 working without too much trouble; there was a
problem where the C preprocessor was sticking in line numbers (for debugging)-
I fixed that with an "IMAKEINCLUDE='-I. -P'" environment variable. (The -I.
part is there because imake wants the string to start -I...). Once set, the
build ran fine and I had Andrew running pretty well. Then I moved to a new
system (my own...now I can try out AMDS & SNAP!) and decided to build anew
with the latest patchkit.

I got pretty far with patchlevel 9 (current, right?) - that is, until I ran
out of disk space. So, I moved the source tree to another system (mounted
via NFS), put an "#undef LINKINSTALL_ENV" in my site.h and rebuilt. Making
the Makefiles seemed to go OK (no fatal errors), but when I got to doing
a "make dependInstall" it looks like my attempt to turn LINKINSTALL off
failed. The first directory was andrew/install - it created a bunch of
symbolic links (eg., "ln -s ../include/andrewos.h andrewos.h") in the
/usr/andrew/config directory, but the targets of the symlinks don't exist
(in fact, the only thing in /usr/andrew/include is site.h). Then, when it
got to a later directory (andrew/overhead/sys) makedepend complained that
it can't open andrewos.h (surprise!) and the build recursively suicided like
so many dominoes.

Question: should this work? Is it correct that all I have to do to have the
source tree independent from the install tree is to undefine LINKINSTALL_ENV?
(Personally, I prefer the "get a bigger disk" solution, but it's not an
option at this point.) I could probably hand-copy the include files over and
get the build to continue (for how long?), but I bet this is a symptom of
a bigger problem.

Any suggestions/solutions gratefully accepted!
 -Chance

P.S. I'll check this newsgroup for responses; if you would prefer to contact
me via Email, feel free to write me at chance@fc.hp.com.  Thanks! -CB

gk5g+@ANDREW.CMU.EDU (Gary Keim) (02/13/91)

Excerpts from misc: 12-Feb-91 HP9000 && #undef LINKINSTAL.. Chance
Brohm@hplabs.hpl. (1988)

> So, I moved the source tree to another system (mounted
> via NFS), put an "#undef LINKINSTALL_ENV" in my site.h and rebuilt. Making
> the Makefiles seemed to go OK (no fatal errors)

When you say that you rebuilt the Makefiles, does that mean that you
also rebuilt the root Makefile by running imake from the root of the
source tree?  

% cd andrew
% imake -I. -I./config -Timake.tmpl -s Makefile -DTOPDIR=.
% make Makefiles
.
.
% make dependInstall

Gary Keim
ATK Group

chance@hpfcso.FC.HP.COM (Chance Brohm) (02/13/91)

I said:
> I got pretty far with patchlevel 9 - that is, until I ran
> out of disk space. So, I moved the source tree to another system (mounted
> via NFS), put an "#undef LINKINSTALL_ENV" in my site.h and rebuilt.
> ... Then, when it got to a later directory (andrew/overhead/sys) makedepend
> complained that it can't open andrewos.h (surprise!) and the build
> recursively suicided like so many dominoes.

My key problem here was that I neglected to perform a "make Clean" before
I rebuilt (after I had moved the source tree to the new system). Should've
known... I am very grateful for the fast assistance!

Thanks again!
 -Chance