[comp.sources.d] Problem compiling enquire4.3 with multipasses

greg@suntan.viewlogic.com (Gregory Larkin) (06/01/91)

Hi there,

I have the source to Enquire 4.3 which is supposed to check
the accuracy of your C compiler and its various .h files.
I'm trying to compile it on a small IBM-PC (640K) based UNIX
OS.  There is an option to compile the program in pieces if
the local code generator does not support object files >32K.

I tried this on SunOS and on MINIX, and it broke in both places.
The recommended commands are these:

       cc -DSEP -DPASS0 -o p0.o <other flags> enquire.c
       cc -DSEP -DPASS1 -o p1.o <other flags> enquire.c
       cc -DSEP -DPASS2 -o p2.o <other flags> enquire.c
       cc -DSEP -DPASS3 -o p3.o <other flags> enquire.c
       cc -o enquire p0.o p1.o p2.o p3.o

PASS0 works, but every other pass fails with undefined 
variables, such as this:

/u/mobius/greg/News>cc -DSEP -DPASS1 -o p1.o -DNO_SC enquire.c
"enquire.c", line 1977: maxint undefined
"enquire.c", line 2224: flt_radix undefined
"enquire.c", line 2227: flt_radix undefined
"enquire.c", line 2305: flt_rounds undefined
"enquire.c", line 2309: flt_rounds undefined
"enquire.c", line 2458: maxint undefined
"./enquire.c", line 1977: maxint undefined
"./enquire.c", line 2224: flt_radix undefined
"./enquire.c", line 2227: flt_radix undefined
"./enquire.c", line 2305: flt_rounds undefined
"./enquire.c", line 2309: flt_rounds undefined
"./enquire.c", line 2458: maxint undefined
"././enquire.c", line 1977: maxint undefined

Has anyone ever tried this before?  I tried getting in touch with
the author (steven@cwi.nl), but there hasn't been any response yet. 

Thanks for any help with this,
-- 
Greg Larkin (ASIC Engineer)|"This is a fragile ball we are living on; 
Viewlogic Systems, Inc.    |it's a miracle and we are destroying it.."
293 Boston Post Road West  |Peter Garrett, Midnight Oil               
Marlboro, MA 01752  (greg@Viewlogic.COM)