[10050] in Athena Bugs
hc error
daemon@ATHENA.MIT.EDU (epeisach@Athena.MIT.EDU)
Fri Oct 30 13:47:41 1992
From: epeisach@Athena.MIT.EDU
Date: Fri, 30 Oct 92 13:47:32 -0500
To: fmmoore@Athena.MIT.EDU
Cc: bugs@Athena.MIT.EDU
Your bug is because you are compiling with hc without the proper
defines. (You were given an Imakefile, why not use it?)
If you add a -DUNIXCPP (which if you used xmkmf, would have), you would
be ok. The problem is in concatination.
The line in xtrapdi.h reads:
#define XETrapMaxRequest (((SIZEOF(CARD32)+((256L-1L) / \
(BitsInByte*SIZEOF(CARD8))))/SIZEOF(CARD32))*SIZEOF(CARD32))
typedef CARD8 ReqFlags[XETrapMaxRequest];
The ReqFlags one.
Looking up the macros for SIZEOF one sees it uses ## if _STDC__ is
defined but not if UNIXCPP. hc defines __STDC__, but does not come with
a cpp which understands the Ansi concatination....
Actually, looking at your Imakefile, I wonder about using the
STD_DEFINES. I think that might be wrong. Try changing it to DEFINES.
This is why xmkmf should be used to generate proper Makefiles.
Ezra