1

The following steps:

$ wget http://www.hpl.hp.com/personal/Hans_Boehm/gc/gc_source/gc-7.0.tar.gz
$ tar xvfz gc-7.0.tar.gz
$ cd gc-7.0
$ ./configure
$ make

fail with this 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
Charles
  • 50,943
  • 13
  • 104
  • 142
miku
  • 181,842
  • 47
  • 306
  • 310

1 Answers1

3

ucontext.h is included here:

$ fstr "ucontext.h" # find string ...
./mach_dep.c:163
./os_dep.c:2752

Replace ucontext.h in mach_dep.c with sys/ucontext.h.

Details: http://duriansoftware.com/joe/PSA:-avoiding-the-%22ucontext-routines-are-deprecated%22-error-on-Mac-OS-X-Snow-Leopard.html

miku
  • 181,842
  • 47
  • 306
  • 310