{"action":"created","issue":{"url":"https://api.github.com/repos/sparklemotion/nokogiri/issues/1370","labels_url":"https://api.github.com/repos/sparklemotion/nokogiri/issues/1370/labels{/name}","comments_url":"https://api.github.com/repos/sparklemotion/nokogiri/issues/1370/comments","events_url":"https://api.github.com/repos/sparklemotion/nokogiri/issues/1370/events","html_url":"https://github.com/sparklemotion/nokogiri/issues/1370","id":115517894,"number":1370,"title":"Nokogiri fails to build with latest ruby:2.2.3 docker image","user":{"login":"adrienkohlbecker","id":70469,"avatar_url":"https://avatars.githubusercontent.com/u/70469?v=3","gravatar_id":"","url":"https://api.github.com/users/adrienkohlbecker","html_url":"https://github.com/adrienkohlbecker","followers_url":"https://api.github.com/users/adrienkohlbecker/followers","following_url":"https://api.github.com/users/adrienkohlbecker/following{/other_user}","gists_url":"https://api.github.com/users/adrienkohlbecker/gists{/gist_id}","starred_url":"https://api.github.com/users/adrienkohlbecker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adrienkohlbecker/subscriptions","organizations_url":"https://api.github.com/users/adrienkohlbecker/orgs","repos_url":"https://api.github.com/users/adrienkohlbecker/repos","events_url":"https://api.github.com/users/adrienkohlbecker/events{/privacy}","received_events_url":"https://api.github.com/users/adrienkohlbecker/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-11-06T14:45:03Z","updated_at":"2015-11-11T15:26:47Z","closed_at":null,"body":"Hello,\r\n\r\nThe following command: `docker pull ruby:2.2.3 && docker run -t -i ruby:2.2.3 gem install nokogiri -v '1.6.6.2'` results in an error.\r\nThat was not the case a few days ago, so I suspect [this commit](https://github.com/docker-library/ruby/commit/74ee8aec9c17ea2134db8a8ef199cf092c829576) fro two days ago on the base image may be at fault, but I've not been able to confirm it.\r\n\r\nHere is the build log:\r\n\r\n```\r\n➜  ~  docker pull ruby:2.2.3 && docker run -t -i --rm ruby:2.2.3 gem install nokogiri -v '1.6.6.2'\r\nPulling repository docker.io/library/ruby\r\nf08537117c4d: Download complete\r\n575489a51992: Download complete\r\n6845b83c79fb: Download complete\r\nf9fffdafe16d: Download complete\r\nd63502d4fbd8: Download complete\r\na3d4ddaffb90: Download complete\r\ndf231b622270: Download complete\r\n3802d6035798: Download complete\r\nc314b7cf3e15: Download complete\r\ne9311cad9737: Download complete\r\n8825dcf66d36: Download complete\r\n34e5c4779386: Download complete\r\n3b178d645c21: Download complete\r\n177675c40a08: Download complete\r\ne553b9534450: Download complete\r\n2defd8698c56: Download complete\r\nfb515cf11884: Download complete\r\nStatus: Image is up to date for ruby:2.2.3\r\nFetching: mini_portile-0.6.2.gem (100%)\r\nSuccessfully installed mini_portile-0.6.2\r\nFetching: nokogiri-1.6.6.2.gem (100%)\r\nBuilding native extensions.  This could take a while...\r\nERROR:  Error installing nokogiri:\r\n\tERROR: Failed to build gem native extension.\r\n\r\n    current directory: /usr/local/bundle/gems/nokogiri-1.6.6.2/ext/nokogiri\r\n/usr/local/bin/ruby -r ./siteconf20151106-1-o83i7k.rb extconf.rb\r\nchecking if the C compiler accepts ... yes\r\nBuilding nokogiri using packaged libraries.\r\nchecking for gzdopen() in -lz... yes\r\nchecking for iconv... yes\r\n************************************************************************\r\nIMPORTANT NOTICE:\r\n\r\nBuilding Nokogiri with a packaged version of libxml2-2.9.2\r\nwith the following patches applied:\r\n\t- 0001-Revert-Missing-initialization-for-the-catalog-module.patch\r\n\t- 0002-Fix-missing-entities-after-CVE-2014-3660-fix.patch\r\n\r\nTeam Nokogiri will keep on doing their best to provide security\r\nupdates in a timely manner, but if this is a concern for you and want\r\nto use the system library instead; abort this installation process and\r\nreinstall nokogiri as follows:\r\n\r\n    gem install nokogiri -- --use-system-libraries\r\n        [--with-xml2-config=/path/to/xml2-config]\r\n        [--with-xslt-config=/path/to/xslt-config]\r\n\r\nIf you are using Bundler, tell it to use the option:\r\n\r\n    bundle config build.nokogiri --use-system-libraries\r\n    bundle install\r\n\r\nNote, however, that nokogiri is not fully compatible with arbitrary\r\nversions of libxml2 provided by OS/package vendors.\r\n************************************************************************\r\nExtracting libxml2-2.9.2.tar.gz into tmp/x86_64-pc-linux-gnu/ports/libxml2/2.9.2... OK\r\nRunning patch with /usr/local/bundle/gems/nokogiri-1.6.6.2/ports/patches/libxml2/0001-Revert-Missing-initialization-for-the-catalog-module.patch...\r\nRunning 'patch' for libxml2 2.9.2... OK\r\nRunning patch with /usr/local/bundle/gems/nokogiri-1.6.6.2/ports/patches/libxml2/0002-Fix-missing-entities-after-CVE-2014-3660-fix.patch...\r\nRunning 'patch' for libxml2 2.9.2... OK\r\nRunning 'configure' for libxml2 2.9.2... OK\r\nRunning 'compile' for libxml2 2.9.2... OK\r\nRunning 'install' for libxml2 2.9.2... OK\r\nActivating libxml2 2.9.2 (from /usr/local/bundle/gems/nokogiri-1.6.6.2/ports/x86_64-pc-linux-gnu/libxml2/2.9.2)...\r\n************************************************************************\r\nIMPORTANT NOTICE:\r\n\r\nBuilding Nokogiri with a packaged version of libxslt-1.1.28\r\nwith the following patches applied:\r\n\t- 0001-Adding-doc-update-related-to-1.1.28.patch\r\n\t- 0002-Fix-a-couple-of-places-where-f-printf-parameters-wer.patch\r\n\t- 0003-Initialize-pseudo-random-number-generator-with-curre.patch\r\n\t- 0004-EXSLT-function-str-replace-is-broken-as-is.patch\r\n\t- 0006-Fix-str-padding-to-work-with-UTF-8-strings.patch\r\n\t- 0007-Separate-function-for-predicate-matching-in-patterns.patch\r\n\t- 0008-Fix-direct-pattern-matching.patch\r\n\t- 0009-Fix-certain-patterns-with-predicates.patch\r\n\t- 0010-Fix-handling-of-UTF-8-strings-in-EXSLT-crypto-module.patch\r\n\t- 0013-Memory-leak-in-xsltCompileIdKeyPattern-error-path.patch\r\n\t- 0014-Fix-for-bug-436589.patch\r\n\t- 0015-Fix-mkdir-for-mingw.patch\r\n\r\nTeam Nokogiri will keep on doing their best to provide security\r\nupdates in a timely manner, but if this is a concern for you and want\r\nto use the system library instead; abort this installation process and\r\nreinstall nokogiri as follows:\r\n\r\n    gem install nokogiri -- --use-system-libraries\r\n        [--with-xml2-config=/path/to/xml2-config]\r\n        [--with-xslt-config=/path/to/xslt-config]\r\n\r\nIf you are using Bundler, tell it to use the option:\r\n\r\n    bundle config build.nokogiri --use-system-libraries\r\n    bundle install\r\n************************************************************************\r\nExtracting libxslt-1.1.28.tar.gz into tmp/x86_64-pc-linux-gnu/ports/libxslt/1.1.28... OK\r\nRunning patch with /usr/local/bundle/gems/nokogiri-1.6.6.2/ports/patches/libxslt/0001-Adding-doc-update-related-to-1.1.28.patch...\r\nRunning 'patch' for libxslt 1.1.28... OK\r\nRunning patch with /usr/local/bundle/gems/nokogiri-1.6.6.2/ports/patches/libxslt/0002-Fix-a-couple-of-places-where-f-printf-parameters-wer.patch...\r\nRunning 'patch' for libxslt 1.1.28... OK\r\nRunning patch with /usr/local/bundle/gems/nokogiri-1.6.6.2/ports/patches/libxslt/0003-Initialize-pseudo-random-number-generator-with-curre.patch...\r\nRunning 'patch' for libxslt 1.1.28... OK\r\nRunning patch with /usr/local/bundle/gems/nokogiri-1.6.6.2/ports/patches/libxslt/0004-EXSLT-function-str-replace-is-broken-as-is.patch...\r\nRunning 'patch' for libxslt 1.1.28... OK\r\nRunning patch with /usr/local/bundle/gems/nokogiri-1.6.6.2/ports/patches/libxslt/0006-Fix-str-padding-to-work-with-UTF-8-strings.patch...\r\nRunning 'patch' for libxslt 1.1.28... OK\r\nRunning patch with /usr/local/bundle/gems/nokogiri-1.6.6.2/ports/patches/libxslt/0007-Separate-function-for-predicate-matching-in-patterns.patch...\r\nRunning 'patch' for libxslt 1.1.28... OK\r\nRunning patch with /usr/local/bundle/gems/nokogiri-1.6.6.2/ports/patches/libxslt/0008-Fix-direct-pattern-matching.patch...\r\nRunning 'patch' for libxslt 1.1.28... OK\r\nRunning patch with /usr/local/bundle/gems/nokogiri-1.6.6.2/ports/patches/libxslt/0009-Fix-certain-patterns-with-predicates.patch...\r\nRunning 'patch' for libxslt 1.1.28... OK\r\nRunning patch with /usr/local/bundle/gems/nokogiri-1.6.6.2/ports/patches/libxslt/0010-Fix-handling-of-UTF-8-strings-in-EXSLT-crypto-module.patch...\r\nRunning 'patch' for libxslt 1.1.28... OK\r\nRunning patch with /usr/local/bundle/gems/nokogiri-1.6.6.2/ports/patches/libxslt/0013-Memory-leak-in-xsltCompileIdKeyPattern-error-path.patch...\r\nRunning 'patch' for libxslt 1.1.28... OK\r\nRunning patch with /usr/local/bundle/gems/nokogiri-1.6.6.2/ports/patches/libxslt/0014-Fix-for-bug-436589.patch...\r\nRunning 'patch' for libxslt 1.1.28... OK\r\nRunning patch with /usr/local/bundle/gems/nokogiri-1.6.6.2/ports/patches/libxslt/0015-Fix-mkdir-for-mingw.patch...\r\nRunning 'patch' for libxslt 1.1.28... OK\r\nRunning 'configure' for libxslt 1.1.28... OK\r\nRunning 'compile' for libxslt 1.1.28... OK\r\nRunning 'install' for libxslt 1.1.28... OK\r\nActivating libxslt 1.1.28 (from /usr/local/bundle/gems/nokogiri-1.6.6.2/ports/x86_64-pc-linux-gnu/libxslt/1.1.28)...\r\nchecking for main() in -llzma... yes\r\nchecking for xmlParseDoc() in libxml/parser.h... yes\r\nchecking for xsltParseStylesheetDoc() in libxslt/xslt.h... yes\r\nchecking for exsltFuncRegister() in libexslt/exslt.h... yes\r\nchecking for xmlHasFeature()... yes\r\nchecking for xmlFirstElementChild()... yes\r\nchecking for xmlRelaxNGSetParserStructuredErrors()... yes\r\nchecking for xmlRelaxNGSetParserStructuredErrors()... yes\r\nchecking for xmlRelaxNGSetValidStructuredErrors()... yes\r\nchecking for xmlSchemaSetValidStructuredErrors()... yes\r\nchecking for xmlSchemaSetParserStructuredErrors()... 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/bundle/extensions/x86_64-linux/2.2.0-static/nokogiri-1.6.6.2/mkmf.log\r\n\r\ncurrent directory: /usr/local/bundle/gems/nokogiri-1.6.6.2/ext/nokogiri\r\nmake \"DESTDIR=\" clean\r\n\r\ncurrent directory: /usr/local/bundle/gems/nokogiri-1.6.6.2/ext/nokogiri\r\nmake \"DESTDIR=\"\r\ncompiling xml_dtd.c\r\ncompiling xml_schema.c\r\ncompiling xml_attr.c\r\ncompiling xml_reader.c\r\ncompiling html_document.c\r\ncompiling xml_comment.c\r\ncompiling xml_encoding_handler.c\r\ncompiling xml_sax_parser_context.c\r\ncompiling xml_io.c\r\ncompiling xml_element_content.c\r\ncompiling xml_sax_parser.c\r\ncompiling xml_cdata.c\r\ncompiling xml_libxml2_hacks.c\r\ncompiling xml_node.c\r\nxml_node.c: In function 'reparent_node_with':\r\nxml_node.c:168:7: warning: enumeration value 'XML_ATTRIBUTE_NODE' not handled in switch [-Wswitch]\r\n       switch (reparentee->type) {\r\n       ^\r\nxml_node.c:168:7: warning: enumeration value 'XML_ENTITY_NODE' not handled in switch [-Wswitch]\r\nxml_node.c:168:7: warning: enumeration value 'XML_DOCUMENT_NODE' not handled in switch [-Wswitch]\r\nxml_node.c:168:7: warning: enumeration value 'XML_DOCUMENT_FRAG_NODE' not handled in switch [-Wswitch]\r\nxml_node.c:168:7: warning: enumeration value 'XML_NOTATION_NODE' not handled in switch [-Wswitch]\r\nxml_node.c:168:7: warning: enumeration value 'XML_HTML_DOCUMENT_NODE' not handled in switch [-Wswitch]\r\nxml_node.c:168:7: warning: enumeration value 'XML_DTD_NODE' not handled in switch [-Wswitch]\r\nxml_node.c:168:7: warning: enumeration value 'XML_ELEMENT_DECL' not handled in switch [-Wswitch]\r\nxml_node.c:168:7: warning: enumeration value 'XML_ATTRIBUTE_DECL' not handled in switch [-Wswitch]\r\nxml_node.c:168:7: warning: enumeration value 'XML_ENTITY_DECL' not handled in switch [-Wswitch]\r\nxml_node.c:168:7: warning: enumeration value 'XML_NAMESPACE_DECL' not handled in switch [-Wswitch]\r\nxml_node.c:168:7: warning: enumeration value 'XML_XINCLUDE_START' not handled in switch [-Wswitch]\r\nxml_node.c:168:7: warning: enumeration value 'XML_XINCLUDE_END' not handled in switch [-Wswitch]\r\nxml_node.c:168:7: warning: enumeration value 'XML_DOCB_DOCUMENT_NODE' not handled in switch [-Wswitch]\r\nxml_node.c:186:7: warning: enumeration value 'XML_ATTRIBUTE_NODE' not handled in switch [-Wswitch]\r\n       switch (reparentee->type) {\r\n       ^\r\nxml_node.c:186:7: warning: enumeration value 'XML_ENTITY_NODE' not handled in switch [-Wswitch]\r\nxml_node.c:186:7: warning: enumeration value 'XML_DOCUMENT_NODE' not handled in switch [-Wswitch]\r\nxml_node.c:186:7: warning: enumeration value 'XML_DOCUMENT_TYPE_NODE' not handled in switch [-Wswitch]\r\nxml_node.c:186:7: warning: enumeration value 'XML_DOCUMENT_FRAG_NODE' not handled in switch [-Wswitch]\r\nxml_node.c:186:7: warning: enumeration value 'XML_NOTATION_NODE' not handled in switch [-Wswitch]\r\nxml_node.c:186:7: warning: enumeration value 'XML_HTML_DOCUMENT_NODE' not handled in switch [-Wswitch]\r\nxml_node.c:186:7: warning: enumeration value 'XML_DTD_NODE' not handled in switch [-Wswitch]\r\nxml_node.c:186:7: warning: enumeration value 'XML_ELEMENT_DECL' not handled in switch [-Wswitch]\r\nxml_node.c:186:7: warning: enumeration value 'XML_ATTRIBUTE_DECL' not handled in switch [-Wswitch]\r\nxml_node.c:186:7: warning: enumeration value 'XML_ENTITY_DECL' not handled in switch [-Wswitch]\r\nxml_node.c:186:7: warning: enumeration value 'XML_NAMESPACE_DECL' not handled in switch [-Wswitch]\r\nxml_node.c:186:7: warning: enumeration value 'XML_XINCLUDE_START' not handled in switch [-Wswitch]\r\nxml_node.c:186:7: warning: enumeration value 'XML_XINCLUDE_END' not handled in switch [-Wswitch]\r\nxml_node.c:186:7: warning: enumeration value 'XML_DOCB_DOCUMENT_NODE' not handled in switch [-Wswitch]\r\nxml_node.c:197:7: warning: enumeration value 'XML_ELEMENT_NODE' not handled in switch [-Wswitch]\r\n       switch (reparentee->type) {\r\n       ^\r\nxml_node.c:197:7: warning: enumeration value 'XML_ATTRIBUTE_NODE' not handled in switch [-Wswitch]\r\nxml_node.c:197:7: warning: enumeration value 'XML_CDATA_SECTION_NODE' not handled in switch [-Wswitch]\r\nxml_node.c:197:7: warning: enumeration value 'XML_ENTITY_NODE' not handled in switch [-Wswitch]\r\nxml_node.c:197:7: warning: enumeration value 'XML_PI_NODE' not handled in switch [-Wswitch]\r\nxml_node.c:197:7: warning: enumeration value 'XML_COMMENT_NODE' not handled in switch [-Wswitch]\r\nxml_node.c:197:7: warning: enumeration value 'XML_DOCUMENT_NODE' not handled in switch [-Wswitch]\r\nxml_node.c:197:7: warning: enumeration value 'XML_DOCUMENT_TYPE_NODE' not handled in switch [-Wswitch]\r\nxml_node.c:197:7: warning: enumeration value 'XML_DOCUMENT_FRAG_NODE' not handled in switch [-Wswitch]\r\nxml_node.c:197:7: warning: enumeration value 'XML_NOTATION_NODE' not handled in switch [-Wswitch]\r\nxml_node.c:197:7: warning: enumeration value 'XML_HTML_DOCUMENT_NODE' not handled in switch [-Wswitch]\r\nxml_node.c:197:7: warning: enumeration value 'XML_DTD_NODE' not handled in switch [-Wswitch]\r\nxml_node.c:197:7: warning: enumeration value 'XML_ELEMENT_DECL' not handled in switch [-Wswitch]\r\nxml_node.c:197:7: warning: enumeration value 'XML_ATTRIBUTE_DECL' not handled in switch [-Wswitch]\r\nxml_node.c:197:7: warning: enumeration value 'XML_ENTITY_DECL' not handled in switch [-Wswitch]\r\nxml_node.c:197:7: warning: enumeration value 'XML_NAMESPACE_DECL' not handled in switch [-Wswitch]\r\nxml_node.c:197:7: warning: enumeration value 'XML_XINCLUDE_START' not handled in switch [-Wswitch]\r\nxml_node.c:197:7: warning: enumeration value 'XML_XINCLUDE_END' not handled in switch [-Wswitch]\r\nxml_node.c:197:7: warning: enumeration value 'XML_DOCB_DOCUMENT_NODE' not handled in switch [-Wswitch]\r\nxml_node.c:165:5: warning: enumeration value 'XML_CDATA_SECTION_NODE' not handled in switch [-Wswitch]\r\n     switch (parent->type) {\r\n     ^\r\nxml_node.c:165:5: warning: enumeration value 'XML_ENTITY_NODE' not handled in switch [-Wswitch]\r\nxml_node.c:165:5: warning: enumeration value 'XML_PI_NODE' not handled in switch [-Wswitch]\r\nxml_node.c:165:5: warning: enumeration value 'XML_COMMENT_NODE' not handled in switch [-Wswitch]\r\nxml_node.c:165:5: warning: enumeration value 'XML_DOCUMENT_TYPE_NODE' not handled in switch [-Wswitch]\r\nxml_node.c:165:5: warning: enumeration value 'XML_NOTATION_NODE' not handled in switch [-Wswitch]\r\nxml_node.c:165:5: warning: enumeration value 'XML_DTD_NODE' not handled in switch [-Wswitch]\r\nxml_node.c:165:5: warning: enumeration value 'XML_ELEMENT_DECL' not handled in switch [-Wswitch]\r\nxml_node.c:165:5: warning: enumeration value 'XML_ATTRIBUTE_DECL' not handled in switch [-Wswitch]\r\nxml_node.c:165:5: warning: enumeration value 'XML_ENTITY_DECL' not handled in switch [-Wswitch]\r\nxml_node.c:165:5: warning: enumeration value 'XML_NAMESPACE_DECL' not handled in switch [-Wswitch]\r\nxml_node.c:165:5: warning: enumeration value 'XML_XINCLUDE_START' not handled in switch [-Wswitch]\r\nxml_node.c:165:5: warning: enumeration value 'XML_XINCLUDE_END' not handled in switch [-Wswitch]\r\nxml_node.c:165:5: warning: enumeration value 'XML_DOCB_DOCUMENT_NODE' not handled in switch [-Wswitch]\r\ncompiling xml_node_set.c\r\nxml_node_set.c: In function 'dealloc_namespace':\r\nxml_node_set.c:9:13: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual]\r\n     xmlFree((xmlChar *)ns->href);\r\n             ^\r\nxml_node_set.c:11:13: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual]\r\n     xmlFree((xmlChar *)ns->prefix);\r\n             ^\r\ncompiling html_sax_parser_context.c\r\ncompiling xml_attribute_decl.c\r\ncompiling nokogiri.c\r\ncompiling xml_processing_instruction.c\r\ncompiling html_sax_push_parser.c\r\ncompiling xml_namespace.c\r\ncompiling xml_relax_ng.c\r\ncompiling html_entity_lookup.c\r\ncompiling xml_text.c\r\ncompiling xml_entity_reference.c\r\ncompiling xslt_stylesheet.c\r\nIn file included from /usr/local/include/ruby-2.2.0/ruby.h:33:0,\r\n                 from ./nokogiri.h:33,\r\n                 from ./xslt_stylesheet.h:4,\r\n                 from xslt_stylesheet.c:1:\r\nxslt_stylesheet.c: In function 'initFunc':\r\nxslt_stylesheet.c:217:21: warning: passing argument 1 of 'rb_data_object_get' makes integer from pointer without a cast\r\n     Data_Get_Struct(ctxt->style->_private, nokogiriXsltStylesheetTuple,\r\n                     ^\r\n/usr/local/include/ruby-2.2.0/ruby/ruby.h:1044:41: note: in definition of macro 'Data_Get_Struct'\r\n     ((sval) = (type*)rb_data_object_get(obj))\r\n                                         ^\r\n/usr/local/include/ruby-2.2.0/ruby/ruby.h:1189:1: note: expected 'VALUE' but argument is of type 'void *'\r\n rb_data_object_get(VALUE obj)\r\n ^\r\nxslt_stylesheet.c: In function 'shutdownFunc':\r\nxslt_stylesheet.c:230:21: warning: passing argument 1 of 'rb_data_object_get' makes integer from pointer without a cast\r\n     Data_Get_Struct(ctxt->style->_private, nokogiriXsltStylesheetTuple,\r\n                     ^\r\n/usr/local/include/ruby-2.2.0/ruby/ruby.h:1044:41: note: in definition of macro 'Data_Get_Struct'\r\n     ((sval) = (type*)rb_data_object_get(obj))\r\n                                         ^\r\n/usr/local/include/ruby-2.2.0/ruby/ruby.h:1189:1: note: expected 'VALUE' but argument is of type 'void *'\r\n rb_data_object_get(VALUE obj)\r\n ^\r\ncompiling xml_element_decl.c\r\ncompiling xml_document.c\r\nxml_document.c: In function 'set_encoding':\r\nxml_document.c:182:12: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual]\r\n       free((char *) doc->encoding); /* this may produce a gcc cast warning */\r\n            ^\r\nxml_document.c: In function 'canonicalize':\r\nxml_document.c:537:15: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual]\r\n       ns[i] = (xmlChar*) ptr;\r\n               ^\r\ncompiling xml_sax_push_parser.c\r\ncompiling xml_xpath_context.c\r\ncompiling xml_entity_decl.c\r\ncompiling xml_syntax_error.c\r\ncompiling html_element_description.c\r\nIn file included from /usr/local/include/ruby-2.2.0/ruby.h:33:0,\r\n                 from ./nokogiri.h:33,\r\n                 from ./html_element_description.h:4,\r\n                 from html_element_description.c:1:\r\nhtml_element_description.c: In function 'get_description':\r\nhtml_element_description.c:252:40: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual]\r\n   return Data_Wrap_Struct(klass, 0, 0, (void *)description);\r\n                                        ^\r\n/usr/local/include/ruby-2.2.0/ruby/ruby.h:1028:35: note: in definition of macro 'Data_Wrap_Struct'\r\n     rb_data_object_alloc((klass),(sval),(RUBY_DATA_FUNC)(mark),(RUBY_DATA_FUNC)(free))\r\n                                   ^\r\ncompiling xml_document_fragment.c\r\nlinking shared-object nokogiri/nokogiri.so\r\nCleaning files only used during build.\r\nrm -rf /usr/local/bundle/gems/nokogiri-1.6.6.2/ext/nokogiri/tmp/x86_64-pc-linux-gnu/ports\r\nrmdir -p /usr/local/bundle/gems/nokogiri-1.6.6.2/ext/nokogiri/tmp/x86_64-pc-linux-gnu\r\nrm -rf /usr/local/bundle/gems/nokogiri-1.6.6.2/ports\r\n\r\nNo such file or directory - getcwd\r\n\r\nGem files will remain installed in /usr/local/bundle/gems/nokogiri-1.6.6.2 for inspection.\r\nResults logged to /usr/local/bundle/extensions/x86_64-linux/2.2.0-static/nokogiri-1.6.6.2/gem_make.out\r\n```"},"comment":{"url":"https://api.github.com/repos/sparklemotion/nokogiri/issues/comments/155815652","html_url":"https://github.com/sparklemotion/nokogiri/issues/1370#issuecomment-155815652","issue_url":"https://api.github.com/repos/sparklemotion/nokogiri/issues/1370","id":155815652,"user":{"login":"allenwei","id":83094,"avatar_url":"https://avatars.githubusercontent.com/u/83094?v=3","gravatar_id":"","url":"https://api.github.com/users/allenwei","html_url":"https://github.com/allenwei","followers_url":"https://api.github.com/users/allenwei/followers","following_url":"https://api.github.com/users/allenwei/following{/other_user}","gists_url":"https://api.github.com/users/allenwei/gists{/gist_id}","starred_url":"https://api.github.com/users/allenwei/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/allenwei/subscriptions","organizations_url":"https://api.github.com/users/allenwei/orgs","repos_url":"https://api.github.com/users/allenwei/repos","events_url":"https://api.github.com/users/allenwei/events{/privacy}","received_events_url":"https://api.github.com/users/allenwei/received_events","type":"User","site_admin":false},"created_at":"2015-11-11T15:26:47Z","updated_at":"2015-11-11T15:26:47Z","body":"Can you try\r\n`docker pull ruby && docker run -t -i --rm ruby:2.2.3 gem update --system '2.4.8' && gem install nokogiri -v '1.6.6.2' `"}}