[comp.sys.sequent] imin undefined in top 2.5

nagel@paris.ics.uci.edu (Mark Nagel) (09/05/88)

When I completed the top patches so that 2.5 worked on the Balance, I took
it over to the Symmetry and found that it had a couple of incompatibilities
with the Balance.  Fortunately, there were system macros that produced
the correct fields on each machine, so I just substituted those for
direct field references and checked that the macros existed and did the
same thing on the Balance.  It compiled and worked on the Symmetry, so
off went the patches.  Now I find out I should have recompiled with the
new macros on the Balance.  Turns out that Sequent uses a function (macro?)
named imin in several of the system macros.  Only problem is, it isn't
defined *anywhere* in the /usr/include directory and obviously doesn't
exist in the libraries, since ld can't find it.  So, to make a long
story short, you should add the following three lines to the end of
the #ifdef sequent section at the end of the #include sections of
display.c and top.c:

#ifndef imin
#define imin(i,j)	((i) < (j) ? (i) : (j))
#endif

This has been compiled and works in both the Balance and the Symmetry.
Sorry about the mixup -- I should have recompiled it.  One never knows
what important system macros are unusable.

-- 
Mark Nagel
Department of Information and Computer Science, UC Irvine
nagel@ics.uci.edu             (ARPA)             When they ship styrofoam...
{sdcsvax|ucbvax}!ucivax!nagel (UUCP)             ...what do they pack it in?

pwolfe@kailand.KAI.COM (09/06/88)

Got Top V2.5 compiled and running on both our Balance and Symmetry.  It's very
useful.  I can finally indentify what and who is using (and/or abusing) the
systems.

Thanks Mark!

Patrick Wolfe  (pwolfe@kai.com,  kailand!pwolfe)