[Gc] RE: ucontext.h deprecation in MacOS 10.6 (was: Compiling gc with gcc-4.2.1)

Boehm, Hans hans.boehm at hp.com
Wed Sep 2 17:01:57 PDT 2009


Thanks.  I went ahead and committed it.

Hans 

> -----Original Message-----
> From: Victor Ivrii [mailto:ivrii at math.toronto.edu] 
> Sent: Tuesday, September 01, 2009 6:00 AM
> To: Boehm, Hans
> Cc: gc at linux.hpl.hp.com
> Subject: Re: ucontext.h deprecation in MacOS 10.6 (was: 
> Compiling gc with gcc-4.2.1)
> 
> On Mon, Aug 31, 2009 at 06:57:51PM +0000, Boehm, Hans wrote:
> > I've attached a patch you can try.  This was not tested on 
> MacOS, but I did test on IA64 and ARM Linux.  It has the 
> advantage of not complicating the code with any more MacOS specifics.
> > 
> > Hans
> 
> 
> I confirm that compilation was successful on MacOSX 10.6
> 
> 
> Victor
> 
> > 
> > > -----Original Message-----
> > > From: Victor Ivrii [mailto:ivrii at math.toronto.edu]
> > > Sent: Monday, August 31, 2009 11:16 AM
> > > To: Boehm, Hans
> > > Subject: Re: uncontext.h deprecation in MacOS 10.6 (was: 
> > > Compiling gc with gcc-4.2.1)
> > > 
> > > On Mon, Aug 31, 2009 at 05:48:45PM +0000, Boehm, Hans wrote:
> > > > [Adding gc.linux.hpl.hp.com]
> > > > 
> > > > Actually, NO_GETCONTEXT should already be defined for
> > > DARWIN (mach_dep.c:169).
> > > > You are right that the real problem seems to be the
> > > inclusion of ucontext.h by mach_dep.c.  I would try 
> including that 
> > > only if NO_GETCONTEXT is not defined.  Including sys/ucontext.h 
> > > instead might work if that doesn't, but that strikes me as a very 
> > > MacOS-specific hack.
> > > > 
> > > > A tested patch from someone with a Snow Leopard
> > > installation would be great.
> > > 
> > > It was not me who actually observed it and found solution (I 
> > > observed it later) I can test the patch but writing it is a bit 
> > > above my head.
> > > 
> > > Including  sys/ucontext.h works - I can confirm this
> > > 
> > > Victor
> > > 
> > > 
> 
> 
> --
> ==============================================================
> Victor Ivrii, Professor, Department of Mathematics, 
> University of Toronto, 40 St.George Str., Toronto, Ontario 
> M5S 2E4, Canada
> office: HU 1008
> 
> (416)978-4031 (of),  (416)978-4107 (fax) ivrii at math.toronto.edu
>  
> ==============================================================
> WWW home page:
> http://www.math.toronto.edu/ivrii/
> 


More information about the Gc mailing list