🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.sequent
Article #683

imin undefined in top 2.5

#683
From: Mark Nagel
Date: Sun, 04 Sep 1988 22:38
28 lines
1932 bytes
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?
Technical Details
Message-ID: <677@paris.ICS.UCI.EDU>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!bloom-beacon!mit-eddie!rutgers!ucsd!orion.cf.uci.edu!paris.ics.uci.edu!nagel

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!bloom-beacon!mit-eddie!rutgers!ucsd!orion.cf.uci.edu!paris.ics.uci.edu!nagel
From: nagel@paris.ics.uci.edu (Mark Nagel)
Newsgroups: comp.sys.sequent
Subject: imin undefined in top 2.5
Keywords: fix top 2.5 patches
Message-ID: <677@paris.ICS.UCI.EDU>
Date: 4 Sep 88 22:38:56 GMT
Reply-To: nagel@paris.ics.uci.edu (Mark Nagel)
Organization: University of California, Irvine - Dept of ICS
Lines: 28