This struct is supposed to be getting defined by signals-apple.c:11-12
```
#define __need_ucontext64_t
#include <machine/_structs.h>
```

I don't have a 10.8 system to test with however (Apple moved this header in
10.9). Can you take a look at that header (in /usr/include) and see if
there is something other than `__need_ucontext64_t` that is required to get
it to define the ucontext64_t?

Also note, GitHub issues tracker would be a better places to post this
question than julia-users.


On Sat, Aug 15, 2015 at 10:38 AM Adrian Cuthbertson <
[email protected]> wrote:

> I'm encountering an error building 0.4 master. I did a complete
> clone/build after removing the julia directory. System is OSX 10.8.5. Error
> is:
>
>     CC src/signal-handling.o
> In file included from signal-handling.c:62:
> ./signals-unix.c:40:72: error: use of undeclared identifier
> 'ucontext64_t'; did you mean 'ucontext_t'?
>     bt_size = rec_backtrace_ctx(bt_data, MAX_BT_SIZE,
> (bt_context_t)&((ucontext64_t*)context)->uc_mcontext64->__ss);
>                                                                        ^
> /usr/include/sys/_structs.h:227:26: note: 'ucontext_t' declared here
> typedef _STRUCT_UCONTEXT        ucontext_t;     /* [???] user context */
>                                 ^
> In file included from signal-handling.c:62:
> ./signals-unix.c:40:85: error: expected expression
>     bt_size = rec_backtrace_ctx(bt_data, MAX_BT_SIZE,
> (bt_context_t)&((ucontext64_t*)context)->uc_mcontext64->__ss);
>
>           ^
> 2 errors generated.
> make[1]: *** [signal-handling.o] Error 1
> make: *** [julia-src-release] Error 2
>
> Any help appreciated.
>
> Thanks, Adrian.
>
>

Reply via email to