{"action":"opened","issue":{"url":"https://api.github.com/repos/sparklemotion/nokogiri/issues/1257","labels_url":"https://api.github.com/repos/sparklemotion/nokogiri/issues/1257/labels{/name}","comments_url":"https://api.github.com/repos/sparklemotion/nokogiri/issues/1257/comments","events_url":"https://api.github.com/repos/sparklemotion/nokogiri/issues/1257/events","html_url":"https://github.com/sparklemotion/nokogiri/issues/1257","id":60142118,"number":1257,"title":"Unrecognized command line option \"-Wdivision-by-zero\"","user":{"login":"Loremaster","id":1028215,"avatar_url":"https://avatars.githubusercontent.com/u/1028215?v=3","gravatar_id":"","url":"https://api.github.com/users/Loremaster","html_url":"https://github.com/Loremaster","followers_url":"https://api.github.com/users/Loremaster/followers","following_url":"https://api.github.com/users/Loremaster/following{/other_user}","gists_url":"https://api.github.com/users/Loremaster/gists{/gist_id}","starred_url":"https://api.github.com/users/Loremaster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Loremaster/subscriptions","organizations_url":"https://api.github.com/users/Loremaster/orgs","repos_url":"https://api.github.com/users/Loremaster/repos","events_url":"https://api.github.com/users/Loremaster/events{/privacy}","received_events_url":"https://api.github.com/users/Loremaster/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-03-06T18:49:55Z","updated_at":"2015-03-06T18:49:55Z","closed_at":null,"body":"Hello. \r\n\r\nI am trying to install nokogiri on my Machine (OS X 10.9.5) and I can't do it:\r\n\r\n```\r\n$ gem install nokogiri -v '1.6.6.2'\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    /Users/serj/.rvm/rubies/ruby-2.1.5/bin/ruby -r ./siteconf20150306-59108-18u4st4.rb extconf.rb\r\nchecking if the C compiler accepts ... yes\r\nchecking if the C compiler accepts -Wno-error=unused-command-line-argument-hard-error-in-future... no\r\nBuilding nokogiri using packaged libraries.\r\nchecking for gzdopen() in -lz... yes\r\nchecking for iconv using --with-opt-* flags... 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-apple-darwin13.4.0/ports/libxml2/2.9.2... OK\r\nRunning patch with /Users/serj/.rvm/gems/ruby-2.1.5@rosap_church_app/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 /Users/serj/.rvm/gems/ruby-2.1.5@rosap_church_app/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 /Users/serj/.rvm/gems/ruby-2.1.5@rosap_church_app/gems/nokogiri-1.6.6.2/ports/x86_64-apple-darwin13.4.0/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-apple-darwin13.4.0/ports/libxslt/1.1.28... OK\r\nRunning patch with /Users/serj/.rvm/gems/ruby-2.1.5@rosap_church_app/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 /Users/serj/.rvm/gems/ruby-2.1.5@rosap_church_app/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 /Users/serj/.rvm/gems/ruby-2.1.5@rosap_church_app/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 /Users/serj/.rvm/gems/ruby-2.1.5@rosap_church_app/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 /Users/serj/.rvm/gems/ruby-2.1.5@rosap_church_app/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 /Users/serj/.rvm/gems/ruby-2.1.5@rosap_church_app/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 /Users/serj/.rvm/gems/ruby-2.1.5@rosap_church_app/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 /Users/serj/.rvm/gems/ruby-2.1.5@rosap_church_app/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 /Users/serj/.rvm/gems/ruby-2.1.5@rosap_church_app/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 /Users/serj/.rvm/gems/ruby-2.1.5@rosap_church_app/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 /Users/serj/.rvm/gems/ruby-2.1.5@rosap_church_app/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 /Users/serj/.rvm/gems/ruby-2.1.5@rosap_church_app/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 /Users/serj/.rvm/gems/ruby-2.1.5@rosap_church_app/gems/nokogiri-1.6.6.2/ports/x86_64-apple-darwin13.4.0/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\nmake \"DESTDIR=\" clean\r\n\r\nmake \"DESTDIR=\"\r\ncompiling html_document.c\r\ncc1: error: unrecognized command line option \"-Wdivision-by-zero\"\r\nmake: *** [html_document.o] Error 1\r\n\r\nmake failed, exit code 2\r\n\r\nGem files will remain installed in /Users/serj/.rvm/gems/ruby-2.1.5@rosap_church_app/gems/nokogiri-1.6.6.2 for inspection.\r\nResults logged to /Users/serj/.rvm/gems/ruby-2.1.5@rosap_church_app/extensions/x86_64-darwin-13/2.1.0/nokogiri-1.6.6.2/gem_make.out\r\n```\r\n\r\nI tried to fix it by updating rubygems (`2.4.6` now) but with no luck. \r\n\r\nHere is also list of installed libs via homebrew in case it will be useful:\r\n\r\n```\r\n$ brew list\r\napple-gcc42\tcloog\t\tgcc\t\tgit\t\timagemagick\tjpeg\t\tlibksba\t\tlibtiff\t\tlittle-cms2\tmpfr\t\tossp-uuid\tpostgresql\tredis\t\ttorsocks\r\nautoconf\telasticsearch\tghc\t\tgmp\t\tisl\t\tlibevent\tlibmpc\t\tlibtool\t\tmemcached\tmysql\t\tphantomjs\tqt\t\tsphinx\t\twget\r\nautomake\tfreetype\tghostscript\tgraphviz\tjbig2dec\tlibgpg-error\tlibpng\t\tlibyaml\t\tmongodb\t\topenssl\t\tpkg-config\treadline\tsqlite\t\txz\r\n```\r\n\r\nPlease, help. I don't know how to fix that. :("}}