[Gc] GC 7.1 Mac OS X 10.6.6: ucontext routines are deprecated

Hans Aberg haberg-1 at telia.com
Tue Feb 8 12:21:34 PST 2011

[I am not on this list, so please cc me.]

Compiling gc-7.1 configured using
  ./configure --enable-threads=posix --enable-cplusplus
on Mac OS X 10.6.6 with Xcode 3.2.5 produces the error:
  In file included from mach_dep.c:163:
/usr/include/ucontext.h:42:2: error: #error ucontext routines are deprecated, and require _XOPEN_SOURCE to be defined

After defining _XOPEN_SOURCE in mach_dep.c, the package compiled.

Trying to compile gc-7.2alpha4 (same configuration) produces the error:
  libtool: compile:  gcc -DHAVE_CONFIG_H -I./include -I./include -I./libatomic_ops/src -I./libatomic_ops/src -fexceptions -g -O2 -MT misc.lo -MD -MP -MF .deps/misc.Tpo -c misc.c  -fno-common -DPIC -o .libs/misc.o
misc.c: In function 'GC_get_suspend_signal':
misc.c:462: error: 'SIGRTMIN' undeclared (first use in this function)

More information about the Gc mailing list