Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Installing system_timer, having problems #18

Open
ghost opened this Issue · 3 comments

3 participants

@ghost

Ruby: 1.9.3
System-Timer: 1.2.4
Bundler: 1.1-pre

Installing system_timer (1.2.4) with native extensions Unfortunately, a fatal error has occurred. Please report this error to the Bundler issue tracker at https://github.com/carlhuda/bundler/issues so that we can fix it. Thanks!
/Users/kurtisrainbolt-greene/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/installer.rb:552:in `rescue in block in build_extensions': ERROR: Failed to build gem native extension. (Gem::Installer::ExtensionBuildError)

        /Users/kurtisrainbolt-greene/.rvm/rubies/ruby-1.9.3-p0/bin/ruby extconf.rb 
creating Makefile

make
compiling system_timer_native.c
In file included from system_timer_native.c:8:
/Users/kurtisrainbolt-greene/.rvm/rubies/ruby-1.9.3-p0/include/ruby-1.9.1/ruby/backward/rubysig.h:14:2: warning: #warning rubysig.h is obsolete
system_timer_native.c: In function ‘install_first_timer_and_save_original_configuration’:
system_timer_native.c:46: warning: passing argument 1 of ‘log_debug’ discards qualifiers from pointer target type
system_timer_native.c:53: warning: passing argument 1 of ‘log_error’ discards qualifiers from pointer target type
system_timer_native.c:57: warning: passing argument 1 of ‘log_debug’ discards qualifiers from pointer target type
system_timer_native.c:62: warning: passing argument 1 of ‘log_debug’ discards qualifiers from pointer target type
system_timer_native.c:65: warning: passing argument 1 of ‘log_error’ discards qualifiers from pointer target type
system_timer_native.c:69: warning: passing argument 1 of ‘log_debug’ discards qualifiers from pointer target type
system_timer_native.c:82: warning: passing argument 1 of ‘log_error’ discards qualifiers from pointer target type
system_timer_native.c:89: warning: passing argument 1 of ‘log_debug’ discards qualifiers from pointer target type
system_timer_native.c:96: warning: passing argument 1 of ‘log_error’ discards qualifiers from pointer target type
system_timer_native.c:101: warning: passing argument 1 of ‘log_debug’ discards qualifiers from pointer target type
system_timer_native.c: In function ‘install_next_timer’:
system_timer_native.c:112: warning: passing argument 1 of ‘log_debug’ discards qualifiers from pointer target type
system_timer_native.c:119: warning: passing argument 1 of ‘log_error’ discards qualifiers from pointer target type
system_timer_native.c:123: warning: passing argument 1 of ‘log_debug’ discards qualifiers from pointer target type
system_timer_native.c:130: warning: passing argument 1 of ‘log_error’ discards qualifiers from pointer target type
system_timer_native.c:136: warning: passing argument 1 of ‘log_debug’ discards qualifiers from pointer target type
system_timer_native.c:143: warning: passing argument 1 of ‘log_error’ discards qualifiers from pointer target type
system_timer_native.c:146: warning: passing argument 1 of ‘log_debug’ discards qualifiers from pointer target type
system_timer_native.c: In function ‘restore_original_configuration’:
system_timer_native.c:157: warning: passing argument 1 of ‘log_error’ discards qualifiers from pointer target type
system_timer_native.c:160: warning: passing argument 1 of ‘log_debug’ discards qualifiers from pointer target type
system_timer_native.c:168: warning: passing argument 1 of ‘log_error’ discards qualifiers from pointer target type
system_timer_native.c:170: warning: passing argument 1 of ‘log_debug’ discards qualifiers from pointer target type
system_timer_native.c:172: warning: passing argument 1 of ‘log_error’ discards qualifiers from pointer target type
system_timer_native.c: In function ‘restore_original_timer_interval’:
system_timer_native.c:190: warning: passing argument 1 of ‘log_error’ discards qualifiers from pointer target type
system_timer_native.c:192: warning: passing argument 1 of ‘log_debug’ discards qualifiers from pointer target type
system_timer_native.c: In function ‘restore_sigalrm_mask’:
system_timer_native.c:199: warning: passing argument 1 of ‘log_debug’ discards qualifiers from pointer target type
system_timer_native.c:201: warning: passing argument 1 of ‘log_debug’ discards qualifiers from pointer target type
system_timer_native.c: In function ‘install_ruby_sigalrm_handler’:
system_timer_native.c:211: error: ‘rb_thread_critical’ undeclared (first use in this function)
system_timer_native.c:211: error: (Each undeclared identifier is reported only once
system_timer_native.c:211: error: for each function it appears in.)
system_timer_native.c: In function ‘restore_original_ruby_sigalrm_handler’:
system_timer_native.c:217: error: ‘rb_thread_critical’ undeclared (first use in this function)
system_timer_native.c: In function ‘clear_pending_sigalrm_for_ruby_threads’:
system_timer_native.c:266: warning: passing argument 1 of ‘log_debug’ discards qualifiers from pointer target type
system_timer_native.c: In function ‘set_itimerval’:
system_timer_native.c:290: warning: passing argument 1 of ‘log_debug’ discards qualifiers from pointer target type
system_timer_native.c:295: warning: implicit conversion shortens 64-bit value into a 32-bit value
system_timer_native.c:299: warning: passing argument 1 of ‘log_debug’ discards qualifiers from pointer target type
make: *** [system_timer_native.o] Error 1


Gem files will remain installed in /Users/kurtisrainbolt-greene/.rvm/gems/ruby-1.9.3-p0@simian/gems/system_timer-1.2.4 for inspection.
Results logged to /Users/kurtisrainbolt-greene/.rvm/gems/ruby-1.9.3-p0@simian/gems/system_timer-1.2.4/ext/system_timer/gem_make.out
    from /Users/kurtisrainbolt-greene/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/installer.rb:530:in `block in build_extensions'
    from /Users/kurtisrainbolt-greene/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/installer.rb:505:in `each'
    from /Users/kurtisrainbolt-greene/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/installer.rb:505:in `build_extensions'
    from /Users/kurtisrainbolt-greene/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/installer.rb:180:in `install'
    from /Users/kurtisrainbolt-greene/.rvm/gems/ruby-1.9.3-p0@global/gems/bundler-1.1.rc/lib/bundler/source.rb:90:in `block in install'
    from /Users/kurtisrainbolt-greene/.rvm/gems/ruby-1.9.3-p0@global/gems/bundler-1.1.rc/lib/bundler/rubygems_integration.rb:78:in `preserve_paths'
    from /Users/kurtisrainbolt-greene/.rvm/gems/ruby-1.9.3-p0@global/gems/bundler-1.1.rc/lib/bundler/source.rb:89:in `install'
    from /Users/kurtisrainbolt-greene/.rvm/gems/ruby-1.9.3-p0@global/gems/bundler-1.1.rc/lib/bundler/installer.rb:73:in `block in install_gem_from_spec'
    from /Users/kurtisrainbolt-greene/.rvm/gems/ruby-1.9.3-p0@global/gems/bundler-1.1.rc/lib/bundler/rubygems_integration.rb:93:in `with_build_args'
    from /Users/kurtisrainbolt-greene/.rvm/gems/ruby-1.9.3-p0@global/gems/bundler-1.1.rc/lib/bundler/installer.rb:72:in `install_gem_from_spec'
    from /Users/kurtisrainbolt-greene/.rvm/gems/ruby-1.9.3-p0@global/gems/bundler-1.1.rc/lib/bundler/installer.rb:56:in `block in run'
    from /Users/kurtisrainbolt-greene/.rvm/gems/ruby-1.9.3-p0@global/gems/bundler-1.1.rc/lib/bundler/installer.rb:55:in `run'
    from /Users/kurtisrainbolt-greene/.rvm/gems/ruby-1.9.3-p0@global/gems/bundler-1.1.rc/lib/bundler/installer.rb:12:in `install'
    from /Users/kurtisrainbolt-greene/.rvm/gems/ruby-1.9.3-p0@global/gems/bundler-1.1.rc/lib/bundler/cli.rb:219:in `install'
    from /Users/kurtisrainbolt-greene/.rvm/gems/ruby-1.9.3-p0@global/gems/bundler-1.1.rc/lib/bundler/vendor/thor/task.rb:22:in `run'
    from /Users/kurtisrainbolt-greene/.rvm/gems/ruby-1.9.3-p0@global/gems/bundler-1.1.rc/lib/bundler/vendor/thor/invocation.rb:118:in `invoke_task'
    from /Users/kurtisrainbolt-greene/.rvm/gems/ruby-1.9.3-p0@global/gems/bundler-1.1.rc/lib/bundler/vendor/thor.rb:263:in `dispatch'
    from /Users/kurtisrainbolt-greene/.rvm/gems/ruby-1.9.3-p0@global/gems/bundler-1.1.rc/lib/bundler/vendor/thor/base.rb:386:in `start'
    from /Users/kurtisrainbolt-greene/.rvm/gems/ruby-1.9.3-p0@global/gems/bundler-1.1.rc/bin/bundle:13:in `<top (required)>'
    from /Users/kurtisrainbolt-greene/.rvm/gems/ruby-1.9.3-p0@global/bin/bundle:19:in `load'
    from /Users/kurtisrainbolt-greene/.rvm/gems/ruby-1.9.3-p0@global/bin/bundle:19:in `<main>'
@zolzaya

I have a same problem.

Bundler: 1.0.21
Ruby: 1.9.3p0

@kaleemullah

SystemTimer is only a patch for ruby 1.8's threading system. So, there is no need to have it for ruby > 1.8.7
More details: http://isitruby19.com/systemtimer

@slowernet

Gemfile.rb:

platform :ruby_18 do
  gem 'system_timer', '1.2.4'
end
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.