Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!LINAC.FNAL.GOV!palkovic From: palkovic@LINAC.FNAL.GOV (John A. Palkovic) Newsgroups: gnu.emacs Subject: Compiling emacs with gcc on a Sun 4/260 Message-ID: <9001100554.AA02267@linac.gov> Date: 10 Jan 90 05:54:58 GMT Sender: daemon@tut.cis.ohio-state.edu Reply-To: palkovic@adcalc.fnal.gov Distribution: gnu Organization: GNUs Not Usenet Lines: 31 We have a sun 4/260, SunOS 4.0.3. Emacs compiles and runs just fine if I build it with Sun's cc. However, when I attempt to make emacs with gcc, it produces all the object files except sunfns.o . The following error message is displayed after I typed "make CC=gcc xemacs" in the ~/emacs/src directory: ... a lot of output and then >> gcc -g -Demacs -c sunfns.c -o sunfns.o >> sunfns.c:75: parse error before `_data' >> sunfns.c:75: initializer for scalar variable requires one element >> sunfns.c:75: warning: data definition lacks type or storage class >> sunfns.c:75: parse error before `_data' >> sunfns.c:84: parse error before `_data' >> sunfns.c:84: redefinition of `_data' >> sunfns.c:75: here is the previous declaration of `_data' >> sunfns.c:84: initializer for scalar variable requires one element >> sunfns.c:84: warning: data definition lacks type or storage class >> sunfns.c:84: parse error before `_data' >> sunfns.c: In function make_menu_label: >> sunfns.c:396: warning: ordered comparison of pointer with integer zero >> make[1]: *** [sunfns.o] Error 1 >> make: *** [doxemacs] Error 1 I am using gcc 1.36 and GNU make 3.57. The reason I want to do this is to compare the performance of the two emacs I get with the two compilers. John Palkovic palkovic@adcalc.fnal.gov