Skip to content

Instantly share code, notes, and snippets.

@kirs
Created December 2, 2014 15:05
Show Gist options
  • Save kirs/13c80d1028f393c52645 to your computer and use it in GitHub Desktop.
Save kirs/13c80d1028f393c52645 to your computer and use it in GitHub Desktop.
compiling ../../../../ext/journalist/allocations.c
../../../../ext/journalist/allocations.c:30:18: error: implicit declaration of function
'rb_tracearg_object' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
VALUE obj = rb_tracearg_object(tparg);
^
../../../../ext/journalist/allocations.c:30:18: note: did you mean 'rb_tracearg_event'?
/Users/kir/.rbenv/versions/2.0.0-p451/include/ruby-2.0.0/ruby/debug.h:61:7: note: 'rb_tracearg_event'
declared here
VALUE rb_tracearg_event(rb_trace_arg_t *trace_arg);
^
../../../../ext/journalist/allocations.c:144:54: error: use of undeclared identifier
'RUBY_INTERNAL_EVENT_NEWOBJ'
allocations_tp_hook.newobj = rb_tracepoint_new(0, RUBY_INTERNAL_EVENT_NEWOBJ, journalist_on_n...
^
../../../../ext/journalist/allocations.c:145:54: error: use of undeclared identifier
'RUBY_INTERNAL_EVENT_FREEOBJ'
allocations_tp_hook.freeobj = rb_tracepoint_new(0, RUBY_INTERNAL_EVENT_FREEOBJ, journalist_on_f...
^
3 errors generated.
make: *** [allocations.o] Error 1
rake aborted!
Command failed with status (2): [make...]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment