Path: utzoo!telly!attcan!dptcdc!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!SUN-VALLEY.STANFORD.EDU!wjj From: wjj@SUN-VALLEY.STANFORD.EDU Newsgroups: gnu.gcc Subject: Re: gcc compilation problems on sun4 (gcc 1.34) Message-ID: <8903262148.AA17700@gilboa.stanford.edu> Date: 26 Mar 89 21:48:01 GMT References: Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 40 > However, I can't get gnu emacs to compile using gcc on the Sun3-OS3.5 > (haven't yet tried the Sun4). The make will spit out many warnings > (some function was declared implicitly 'extern' then later declared > 'static') but these are not fatal. > > Then I get warnings of garbage at the end of #ifndef's of the >following files when it compiles src/sunfns.c: > > /usr/include/pixrect/pixrect_hs.h (line 11) > /usr/include/pixrect/traprop.h (line 7) > > Then the fatal error occurs: > > /usr/include/sundev/vuid_event.h:39:unterminated character constant Hi, I had the very same problem in intalling emacs 18.53 on Sun OS 3.5. The problem is that that the two header files pixrect_hs.h and traprop.h don't conform to the ANSI standard and cpp is unhappy. To correct this, copy these files to /usr/local/lib/gcc-include/pixrect and change : TRAPROP.H ==> TRAPROP_H PIXRECT_HS.H ==> PIXRECT_HS_H It is the .H in the #ifndef that in not ANSI standard. Also, in ~/dist-18.53/src/config.h, at the top, include #ifdef __STDC__ #define CAT(a,b) a ## b #endif or use the -traditional option for gcc. Good luck, Warren J. Jasper wjj@sun-valley.stanford.edu