{"action":"created","issue":{"url":"https://api.github.com/repos/flori/json/issues/229","labels_url":"https://api.github.com/repos/flori/json/issues/229/labels{/name}","comments_url":"https://api.github.com/repos/flori/json/issues/229/comments","events_url":"https://api.github.com/repos/flori/json/issues/229/events","html_url":"https://github.com/flori/json/issues/229","id":52871560,"number":229,"title":"Incompatibility with Ruby 2.2.0","user":{"login":"dougo","id":252295,"avatar_url":"https://avatars.githubusercontent.com/u/252295?v=3","gravatar_id":"","url":"https://api.github.com/users/dougo","html_url":"https://github.com/dougo","followers_url":"https://api.github.com/users/dougo/followers","following_url":"https://api.github.com/users/dougo/following{/other_user}","gists_url":"https://api.github.com/users/dougo/gists{/gist_id}","starred_url":"https://api.github.com/users/dougo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dougo/subscriptions","organizations_url":"https://api.github.com/users/dougo/orgs","repos_url":"https://api.github.com/users/dougo/repos","events_url":"https://api.github.com/users/dougo/events{/privacy}","received_events_url":"https://api.github.com/users/dougo/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":27,"created_at":"2014-12-25T20:19:10Z","updated_at":"2015-11-27T19:13:27Z","closed_at":"2015-02-03T13:53:51Z","body":"I upgraded to Ruby 2.2.0, but now I get errors when I install the JSON gem:\r\n```\r\nbash-3.2$ gem install json\r\nFetching: json-1.8.1.gem (100%)\r\nBuilding native extensions.  This could take a while...\r\nERROR:  Error installing json:\r\n\tERROR: Failed to build gem native extension.\r\n\r\n    /Users/dorleans/.rbenv/versions/2.2.0/bin/ruby -r ./siteconf20141225-66244-1qaxb2p.rb extconf.rb\r\ncreating Makefile\r\n\r\nmake \"DESTDIR=\" clean\r\n\r\nmake \"DESTDIR=\"\r\ncompiling generator.c\r\nIn file included from generator.c:1:\r\n./../fbuffer/fbuffer.h:175:47: error: too few arguments provided to function-like macro invocation\r\n    VALUE result = rb_str_new(FBUFFER_PAIR(fb));\r\n                                              ^\r\n/Users/dorleans/.rbenv/versions/2.2.0/include/ruby-2.2.0/ruby/intern.h:793:9: note: macro 'rb_str_new' defined here\r\n#define rb_str_new(str, len) __extension__ (    \\\r\n        ^\r\nIn file included from generator.c:1:\r\n./../fbuffer/fbuffer.h:175:11: warning: incompatible pointer to integer conversion initializing 'VALUE' (aka 'unsigned long') with an expression of type 'VALUE (const char *, long)' [-Wint-conversion]\r\n    VALUE result = rb_str_new(FBUFFER_PAIR(fb));\r\n          ^        ~~~~~~~~~~\r\n1 warning and 1 error generated.\r\nmake: *** [generator.o] Error 1\r\n\r\nmake failed, exit code 2\r\n\r\nGem files will remain installed in /Users/dorleans/.rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/json-1.8.1 for inspection.\r\nResults logged to /Users/dorleans/.rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/extensions/x86_64-darwin-13/2.2.0-static/json-1.8.1/gem_make.out\r\nbash-3.2$ ruby --version\r\nruby 2.2.0p0 (2014-12-25 revision 49005) [x86_64-darwin13]\r\nbash-3.2$ gem --version\r\n2.4.5\r\n```\r\nI don't see anything about `rb_str_new` in the [Ruby 2.2.0 change log](https://github.com/ruby/ruby/blob/v2_2_0/NEWS), so maybe I just have something wrong with my environment? Any tips would be appreciated."},"comment":{"url":"https://api.github.com/repos/flori/json/issues/comments/160192459","html_url":"https://github.com/flori/json/issues/229#issuecomment-160192459","issue_url":"https://api.github.com/repos/flori/json/issues/229","id":160192459,"user":{"login":"gavinmcgimpsey","id":10241263,"avatar_url":"https://avatars.githubusercontent.com/u/10241263?v=3","gravatar_id":"","url":"https://api.github.com/users/gavinmcgimpsey","html_url":"https://github.com/gavinmcgimpsey","followers_url":"https://api.github.com/users/gavinmcgimpsey/followers","following_url":"https://api.github.com/users/gavinmcgimpsey/following{/other_user}","gists_url":"https://api.github.com/users/gavinmcgimpsey/gists{/gist_id}","starred_url":"https://api.github.com/users/gavinmcgimpsey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gavinmcgimpsey/subscriptions","organizations_url":"https://api.github.com/users/gavinmcgimpsey/orgs","repos_url":"https://api.github.com/users/gavinmcgimpsey/repos","events_url":"https://api.github.com/users/gavinmcgimpsey/events{/privacy}","received_events_url":"https://api.github.com/users/gavinmcgimpsey/received_events","type":"User","site_admin":false},"created_at":"2015-11-27T19:13:27Z","updated_at":"2015-11-27T19:13:27Z","body":"Also getting this on El Capitan with 2.2.3\r\n\r\n```\r\ndyld: Symbol not found: _rb_str_new_static\r\n  Referenced from: /Users/gavin/.rvm/gems/ruby-2.2.3/gems/json-1.8.3/lib/json/ext/parser.bundle\r\n  Expected in: flat namespace\r\n\r\nTrace/BPT trap: 5\r\n```"}}