From: mark@alsvid.une.edu.au (Mark Garrett Internet: mark@arvak.une.edu.au Phone: +61 66 20 3859)
Newsgroups: fj.mail-lists.x-window
Subject: Re: Problems - R5 build on DS 5000/25 using gcc-2.2.2
Date: 27 Aug 92 10:44:20 GMT
Distribution: fj
Organization: University of New England - Northern Rivers (Lismore)

Date: 26 Aug 92 08:52:19 GMT
Message-Id: <BtL1z7.n4t@alsvid.une.edu.au>
Newsgroups: comp.windows.x,comp.unix.ultrix,gnu.gcc.help

> tried it last, simply removing "-Dvax" caused something else to blow
> up (e.g. you'll find mips-specific code in mit/server/include/servermd.h).
> 
> Actually, if you do get it to work, I'd be interested in seeing your
> site.def & ultrix.cf files -- when I tried gcc 2.2.2, the server that
> was ultimately produced was screwed up.

	I had the same problem. Here is what I used.


XCOMM site:  $XConsortium: site.def,v 1.2 91/07/30 20:26:44 rws Exp $

/*****************************************************************************
 *                                                                           *
 *			   SITE-SPECIFIC DEFINITIONS                         *
 *                                                                           *
 * file, not overridden in site.def.                                         *
 *                                                                           *
 *****************************************************************************/

#ifdef BeforeVendorCF

#define HasGcc YES

#endif /* BeforeVendorCF */

#ifdef AfterVendorCF

#ifdef ProjectRoot
#undef ProjectRoot
#endif
#define DefaultCDebugFlags -Dstrength_reduce -Dultrix -fpcc-struct-return -O2

#define OptimzedCDebugFlags -Dstrength_reduce -Dultrix -fpcc-struct-return -O2

#define ProjectRoot /usr/local/X11R5
#define InstallXdmConfig YES
#define InstallXinitConfig YES
#define HasXdmAuth YES
#define InstallFSConfig YES
#define MotifBC YES


#endif /* AfterVendorCF */

------------------------------------------------------------------------------
XCOMM platform:  $XConsortium: ultrix.cf,v 1.45 91/07/30 12:12:11 rws Exp $

#define OSName            Ultrix-32 4.2
XCOMM operating system:  OSName
#define OSMajorVersion    4
#define OSMinorVersion    2

#define HasPutenv YES
#define HasSaberC YES
#define HasShm YES
#define LintLibFlag -o
#define LintOpts -ax

#ifdef VaxArchitecture
#define XqdssServer YES
#define XqvssServer YES
#define UnalignedReferencesAllowed YES         /* if arbitrary deref is okay */
#if HasGcc
#define CcCmd gcc -Dvax -ansi -Dstrength_reduce -Dultrix -fpcc-struct-return
#define BuildPexExt XqdssServer
#else
#define BuildPex NO /* compiler runs out of table space */
#endif
#endif

#ifdef MipsArchitecture
#if OSMajorVersion > 4 || (OSMajorVersion == 4 && OSMinorVersion >= 2)
#define XdecServer YES
/* Even under ultrix 4.2, the compiler miscompiles some alloca calls */
#define AllocateLocalDefines /* -DINCLUDE_ALLOCA_H */
#else
#define XmfbpmaxServer NO
#define XcfbpmaxServer YES
#define AllocateLocalDefines /**/
#endif
#define NeedFunctionPrototypes YES
#ifdef HasGcc
#define CcCmd gcc -DX_NOT_POSIX -Dstrength_reduce -Dultrix -fpcc-struct-return -
O2
#else
#define PexCCOptions -Wf,-XNp15000,-XNd15000
#endif
#endif

#define ServerCCOptions /* */
#define AllocateLocalDefines /* */

#define ServerOSDefines AllocateLocalDefines


	Cheers
		Mark :)
-- 
Mark Garrett	Internet:  mark@arvak.une.edu.au	Phone: 	+61 66 20 3859
   University of New England, Northern Rivers, Lismore NSW Australia.