{"action":"created","issue":{"url":"https://api.github.com/repos/toland/patron/issues/109","repository_url":"https://api.github.com/repos/toland/patron","labels_url":"https://api.github.com/repos/toland/patron/issues/109/labels{/name}","comments_url":"https://api.github.com/repos/toland/patron/issues/109/comments","events_url":"https://api.github.com/repos/toland/patron/issues/109/events","html_url":"https://github.com/toland/patron/issues/109","id":147987759,"number":109,"title":"patron 0.6.0 fails to install with libcurl 7.19","user":{"login":"tricknotes","id":290782,"avatar_url":"https://avatars.githubusercontent.com/u/290782?v=3","gravatar_id":"","url":"https://api.github.com/users/tricknotes","html_url":"https://github.com/tricknotes","followers_url":"https://api.github.com/users/tricknotes/followers","following_url":"https://api.github.com/users/tricknotes/following{/other_user}","gists_url":"https://api.github.com/users/tricknotes/gists{/gist_id}","starred_url":"https://api.github.com/users/tricknotes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tricknotes/subscriptions","organizations_url":"https://api.github.com/users/tricknotes/orgs","repos_url":"https://api.github.com/users/tricknotes/repos","events_url":"https://api.github.com/users/tricknotes/events{/privacy}","received_events_url":"https://api.github.com/users/tricknotes/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-04-13T08:40:33Z","updated_at":"2016-04-14T10:11:53Z","closed_at":null,"body":"patron couldn't be built with older libcurl since this commit https://github.com/toland/patron/commit/405dc9f015c58e0d12496a7a988763aaa97cd14e .\r\n\r\n```\r\n$ gem install patron -v '0.6.0'\r\nBuilding native extensions.  This could take a while...\r\nERROR:  Error installing patron:\r\n\tERROR: Failed to build gem native extension.\r\n\r\n    current directory: /usr/local/rvm/gems/ruby-2.3.0/gems/patron-0.6.0/ext/patron\r\n/usr/local/rvm/rubies/ruby-2.3.0/bin/ruby -r ./siteconf20160413-18574-zgaw6i.rb extconf.rb\r\nchecking for curl-config... yes\r\nchecking for ruby/thread.h... yes\r\nchecking for rb_thread_blocking_region() in ruby.h... no\r\nchecking for ruby/thread.h... yes\r\nchecking for rb_thread_call_without_gvl() in ruby/thread.h... yes\r\ncreating Makefile\r\n\r\nTo see why this extension failed to compile, please check the mkmf.log which can be found here:\r\n\r\n  /usr/local/rvm/gems/ruby-2.3.0/extensions/x86_64-linux/2.3.0/patron-0.6.0/mkmf.log\r\n\r\ncurrent directory: /usr/local/rvm/gems/ruby-2.3.0/gems/patron-0.6.0/ext/patron\r\nmake \"DESTDIR=\" clean\r\n\r\ncurrent directory: /usr/local/rvm/gems/ruby-2.3.0/gems/patron-0.6.0/ext/patron\r\nmake \"DESTDIR=\"\r\ncompiling session_ext.c\r\nsession_ext.c: In function ‘session_alloc’:\r\nsession_ext.c:180: warning: ISO C forbids braced-groups within expressions\r\nsession_ext.c: In function ‘each_http_header’:\r\nsession_ext.c:269: warning: unused variable ‘curl’\r\nsession_ext.c: In function ‘set_options_from_request’:\r\nsession_ext.c:375: warning: ISO C90 forbids mixed declarations and code\r\nsession_ext.c:396: warning: ISO C90 forbids mixed declarations and code\r\nsession_ext.c:438:3: warning: C++ style comments are not allowed in ISO C90\r\nsession_ext.c:438:3: warning: (this will be reported only once per input file)\r\nsession_ext.c:464: error: ‘CURLOPT_ACCEPT_ENCODING’ undeclared (first use in this function)\r\nsession_ext.c:464: error: (Each undeclared identifier is reported only once\r\nsession_ext.c:464: error: for each function it appears in.)\r\nsession_ext.c:464: warning: type defaults to ‘int’ in declaration of ‘_curl_opt’\r\nmake: *** [session_ext.o] Error 1\r\n\r\nmake failed, exit code 2\r\n\r\nGem files will remain installed in /usr/local/rvm/gems/ruby-2.3.0/gems/patron-0.6.0 for inspection.\r\nResults logged to /usr/local/rvm/gems/ruby-2.3.0/extensions/x86_64-linux/2.3.0/patron-0.6.0/gem_make.out\r\n```\r\n\r\nThis problem is caused by the [`CURLOPT_ACCEPT_ENCODING`](https://curl.haxx.se/libcurl/c/CURLOPT_ACCEPT_ENCODING.html) variable. \r\n> This option was called CURLOPT_ENCODING before 7.21.6\r\n\r\nAre there any chance to work on older libcurl?"},"comment":{"url":"https://api.github.com/repos/toland/patron/issues/comments/209864408","html_url":"https://github.com/toland/patron/issues/109#issuecomment-209864408","issue_url":"https://api.github.com/repos/toland/patron/issues/109","id":209864408,"user":{"login":"julik","id":16446,"avatar_url":"https://avatars.githubusercontent.com/u/16446?v=3","gravatar_id":"","url":"https://api.github.com/users/julik","html_url":"https://github.com/julik","followers_url":"https://api.github.com/users/julik/followers","following_url":"https://api.github.com/users/julik/following{/other_user}","gists_url":"https://api.github.com/users/julik/gists{/gist_id}","starred_url":"https://api.github.com/users/julik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/julik/subscriptions","organizations_url":"https://api.github.com/users/julik/orgs","repos_url":"https://api.github.com/users/julik/repos","events_url":"https://api.github.com/users/julik/events{/privacy}","received_events_url":"https://api.github.com/users/julik/received_events","type":"User","site_admin":false},"created_at":"2016-04-14T10:11:53Z","updated_at":"2016-04-14T10:11:53Z","body":"Apparently your CURL version does not support CURLOPT_ACCEPT_ENCODING, which has been put in recently. I will place it under an ifdef guard"}}