Skip to content

SystemTimer gem installation error on windows #4

Open
@dbhikadiya

Description

@dbhikadiya

I am trying to install SystemTimer 1.2 on Windows XP machine via command
gem install SystemTimer

I am using:
ruby 1.8.7.249, rubygems 1.3.5 and also have ruby devkit installed.

Getting following error:

D:/Ruby/bin/ruby.exe extconf.rb
creating Makefile

make
gcc -I. -I/D/Ruby/lib/ruby/1.8/i386-mingw32 -I/D/Ruby/lib/ruby/1.8/i386-mingw32 -I. -g -O2 -c system_timer_native.c
system_timer_native.c: In function install_first_timer_and_save_original_configuration': system_timer_native.c:39: error: storage size of 'timer_interval' isn't known system_timer_native.c:48: error:SIG_BLOCK' undeclared (first use in this function)
system_timer_native.c:48: error: (Each undeclared identifier is reported only once
system_timer_native.c:48: error: for each function it appears in.)
system_timer_native.c:59: error: invalid use of undefined type struct sigaction' system_timer_native.c:60: error:SIGALRM' undeclared (first use in this function)
system_timer_native.c:77: error: ITIMER_REAL' undeclared (first use in this function) system_timer_native.c:91: error:SIG_UNBLOCK' undeclared (first use in this function)
system_timer_native.c: In function install_next_timer': system_timer_native.c:104: error: storage size of 'timer_interval' isn't known system_timer_native.c:114: error:SIG_BLOCK' undeclared (first use in this function)
system_timer_native.c:125: error: ITIMER_REAL' undeclared (first use in this function) system_timer_native.c:138: error:SIG_UNBLOCK' undeclared (first use in this function)
system_timer_native.c: In function restore_original_configuration': system_timer_native.c:152: error:SIG_BLOCK' undeclared (first use in this function)
system_timer_native.c:163: error: invalid use of undefined type struct sigaction' system_timer_native.c:165: error:SIGALRM' undeclared (first use in this function)
system_timer_native.c:170: error: invalid use of undefined type struct sigaction' system_timer_native.c: In functionrestore_original_timer_interval':
system_timer_native.c:185: error: ITIMER_REAL' undeclared (first use in this function) system_timer_native.c: In functionrestore_sigalrm_mask':
system_timer_native.c:193: error: SIGALRM' undeclared (first use in this function) system_timer_native.c:194: error:SIG_UNBLOCK' undeclared (first use in this function)
system_timer_native.c: In function init_sigalarm_mask': system_timer_native.c:268: error:SIGALRM' undeclared (first use in this function)
system_timer_native.c: In function set_itimerval': system_timer_native.c:288: error: dereferencing pointer to incomplete type system_timer_native.c:289: error: dereferencing pointer to incomplete type system_timer_native.c:290: error: dereferencing pointer to incomplete type system_timer_native.c:291: error: dereferencing pointer to incomplete type system_timer_native.c:291: error: dereferencing pointer to incomplete type system_timer_native.c:294: error: dereferencing pointer to incomplete type system_timer_native.c:295: error: dereferencing pointer to incomplete type system_timer_native.c: At top level: system_timer_native.c:21: error: storage size oforiginal_signal_handler' isn't known
system_timer_native.c:22: error: storage size of `original_timer_interval' isn't known
make: *** [system_timer_native.o] Error 1

I have tried all the solutions available on the internet to work around this issue with no success. I will really appreciate your help. Thanks in advance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions