{"action":"created","issue":{"url":"https://api.github.com/repos/eventmachine/eventmachine/issues/588","labels_url":"https://api.github.com/repos/eventmachine/eventmachine/issues/588/labels{/name}","comments_url":"https://api.github.com/repos/eventmachine/eventmachine/issues/588/comments","events_url":"https://api.github.com/repos/eventmachine/eventmachine/issues/588/events","html_url":"https://github.com/eventmachine/eventmachine/issues/588","id":64348290,"number":588,"title":"eventmachine v1.0.7 build fails on Mac OS/X with IRB Ruby 2.2.1: rb_thread_select undeclared","user":{"login":"jez-w","id":7227224,"avatar_url":"https://avatars.githubusercontent.com/u/7227224?v=3","gravatar_id":"","url":"https://api.github.com/users/jez-w","html_url":"https://github.com/jez-w","followers_url":"https://api.github.com/users/jez-w/followers","following_url":"https://api.github.com/users/jez-w/following{/other_user}","gists_url":"https://api.github.com/users/jez-w/gists{/gist_id}","starred_url":"https://api.github.com/users/jez-w/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jez-w/subscriptions","organizations_url":"https://api.github.com/users/jez-w/orgs","repos_url":"https://api.github.com/users/jez-w/repos","events_url":"https://api.github.com/users/jez-w/events{/privacy}","received_events_url":"https://api.github.com/users/jez-w/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-03-25T19:04:14Z","updated_at":"2015-03-27T03:05:03Z","closed_at":null,"body":"'gem install eventmachine' produces the following errors on Mac OS/X Yosemite 10.10.2, Ruby 2.2.1. This appears to be a similar issue as that for the move to Ruby 2.2 corrected by eventmachine v1.0.4\r\n\r\n```\r\n$: uname -v\r\nDarwin Kernel Version 14.1.0: Thu Feb 26 19:26:47 PST 2015; root:xnu-2782.10.73~1/RELEASE_X86_64\r\n$: ruby --version\r\nruby 2.2.1p85 (2015-02-26 revision 49769) [x86_64-darwin14]\r\n\r\n$: bundle install\r\nFetching gem metadata from https://rubygems.org/..........\r\nFetching version metadata from https://rubygems.org/..\r\nResolving dependencies...\r\nInstalling daemons 1.2.2\r\n\r\nGem::Ext::BuildError: ERROR: Failed to build gem native extension.\r\n\r\n    /usr/local/bin/ruby -r ./siteconf20150325-2708-t5u8ua.rb extconf.rb \r\nchecking for rb_trap_immediate in ruby.h,rubysig.h... no\r\nchecking for rb_thread_blocking_region()... no\r\nchecking for ruby/thread.h... yes\r\nchecking for rb_thread_call_without_gvl() in ruby/thread.h... no\r\nchecking for inotify_init() in sys/inotify.h... no\r\nchecking for __NR_inotify_init in sys/syscall.h... no\r\nchecking for writev() in sys/uio.h... yes\r\nchecking for rb_thread_fd_select()... no\r\nchecking for rb_fdset_t in ruby/intern.h... yes\r\nchecking for rb_wait_for_single_fd()... no\r\nchecking for rb_enable_interrupt()... no\r\nchecking for rb_time_new()... no\r\nchecking for sys/event.h... yes\r\nchecking for sys/queue.h... yes\r\nchecking for clock_gettime()... no\r\nchecking for gethrtime()... no\r\ncreating Makefile\r\n\r\nmake \"DESTDIR=\" clean\r\n\r\nmake \"DESTDIR=\"\r\ncompiling binder.cpp\r\ncompiling cmain.cpp\r\ncompiling ed.cpp\r\ncompiling em.cpp\r\nem.cpp:686:13: error: use of undeclared identifier 'rb_thread_select'; did you mean 'rb_thread_fd_select'?\r\n        if ((ret = rb_thread_select(kqfd + 1, &fdreads, NULL, NULL, &tv)) < 1) {\r\n                   ^~~~~~~~~~~~~~~~\r\n                   rb_thread_fd_select\r\n/usr/local/include/ruby-2.2.0/ruby/intern.h:454:5: note: 'rb_thread_fd_select' declared here\r\nint rb_thread_fd_select(int, rb_fdset_t *, rb_fdset_t *, rb_fdset_t *, struct timeval *);\r\n    ^\r\nem.cpp:686:40: error: cannot initialize a parameter of type 'rb_fdset_t *' with an rvalue of type 'fd_set *'\r\n        if ((ret = rb_thread_select(kqfd + 1, &fdreads, NULL, NULL, &tv)) < 1) {\r\n                                              ^~~~~~~~\r\n/usr/local/include/ruby-2.2.0/ruby/intern.h:454:42: note: passing argument to parameter here\r\nint rb_thread_fd_select(int, rb_fdset_t *, rb_fdset_t *, rb_fdset_t *, struct timeval *);\r\n                                         ^\r\nem.cpp:915:9: error: use of undeclared identifier 'rb_thread_select'; did you mean 'rb_thread_fd_select'?\r\n        return EmSelect (maxsocket+1, &fdreads, &fdwrites, &fderrors, &tv);\r\n               ^~~~~~~~\r\n               rb_thread_fd_select\r\n./em.h:29:22: note: expanded from macro 'EmSelect'\r\n    #define EmSelect rb_thread_select\r\n                     ^\r\n/usr/local/include/ruby-2.2.0/ruby/intern.h:454:5: note: 'rb_thread_fd_select' declared here\r\nint rb_thread_fd_select(int, rb_fdset_t *, rb_fdset_t *, rb_fdset_t *, struct timeval *);\r\n    ^\r\nem.cpp:1039:6: error: use of undeclared identifier 'rb_thread_select'; did you mean 'rb_thread_fd_select'?\r\n                                        EmSelect (0, NULL, NULL, NULL, &tv);\r\n                                        ^~~~~~~~\r\n                                        rb_thread_fd_select\r\n./em.h:29:22: note: expanded from macro 'EmSelect'\r\n    #define EmSelect rb_thread_select\r\n                     ^\r\n/usr/local/include/ruby-2.2.0/ruby/intern.h:454:5: note: 'rb_thread_fd_select' declared here\r\nint rb_thread_fd_select(int, rb_fdset_t *, rb_fdset_t *, rb_fdset_t *, struct timeval *);\r\n    ^\r\n4 errors generated.\r\nMakefile:229: recipe for target 'em.o' failed\r\nmake: *** [em.o] Error 1\r\n\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/eventmachine/eventmachine/issues/comments/86798946","html_url":"https://github.com/eventmachine/eventmachine/issues/588#issuecomment-86798946","issue_url":"https://api.github.com/repos/eventmachine/eventmachine/issues/588","id":86798946,"user":{"login":"jez-w","id":7227224,"avatar_url":"https://avatars.githubusercontent.com/u/7227224?v=3","gravatar_id":"","url":"https://api.github.com/users/jez-w","html_url":"https://github.com/jez-w","followers_url":"https://api.github.com/users/jez-w/followers","following_url":"https://api.github.com/users/jez-w/following{/other_user}","gists_url":"https://api.github.com/users/jez-w/gists{/gist_id}","starred_url":"https://api.github.com/users/jez-w/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jez-w/subscriptions","organizations_url":"https://api.github.com/users/jez-w/orgs","repos_url":"https://api.github.com/users/jez-w/repos","events_url":"https://api.github.com/users/jez-w/events{/privacy}","received_events_url":"https://api.github.com/users/jez-w/received_events","type":"User","site_admin":false},"created_at":"2015-03-27T03:05:03Z","updated_at":"2015-03-27T03:05:03Z","body":"Sorry - clicked on the wrong button"}}