Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!sdd.hp.com!decwrl!sgi!shinobu!odin!westworld.esd.sgi.com!erik From: erik@westworld.esd.sgi.com (Erik Fortune) Newsgroups: comp.windows.x Subject: Re: xrooms on Sun4 OS 4.0.3 does not compile Message-ID: <1990Aug15.183847.24745@odin.corp.sgi.com> Date: 15 Aug 90 18:38:47 GMT References: <3887@auspex.auspex.com> Sender: news@odin.corp.sgi.com (Net News) Reply-To: erik@westworld.esd.sgi.com (Erik Fortune) Organization: Silicon Graphics Inc. Lines: 29 In article <3887@auspex.auspex.com>, guy@auspex.auspex.com (Guy Harris) writes: >>ld: Undefined symbol >> _alloca >>*** Error code 1 >>make: Fatal error: Command failed for target `xrooms' >> >>Any idea where is this symbol defined? > >"/usr/include/alloca.h": > > /* @(#)alloca.h 1.3 88/02/07 SMI */ > #if defined(sparc) > # define alloca(x) __builtin_alloca(x) > #endif > >Basically, you need to find those source files that call "alloca" and >put in something like > > #ifdef sparc > #include > #endif > >at the front of them. Be warned that some other compilers also need >assistance in coping with "alloca".... Add Guy's include to xrooms/utils/machdep.h -- all of the other source files include it. -- Erik