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

Boehm, Hans hans.boehm at hp.com
Tue Sep 1 11:25:46 PDT 2009


 

> -----Original Message-----
> From: Juan Jose Garcia-Ripoll 
> [mailto:juanjose.garciaripoll at googlemail.com] 
> Sent: Tuesday, September 01, 2009 3:13 AM
> To: Boehm, Hans
> Cc: Henning Makholm; gc at linux.hpl.hp.com
> Subject: Re: [Gc] RE: ucontext.h deprecation in MacOS 10.6 
> (was: Compiling gc with gcc-4.2.1)
> 
> On Tue, Sep 1, 2009 at 12:15 AM, Boehm, Hans<hans.boehm at hp.com> wrote:
> >> From:  Juan Jose Garcia-Ripoll
> >> I am just having problems with the previous patch and v7.1 of the 
> >> garbage collector, because ucontext.h is still getting included.
> >>
> >> Juanjo
> >>
> > Could you clarify?  This is on MacOS 10.6?
> >
> > The idea behind the patch is that DARWIN and UNIX_LIKE should be 
> > defined, which should cause NO_GETCONTEXT to get defined, 
> which should 
> > avoid inclusion of ucontext.h  using the include in the patch.  Is 
> > this wrong?
> 
> I still do not have OS X 10.6 -- it will take some days to 
> ship here --, but in the mean time I was making tests with 
> v7.1 of the garbage collector and that patch. It seems that 
> ucontext.h gets included in mach_dep.c in OS X 10.5 and that 
> NO_GETCONTEXT is _not_ defined. I do not know whether later 
> versions of the library solve this problem.
> 
> Juanjo
> 
Looking back at the CVS history, NO_GETCONTEXT was introduced after 7.1.  You'll need the CVS version or 7.2alpha2 for the patch to make sense.

Hans


More information about the Gc mailing list