Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uwm.edu!zaphod.mps.ohio-state.edu!tut.cis.ohio-state.edu!snorkelwacker!bloom-beacon!INTELLICORP.COM!TRANLE From: TRANLE@INTELLICORP.COM (Minh Tran-Le) Newsgroups: comp.windows.x Subject: Re: SUN4 frustrations! (core dump....) Message-ID: <9005070401.AA10613@expo.lcs.mit.edu> Date: 7 May 90 04:01:49 GMT References: Sender: daemon@athena.mit.edu (Mr Background) Organization: The Internet Lines: 44 > When I compiled X11R4 the first time on a Sparc with gcc, I had > exactly the same problem. Even if I only tried to start xlogo, the > server crashed. I don't know the real reason for the problem, but I > fixed it by saying > > #define ServerCcCmd cc > #define ServerCDebugFlags -O > > in mit/config/site.def (and another make World :-)). I tried gcc > without optimization and gcc -g too, but with the same bad results. > With cc we had no problems with the server. On our Sun 3/50's is it > possible to use gcc without any problem. > > If anyone knows, how to use gcc for compiling the server, please let > me know. > > Thanks, Swen > The sun4 gcc version seems to have trouble with returning structures (-fpcc-struct-return) in a way that is compatible with sun4 cc program. With that incompatibility the X server will break when it tries to access the rgb database with the ndbm functions. There is a few solutions to that problem: 1) use sun standard cc compiler with -O2 to get the maximum optimization out of it. 2) If you have the source code to the dbm library then just recompile it with the gcc compiler. 3) You can use the gnu gdbm library which provide ndbm functionality but the database file produced has different format. 4) find out all the calls to ndbm functions in the server code and compile them with the standard cc compiler. Minh Tran-Le. arpanet: tranle@intellicorp.com uucp: ..sun!icmv!mtranle -------