Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!uunet!ncrlnk!wright!eve!dcourte From: dcourte@eve.wright.edu (Dale Emery Courte) Newsgroups: comp.sys.encore Subject: cpp problem? Message-ID: <722@thor.wright.EDU> Date: 3 Oct 89 18:49:15 GMT Sender: news@wright.EDU Reply-To: dcourte@eve.UUCP (Dale Emery Courte) Distribution: usa Organization: Wright State University, University Computing Services Lines: 36 I am trying to make X11R3 on our Multimax, under Umax 4.2 (3.3.0), and I seem to have run into a preprocessor bug. While compiling ./util/makedepend/main.c, I get the following: "main.orig.c", line 65: Preprocessor expression must be constant "main.orig.c", line 206: Preprocessor expression must be constant "main.orig.c", line 428: Preprocessor expression must be constant These lines are each identical and look like this: #if defined (mips) && defined (SYSTYPE_SYSV) After experimentation and examination, I discovered the following culprit in util/makedepend/def.h: struct symtab *defined(); This definition of 'defined' is apparently throwing the preprocessor off, though obvoiuosly this must be peculiar to the multimax, as the def.h, and all other sources came directly from an X11R3 distribution tape. Am I crazy, or is this a bug? Has anyone else encountered it? Is there some way, like some fancy quoting or escape characters, to get around this problem? For now I am fiddling with source code, which is far from desirable in anything as large as X. Any help would be welcome. Thanks in advance. ----------------------------- ------------------------------------- Dale Courte CSNET: dcourte@eve.wright.edu University Computing Services BITNET: dcourte@wsu Wright State University UUCP: ..!uunet!ncrlink!wright!dcourte Dayton, Ohio 45435 phone: (513) 873-4030 ----------------------------- -------------------------------------