Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

JRuby: Error compiling stack_tracy.c when installing #2

Open
ngiger opened this Issue · 0 comments

1 participant

Niklaus Giger
Niklaus Giger

I tried to install stack_trace on my x86_64 Debian/Linux (testing) system and it failed with the followin error

Building native extensions.  This could take a while...
ERROR:  Error installing stack_tracy:
        ERROR: Failed to build gem native extension.

        /home/niklaus/.rvm/rubies/jruby-1.6.7.2/bin/jruby extconf.rb
WARNING: JRuby does not support native extensions or the `mkmf' library very well.
Check http://kenai.com/projects/jruby/pages/Home for alternatives.
creating Makefile

make
cc -I. -I/home/niklaus/.rvm/rubies/jruby-1.6.7.2/lib/native/include -I/home/niklaus/.rvm/rubies/jruby-1.6.7.2/lib/native/include/ruby -I.     -fPIC  -fno-omit-frame-pointer -fno-strict-aliasing  -fexceptions    -m64 -c stack_tracy.c
In file included from stack_tracy.c:1:0:
stack_tracy.h:10:3: error: unknown type name ‘rb_event_flag_t’
stack_tracy.h:37:31: error: unknown type name ‘rb_event_flag_t’
stack_tracy.h:42:30: error: unknown type name ‘rb_event_flag_t’
stack_tracy.h:42:53: error: unknown type name ‘NODE’
stack_tracy.c:37:31: error: unknown type name ‘rb_event_flag_t’
stack_tracy.c:67:30: error: unknown type name ‘rb_event_flag_t’
stack_tracy.c:67:53: error: unknown type name ‘NODE’
stack_tracy.c: In function ‘stack_tracy_start’:
stack_tracy.c:171:23: error: ‘stack_tracy_trap’ undeclared (first use in this function)
stack_tracy.c:171:23: note: each undeclared identifier is reported only once for each function it appears in
stack_tracy.c:171:41: error: ‘RUBY_EVENT_CALL’ undeclared (first use in this function)
stack_tracy.c:171:59: error: ‘RUBY_EVENT_C_CALL’ undeclared (first use in this function)
stack_tracy.c:171:79: error: ‘RUBY_EVENT_RETURN’ undeclared (first use in this function)
stack_tracy.c:171:99: error: ‘RUBY_EVENT_C_RETURN’ undeclared (first use in this function)
stack_tracy.c: In function ‘stack_tracy_stop’:
stack_tracy.c:184:24: error: ‘stack_tracy_trap’ undeclared (first use in this function)
stack_tracy.c:192:34: warning: comparison between pointer and integer [enabled by default]
stack_tracy.c:192:7: warning: passing argument 1 of ‘strlen’ makes pointer from integer without a cast [enabled by default]
In file included from /home/niklaus/.rvm/rubies/jruby-1.6.7.2/lib/native/include/ruby/ruby.h:28:0,
                from /home/niklaus/.rvm/rubies/jruby-1.6.7.2/lib/native/include/ruby.h:2,
                from stack_tracy.h:4,
                from stack_tracy.c:1:
/usr/include/string.h:399:15: note: expected ‘const char *’ but argument is of type ‘int’
stack_tracy.c:192:7: warning: passing argument 1 of ‘rb_str_new’ makes pointer from integer without a cast [enabled by default]
In file included from /home/niklaus/.rvm/rubies/jruby-1.6.7.2/lib/native/include/ruby.h:2:0,
                from stack_tracy.h:4,
                from stack_tracy.c:1:
/home/niklaus/.rvm/rubies/jruby-1.6.7.2/lib/native/include/ruby/ruby.h:717:20: note: expected ‘const char *’ but argument is of type ‘int’
stack_tracy.c:192:7: warning: passing argument 1 of ‘rb_str_new_cstr’ makes pointer from integer without a cast [enabled by default]
In file included from /home/niklaus/.rvm/rubies/jruby-1.6.7.2/lib/native/include/ruby.h:2:0,
                from stack_tracy.h:4,
                from stack_tracy.c:1:
/home/niklaus/.rvm/rubies/jruby-1.6.7.2/lib/native/include/ruby/ruby.h:719:20: note: expected ‘const char *’ but argument is of type ‘int’
make: *** [stack_tracy.o] Fehler 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.