[comp.windows.x] SUMMARY : Re: alloca error building X11R4 on a Sparc 2

palmer@gateway.mitre.ORG (Forrest Palmer) (06/18/91)

Thanks to everyone who responded. As many people indicated I needed
the C preprocessor flag "-DINCLUDE_ALLOCA_H" in the compilation
statements of the libraries and the programs.

The sun.cf file contains :

/* define this as you like for server compilation */
#if OSMajorVersion >= 4 || defined(SparcArchitecture)
#define HWOSDefines -DINCLUDE_ALLOCA_H
#else
#define HWOSDefines /* as nothing */
#endif

Unfortunately, this will only apply to the _server_. So I just added :

#ifdef SparcArchitecture
#define DefaultCCOptions -pipe -DINCLUDE_ALLOCA_H /* remove in R4 */
#else
#define DefaultCCOptions -f68881 /* -pipe*/ /* remove in R4 */
#endif

to make everything compile with this flag. So far so good.

Thanks again.

------------------------------------------------------
Forrest Palmer                        (703) 883-5668
Internet Engineering Testbed Administrator 
The MITRE Corp. - Washington Center
MS W425, McLean, VA 22102

palmer@mitre.org
------------------------------------------------------