[gnu.emacs] Compiling emacs with gcc on a Sun 4/260

palkovic@LINAC.FNAL.GOV (John A. Palkovic) (01/10/90)

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