[comp.windows.x] Problems compiling X11R3 with gcc on a Sun 3

evan@titan.rice.edu (Evan Wetstone) (01/13/89)

Help!

I've compiled X11R3 with gcc (version 1.32) with options -traditional -O
but when I start up Xsun, my xterm windows are black on black, as is every
other client program that runs on that display.  When I compile the server
with the standard SunOS C compiler, it works fine.  The client programs that
were compiled with gcc work fine (except for xclock -analog, which has a
previously reported, unrelated bug), and display just fine on Xsun servers
that were compiled with Sun CC.

I then tried compiling with gcc(1.32) without the optimization.  Same thing.
I then backed off to gcc version 1.30.  Same thing, with and without the -O
flag.  I then applied fix[1-7] from expo.  Still no luck.  I'm waiting until
I figure this out before applying the Purdue Speedups.

Currently I am running Xsun code compiled with the Sun CC, and everything
else is compiled with gcc (1.30) -traditional -O.

The compilation was done on a Sun 3/280 running SunOS 3.5.1, and the server
is running on a Sun 3/50 also running SunOS 3.5.1.

Does anyone out there have any ideas?

Please?

Evan Wetstone
Rice University
Internet:  evan@rice.edu   BITNET: evan@RICE  

rws@EXPO.LCS.MIT.EDU (Bob Scheifler) (01/13/89)

    Does anyone out there have any ideas?

Sure, convince RMS to distribute a compiler that works. :-)
Alternatively, convince him to use X as a QA tool. :-)

rws@EXPO.LCS.MIT.EDU (Bob Scheifler) (01/13/89)

    Does anyone out there have any ideas?

But seriously, do you know about the problems with dbm?  gcc compatible
diffs have been posted here several times, or alternatively, try
compiling server/os/4.2bsd/oscolor.c with vanilla cc.