Path: utzoo!utgpu!water!watmath!uunet!tut.cis.ohio-state.edu!mailrus!purdue!spaf From: spaf@cs.purdue.edu (Gene Spafford) Newsgroups: comp.windows.x,gnu.gcc Subject: Re: X.V11R2 xterm all foreground color when compiled with GCC 1.26 Message-ID: <4739@medusa.cs.purdue.edu> Date: 26 Aug 88 23:14:11 GMT References: <20830@tut.cis.ohio-state.edu> Sender: news@cs.purdue.EDU Reply-To: spaf@cs.purdue.edu (Gene Spafford) Organization: Department of Computer Science, Purdue University Lines: 41 In article <20830@tut.cis.ohio-state.edu> bob@allosaur.cis.ohio-state.edu (Bob Sutterfield) writes: >When I compile xterm with gcc, everything is in the foreground color - >that is, I get a solid black window. Compiled with the Sun cc, all is >well. I see this effect with none of the other clients. > >What did I miss? You must have missed my postings on this in comp.windows.x: Subject: Speedups for X11.2 Xsun Summary: significant speedups, may work for other machines too [...some introductory text deleted] There are a few important things to do when compiling with gcc: [...some note about gcc 1.22 omitted] 3) You need to compile server/os/4.2bsd/oscolor.c with the Sun-cc compiler, or else you need to recompile and link the dbm library into the server (remember to remove the "-ldbm" from the Makefile in the server directory, too). The GNU compiler handles functions returning structures differently than pcc-based compilers, and "oscolor.c" uses the DBM "fetch" function to get items from a database. The distinctive symptom of forgetting to do this on monochrome is that your xterm windows may be all black or all white, depending on normal preference, and color monitors will be straight B/W. If you compile any of the clients, you may also need to use "-fwriteable-strings" to get around some sloppy coding, notably in xterm. Within few weeks we may post a complete set of diffs for compiling all the libraries and clients using all the gcc optimizations. Mostly these have required cleaning up some constant placement and code ordering. Compiling them with gcc doesn't make a major difference, in most cases, however. [...other notes on speedups omitted.] -- Gene Spafford NSF/Purdue/U of Florida Software Engineering Research Center, Dept. of Computer Sciences, Purdue University, W. Lafayette IN 47907-2004 Internet: spaf@cs.purdue.edu uucp: ...!{decwrl,gatech,ucbvax}!purdue!spaf