[comp.windows.x] gcc and compiling X.

jne@goldhill.COM (11/10/89)

I know this has been discussed many times, but now I'm getting 
bitten by it and I don't remember the answers.

I'm trying to compile X11.R3 on a 4/110 (SunOS 4.0.3) using gcc 1.36.

I am using 
  -O -DPURDUE -traditional -finline-functions -fstrength-reduce
   -fwritable-strings -DSUN_WINDOWS -DINCLUDE_ALLOCA_H  

Nothing complains, except lots of 
 ../include/os.h:73: warning: alloca redefined
which I ignore cause alloca is just being #defined to what it
already was.

I have Purdue 2.1 and MIT 1-10.

I am compiling ONLY the server using gcc, the rest I used cc.
Also, I compiled ddx/mi/miarc.c using cc cause I vaguely remember
that this file was problematic.

When I start the server, I get

XIO:  fatal IO error 32 (Broken Pipe) on X server "unix:0.0"
      after 125 requests (125 known processed) with 0 events remaining.
      The connection was probably broken by a server shutdown or KillClient.

Note that I can generally start up uwm from my init file, but when
I click on "New Window" it dies.

Also note that I had no problems using "cc" instead of "gcc".

rusty@GARNET.BERKELEY.EDU (11/10/89)

There are bugs with gcc 1.36 on the sparcstation.  I finally gave up
and resorted to cc.  Perhaps 1.37.