Path: utzoo!attcan!uunet!snorkelwacker!bloom-beacon!EXPO.LCS.MIT.EDU!keith From: keith@EXPO.LCS.MIT.EDU (Keith Packard) Newsgroups: comp.windows.x Subject: Re: two R4 problems on Sun 3/60 4.0.3 Message-ID: <9001121840.AA18419@xenon.lcs.mit.edu> Date: 12 Jan 90 18:40:57 GMT References: <6000@ncar.ucar.edu> Sender: daemon@athena.mit.edu (Mr Background) Organization: The Internet Lines: 29 Peter W. Morreale at the Nat'l Center for Atmos Research writes: > making ddx/sun > rm -f sunInit.o > gcc -DNOSTDHDRS -fstrength-reduce -fpcc-struct-return -c -O -I../../../. -I. -I../mfb -I../mi -I../../include -I../../.././X11 -DXDMCP -DSHAPE > -DMITSHM -DMULTIBUFFER -DMITMISC -DINCLUDE_ALLOCA_H sunInit.c > /usr/include/sundev/vuid_event.h:42: unterminated character constant > *** Error code 1 > > I checked the file: vuid_event.hh and line 43 is in the middle of an > ifdef COMMENT. :-) ANSI C requires that even the portions of a source file which are eliminated with CPP conditionals be separatable into CPP tokens. This is because the '#' sign is now recognised even if it is not the first character of the line, unless it is inside a string constant. I think this is a terrible "feature", but we'll probably have to live with it. It looks like I fixed this problem on our machine by making a copy of vuid_event.h in /usr/local/lib/gcc-include/sundev/vuid_event.h which gcc looks for first and replacing the single quote mark on line 42 with two quote marks: have to be concerned. In fact, the vuid interface doesn''t Looks like another candidate for the ERRATA file. Keith Packard MIT X Consortum