Path: utzoo!attcan!uunet!lupine!djm From: djm@lupine.UUCP (Dave Mackie) Newsgroups: comp.windows.x Subject: Re: Problem with R3 make Sun4, SunOS 3.2 Summary: How to resolve alloca() on SUN-4 Message-ID: <169@lupine.UUCP> Date: 7 Feb 89 20:07:39 GMT References: <8902062135.AA04548@mbunix.mitre.org> Organization: Network Computing Devices Lines: 32 In article <8902062135.AA04548@mbunix.mitre.org>, jpfo@mbunix (Otin) writes: > > Have an undefined problem, alloca, when making World and install. > Could someone forward to me, as we are stuck in our installation on > Sun4 with SunOS 3.2 of Xv11r3. If you are building X11 R3 on a SUN-4 then you want to be sure to check that the file /mumble/x11r3/util/imake.includes/Sun.macros has the correct definitions of OSMajorVersion and OSMinorVersion. Later in the Sun.macros file the following happens: /* define this as you like for server compilation */ #if SunOSPlatform && OSMajorVersion >= 4 #define ServerDefines SunWindowsDefines -DINCLUDE_ALLOCA_H #else #define ServerDefines SunWindowsDefines #endif The -DINCLUDE_ALLOCA_H causes /usr/include/alloca.h to be included when compiling. This file (for a reason someone from SUN would have to explain) changes alloca(x) to a call to __builtin_alloca(x) when you're compiling on a SPARC architecture. Note: the Sun.macros file implies that this fix is only needed if you're running SUNOS 4.0 or greater, but you said you were running SUNOS 3.2. My guess is that either the Sun.macros file didn't know about the SUN-4 version of 3.2 which also needs the alloca fix or that someone slipped 4.0 onto your system :-). Dave Mackie Network Computing Devices