sparklemotion / nokogiri

Nokogiri (鋸) makes it easy and painless to work with XML and HTML from Ruby.
https://nokogiri.org/
MIT License
6.14k stars 897 forks source link

gem install nokogiri failure -Wno-error=unused-command-line-argument-hard-error-in-future... no #1643

Closed clay-f closed 7 years ago

clay-f commented 7 years ago
Building native extensions.  This could take a while...
ERROR:  Error installing nokogiri:
    ERROR: Failed to build gem native extension.

    current directory: /Users/Who/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/nokogiri-1.7.2/ext/nokogiri
/Users/Who/.rbenv/versions/2.4.1/bin/ruby -r ./siteconf20170515-60986-1mfmfy8.rb extconf.rb
checking if the C compiler accepts ... yes
checking if the C compiler accepts -Wno-error=unused-command-line-argument-hard-error-in-future... no
Building nokogiri using packaged libraries.
Using mini_portile version 2.1.0
checking for iconv.h... yes
checking for gzdopen() in -lz... yes
checking for iconv... yes
************************************************************************
IMPORTANT NOTICE:

Building Nokogiri with a packaged version of libxml2-2.9.4
with the following patches applied:
    - 0001-Fix-comparison-with-root-node-in-xmlXPathCmpNodes.patch
    - 0002-Fix-XPointer-paths-beginning-with-range-to.patch
    - 0003-Disallow-namespace-nodes-in-XPointer-ranges.patch

Team Nokogiri will keep on doing their best to provide security
updates in a timely manner, but if this is a concern for you and want
to use the system library instead; abort this installation process and
reinstall nokogiri as follows:

    gem install nokogiri -- --use-system-libraries
        [--with-xml2-config=/path/to/xml2-config]
        [--with-xslt-config=/path/to/xslt-config]

If you are using Bundler, tell it to use the option:

    bundle config build.nokogiri --use-system-libraries
    bundle install

Note, however, that nokogiri is not fully compatible with arbitrary
versions of libxml2 provided by OS/package vendors.
************************************************************************
Extracting libxml2-2.9.4.tar.gz into tmp/x86_64-apple-darwin16.5.0/ports/libxml2/2.9.4... OK
Running git apply with /Users/Who/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/nokogiri-1.7.2/patches/libxml2/0001-Fix-comparison-with-root-node-in-xmlXPathCmpNodes.patch... OK
Running git apply with /Users/Who/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/nokogiri-1.7.2/patches/libxml2/0002-Fix-XPointer-paths-beginning-with-range-to.patch... OK
Running git apply with /Users/Who/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/nokogiri-1.7.2/patches/libxml2/0003-Disallow-namespace-nodes-in-XPointer-ranges.patch... OK
Running 'configure' for libxml2 2.9.4... OK
Running 'compile' for libxml2 2.9.4... OK
Running 'install' for libxml2 2.9.4... OK
Activating libxml2 2.9.4 (from /Users/Who/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/nokogiri-1.7.2/ports/x86_64-apple-darwin16.5.0/libxml2/2.9.4)...
************************************************************************
IMPORTANT NOTICE:

Building Nokogiri with a packaged version of libxslt-1.1.29
with the following patches applied:
    - 0001-Fix-heap-overread-in-xsltFormatNumberConversion.patch
    - 0002-Check-for-integer-overflow-in-xsltAddTextString.patch

Team Nokogiri will keep on doing their best to provide security
updates in a timely manner, but if this is a concern for you and want
to use the system library instead; abort this installation process and
reinstall nokogiri as follows:

    gem install nokogiri -- --use-system-libraries
        [--with-xml2-config=/path/to/xml2-config]
        [--with-xslt-config=/path/to/xslt-config]

If you are using Bundler, tell it to use the option:

    bundle config build.nokogiri --use-system-libraries
    bundle install
************************************************************************
Extracting libxslt-1.1.29.tar.gz into tmp/x86_64-apple-darwin16.5.0/ports/libxslt/1.1.29... OK
Running git apply with /Users/Who/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/nokogiri-1.7.2/patches/libxslt/0001-Fix-heap-overread-in-xsltFormatNumberConversion.patch... OK
Running git apply with /Users/Who/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/nokogiri-1.7.2/patches/libxslt/0002-Check-for-integer-overflow-in-xsltAddTextString.patch... OK
Running 'configure' for libxslt 1.1.29... OK
Running 'compile' for libxslt 1.1.29... OK
Running 'install' for libxslt 1.1.29... OK
Activating libxslt 1.1.29 (from /Users/Who/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/nokogiri-1.7.2/ports/x86_64-apple-darwin16.5.0/libxslt/1.1.29)...
checking for -llzma... yes
checking for xmlParseDoc() in libxml/parser.h... yes
checking for xsltParseStylesheetDoc() in libxslt/xslt.h... yes
checking for exsltFuncRegister() in libexslt/exslt.h... yes
checking for xmlHasFeature()... yes
checking for xmlFirstElementChild()... yes
checking for xmlRelaxNGSetParserStructuredErrors()... yes
checking for xmlRelaxNGSetParserStructuredErrors()... yes
checking for xmlRelaxNGSetValidStructuredErrors()... yes
checking for xmlSchemaSetValidStructuredErrors()... yes
checking for xmlSchemaSetParserStructuredErrors()... yes
creating Makefile

current directory: /Users/Who/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/nokogiri-1.7.2/ext/nokogiri
make "DESTDIR=" clean

current directory: /Users/Who/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/nokogiri-1.7.2/ext/nokogiri
make "DESTDIR="
compiling html_document.c
In file included from html_document.c:1:
In file included from ./html_document.h:4:
./nokogiri.h:39:11: warning: 'MAYBE_UNUSED' macro redefined [-Wmacro-redefined]
#  define MAYBE_UNUSED(name) name __attribute__((unused))
          ^
/Users/Who/.rbenv/versions/2.4.1/include/ruby-2.4.0/x86_64-darwin16/ruby/config.h:131:9: note: previous definition is here
#define MAYBE_UNUSED(x) __attribute__ ((__unused__)) x
        ^
1 warning generated.
compiling html_element_description.c
In file included from html_element_description.c:1:
In file included from ./html_element_description.h:4:
./nokogiri.h:39:11: warning: 'MAYBE_UNUSED' macro redefined [-Wmacro-redefined]
#  define MAYBE_UNUSED(name) name __attribute__((unused))
          ^
/Users/Who/.rbenv/versions/2.4.1/include/ruby-2.4.0/x86_64-darwin16/ruby/config.h:131:9: note: previous definition is here
#define MAYBE_UNUSED(x) __attribute__ ((__unused__)) x
        ^
1 warning generated.
compiling html_entity_lookup.c
In file included from html_entity_lookup.c:1:
In file included from ./html_entity_lookup.h:4:
./nokogiri.h:39:11: warning: 'MAYBE_UNUSED' macro redefined [-Wmacro-redefined]
#  define MAYBE_UNUSED(name) name __attribute__((unused))
          ^
/Users/Who/.rbenv/versions/2.4.1/include/ruby-2.4.0/x86_64-darwin16/ruby/config.h:131:9: note: previous definition is here
#define MAYBE_UNUSED(x) __attribute__ ((__unused__)) x
        ^
1 warning generated.
compiling html_sax_parser_context.c
In file included from html_sax_parser_context.c:1:
In file included from ./html_sax_parser_context.h:4:
./nokogiri.h:39:11: warning: 'MAYBE_UNUSED' macro redefined [-Wmacro-redefined]
#  define MAYBE_UNUSED(name) name __attribute__((unused))
          ^
/Users/Who/.rbenv/versions/2.4.1/include/ruby-2.4.0/x86_64-darwin16/ruby/config.h:131:9: note: previous definition is here
#define MAYBE_UNUSED(x) __attribute__ ((__unused__)) x
        ^
1 warning generated.
compiling html_sax_push_parser.c
In file included from html_sax_push_parser.c:1:
In file included from ./html_sax_push_parser.h:4:
./nokogiri.h:39:11: warning: 'MAYBE_UNUSED' macro redefined [-Wmacro-redefined]
#  define MAYBE_UNUSED(name) name __attribute__((unused))
          ^
/Users/Who/.rbenv/versions/2.4.1/include/ruby-2.4.0/x86_64-darwin16/ruby/config.h:131:9: note: previous definition is here
#define MAYBE_UNUSED(x) __attribute__ ((__unused__)) x
        ^
1 warning generated.
compiling nokogiri.c
In file included from nokogiri.c:1:
./nokogiri.h:39:11: warning: 'MAYBE_UNUSED' macro redefined [-Wmacro-redefined]
#  define MAYBE_UNUSED(name) name __attribute__((unused))
          ^
/Users/Who/.rbenv/versions/2.4.1/include/ruby-2.4.0/x86_64-darwin16/ruby/config.h:131:9: note: previous definition is here
#define MAYBE_UNUSED(x) __attribute__ ((__unused__)) x
        ^
1 warning generated.
compiling xml_attr.c
In file included from xml_attr.c:1:
In file included from ./xml_attr.h:4:
./nokogiri.h:39:11: warning: 'MAYBE_UNUSED' macro redefined [-Wmacro-redefined]
#  define MAYBE_UNUSED(name) name __attribute__((unused))
          ^
/Users/Who/.rbenv/versions/2.4.1/include/ruby-2.4.0/x86_64-darwin16/ruby/config.h:131:9: note: previous definition is here
#define MAYBE_UNUSED(x) __attribute__ ((__unused__)) x
        ^
1 warning generated.
compiling xml_attribute_decl.c
In file included from xml_attribute_decl.c:1:
In file included from ./xml_attribute_decl.h:4:
./nokogiri.h:39:11: warning: 'MAYBE_UNUSED' macro redefined [-Wmacro-redefined]
#  define MAYBE_UNUSED(name) name __attribute__((unused))
          ^
/Users/Who/.rbenv/versions/2.4.1/include/ruby-2.4.0/x86_64-darwin16/ruby/config.h:131:9: note: previous definition is here
#define MAYBE_UNUSED(x) __attribute__ ((__unused__)) x
        ^
1 warning generated.
compiling xml_cdata.c
In file included from xml_cdata.c:1:
In file included from ./xml_cdata.h:4:
./nokogiri.h:39:11: warning: 'MAYBE_UNUSED' macro redefined [-Wmacro-redefined]
#  define MAYBE_UNUSED(name) name __attribute__((unused))
          ^
/Users/Who/.rbenv/versions/2.4.1/include/ruby-2.4.0/x86_64-darwin16/ruby/config.h:131:9: note: previous definition is here
#define MAYBE_UNUSED(x) __attribute__ ((__unused__)) x
        ^
1 warning generated.
compiling xml_comment.c
In file included from xml_comment.c:1:
In file included from ./xml_comment.h:4:
./nokogiri.h:39:11: warning: 'MAYBE_UNUSED' macro redefined [-Wmacro-redefined]
#  define MAYBE_UNUSED(name) name __attribute__((unused))
          ^
/Users/Who/.rbenv/versions/2.4.1/include/ruby-2.4.0/x86_64-darwin16/ruby/config.h:131:9: note: previous definition is here
#define MAYBE_UNUSED(x) __attribute__ ((__unused__)) x
        ^
1 warning generated.
compiling xml_document.c
In file included from xml_document.c:1:
In file included from ./xml_document.h:4:
./nokogiri.h:39:11: warning: 'MAYBE_UNUSED' macro redefined [-Wmacro-redefined]
#  define MAYBE_UNUSED(name) name __attribute__((unused))
          ^
/Users/Who/.rbenv/versions/2.4.1/include/ruby-2.4.0/x86_64-darwin16/ruby/config.h:131:9: note: previous definition is here
#define MAYBE_UNUSED(x) __attribute__ ((__unused__)) x
        ^
1 warning generated.
compiling xml_document_fragment.c
In file included from xml_document_fragment.c:1:
In file included from ./xml_document_fragment.h:4:
./nokogiri.h:39:11: warning: 'MAYBE_UNUSED' macro redefined [-Wmacro-redefined]
#  define MAYBE_UNUSED(name) name __attribute__((unused))
          ^
/Users/Who/.rbenv/versions/2.4.1/include/ruby-2.4.0/x86_64-darwin16/ruby/config.h:131:9: note: previous definition is here
#define MAYBE_UNUSED(x) __attribute__ ((__unused__)) x
        ^
1 warning generated.
compiling xml_dtd.c
In file included from xml_dtd.c:1:
In file included from ./xml_dtd.h:4:
./nokogiri.h:39:11: warning: 'MAYBE_UNUSED' macro redefined [-Wmacro-redefined]
#  define MAYBE_UNUSED(name) name __attribute__((unused))
          ^
/Users/Who/.rbenv/versions/2.4.1/include/ruby-2.4.0/x86_64-darwin16/ruby/config.h:131:9: note: previous definition is here
#define MAYBE_UNUSED(x) __attribute__ ((__unused__)) x
        ^
1 warning generated.
compiling xml_element_content.c
In file included from xml_element_content.c:1:
In file included from ./xml_element_content.h:4:
./nokogiri.h:39:11: warning: 'MAYBE_UNUSED' macro redefined [-Wmacro-redefined]
#  define MAYBE_UNUSED(name) name __attribute__((unused))
          ^
/Users/Who/.rbenv/versions/2.4.1/include/ruby-2.4.0/x86_64-darwin16/ruby/config.h:131:9: note: previous definition is here
#define MAYBE_UNUSED(x) __attribute__ ((__unused__)) x
        ^
1 warning generated.
compiling xml_element_decl.c
In file included from xml_element_decl.c:1:
In file included from ./xml_element_decl.h:4:
./nokogiri.h:39:11: warning: 'MAYBE_UNUSED' macro redefined [-Wmacro-redefined]
#  define MAYBE_UNUSED(name) name __attribute__((unused))
          ^
/Users/Who/.rbenv/versions/2.4.1/include/ruby-2.4.0/x86_64-darwin16/ruby/config.h:131:9: note: previous definition is here
#define MAYBE_UNUSED(x) __attribute__ ((__unused__)) x
        ^
1 warning generated.
compiling xml_encoding_handler.c
In file included from xml_encoding_handler.c:1:
In file included from ./xml_encoding_handler.h:4:
./nokogiri.h:39:11: warning: 'MAYBE_UNUSED' macro redefined [-Wmacro-redefined]
#  define MAYBE_UNUSED(name) name __attribute__((unused))
          ^
/Users/Who/.rbenv/versions/2.4.1/include/ruby-2.4.0/x86_64-darwin16/ruby/config.h:131:9: note: previous definition is here
#define MAYBE_UNUSED(x) __attribute__ ((__unused__)) x
        ^
1 warning generated.
compiling xml_entity_decl.c
In file included from xml_entity_decl.c:1:
In file included from ./xml_entity_decl.h:4:
./nokogiri.h:39:11: warning: 'MAYBE_UNUSED' macro redefined [-Wmacro-redefined]
#  define MAYBE_UNUSED(name) name __attribute__((unused))
          ^
/Users/Who/.rbenv/versions/2.4.1/include/ruby-2.4.0/x86_64-darwin16/ruby/config.h:131:9: note: previous definition is here
#define MAYBE_UNUSED(x) __attribute__ ((__unused__)) x
        ^
1 warning generated.
compiling xml_entity_reference.c
In file included from xml_entity_reference.c:1:
In file included from ./xml_entity_reference.h:4:
./nokogiri.h:39:11: warning: 'MAYBE_UNUSED' macro redefined [-Wmacro-redefined]
#  define MAYBE_UNUSED(name) name __attribute__((unused))
          ^
/Users/Who/.rbenv/versions/2.4.1/include/ruby-2.4.0/x86_64-darwin16/ruby/config.h:131:9: note: previous definition is here
#define MAYBE_UNUSED(x) __attribute__ ((__unused__)) x
        ^
1 warning generated.
compiling xml_io.c
In file included from xml_io.c:1:
In file included from ./xml_io.h:4:
./nokogiri.h:39:11: warning: 'MAYBE_UNUSED' macro redefined [-Wmacro-redefined]
#  define MAYBE_UNUSED(name) name __attribute__((unused))
          ^
/Users/Who/.rbenv/versions/2.4.1/include/ruby-2.4.0/x86_64-darwin16/ruby/config.h:131:9: note: previous definition is here
#define MAYBE_UNUSED(x) __attribute__ ((__unused__)) x
        ^
1 warning generated.
compiling xml_libxml2_hacks.c
compiling xml_namespace.c
In file included from xml_namespace.c:1:
In file included from ./xml_namespace.h:4:
./nokogiri.h:39:11: warning: 'MAYBE_UNUSED' macro redefined [-Wmacro-redefined]
#  define MAYBE_UNUSED(name) name __attribute__((unused))
          ^
/Users/Who/.rbenv/versions/2.4.1/include/ruby-2.4.0/x86_64-darwin16/ruby/config.h:131:9: note: previous definition is here
#define MAYBE_UNUSED(x) __attribute__ ((__unused__)) x
        ^
xml_namespace.c:67:49: warning: incompatible pointer types passing 'struct _xmlNs *' to parameter of type 'xmlNodePtr' (aka 'struct _xmlNode *') [-Wincompatible-pointer-types]
  return (node->next && ! Nokogiri_namespace_eh(node->next));
                                                ^~~~~~~~~~
xml_namespace.c:27:38: note: passing argument to parameter 'node' here
int Nokogiri_namespace_eh(xmlNodePtr node)
                                     ^
2 warnings generated.
compiling xml_node.c
In file included from xml_node.c:1:
In file included from ./xml_node.h:4:
./nokogiri.h:39:11: warning: 'MAYBE_UNUSED' macro redefined [-Wmacro-redefined]
#  define MAYBE_UNUSED(name) name __attribute__((unused))
          ^
/Users/Who/.rbenv/versions/2.4.1/include/ruby-2.4.0/x86_64-darwin16/ruby/config.h:131:9: note: previous definition is here
#define MAYBE_UNUSED(x) __attribute__ ((__unused__)) x
        ^
xml_node.c:170:15: warning: 14 enumeration values not handled in switch: 'XML_ATTRIBUTE_NODE', 'XML_ENTITY_NODE', 'XML_DOCUMENT_NODE'... [-Wswitch]
      switch (reparentee->type) {
              ^
xml_node.c:188:15: warning: 15 enumeration values not handled in switch: 'XML_ATTRIBUTE_NODE', 'XML_ENTITY_NODE', 'XML_DOCUMENT_NODE'... [-Wswitch]
      switch (reparentee->type) {
              ^
xml_node.c:199:15: warning: 19 enumeration values not handled in switch: 'XML_ELEMENT_NODE', 'XML_ATTRIBUTE_NODE', 'XML_CDATA_SECTION_NODE'... [-Wswitch]
      switch (reparentee->type) {
              ^
xml_node.c:167:13: warning: 14 enumeration values not handled in switch: 'XML_CDATA_SECTION_NODE', 'XML_ENTITY_NODE', 'XML_PI_NODE'... [-Wswitch]
    switch (parent->type) {
            ^
5 warnings generated.
compiling xml_node_set.c
In file included from xml_node_set.c:1:
In file included from ./xml_node_set.h:4:
./nokogiri.h:39:11: warning: 'MAYBE_UNUSED' macro redefined [-Wmacro-redefined]
#  define MAYBE_UNUSED(name) name __attribute__((unused))
          ^
/Users/Who/.rbenv/versions/2.4.1/include/ruby-2.4.0/x86_64-darwin16/ruby/config.h:131:9: note: previous definition is here
#define MAYBE_UNUSED(x) __attribute__ ((__unused__)) x
        ^
1 warning generated.
compiling xml_processing_instruction.c
In file included from xml_processing_instruction.c:1:
In file included from ./xml_processing_instruction.h:4:
./nokogiri.h:39:11: warning: 'MAYBE_UNUSED' macro redefined [-Wmacro-redefined]
#  define MAYBE_UNUSED(name) name __attribute__((unused))
          ^
/Users/Who/.rbenv/versions/2.4.1/include/ruby-2.4.0/x86_64-darwin16/ruby/config.h:131:9: note: previous definition is here
#define MAYBE_UNUSED(x) __attribute__ ((__unused__)) x
        ^
1 warning generated.
compiling xml_reader.c
In file included from xml_reader.c:1:
In file included from ./xml_reader.h:4:
./nokogiri.h:39:11: warning: 'MAYBE_UNUSED' macro redefined [-Wmacro-redefined]
#  define MAYBE_UNUSED(name) name __attribute__((unused))
          ^
/Users/Who/.rbenv/versions/2.4.1/include/ruby-2.4.0/x86_64-darwin16/ruby/config.h:131:9: note: previous definition is here
#define MAYBE_UNUSED(x) __attribute__ ((__unused__)) x
        ^
1 warning generated.
compiling xml_relax_ng.c
In file included from xml_relax_ng.c:1:
In file included from ./xml_relax_ng.h:4:
./nokogiri.h:39:11: warning: 'MAYBE_UNUSED' macro redefined [-Wmacro-redefined]
#  define MAYBE_UNUSED(name) name __attribute__((unused))
          ^
/Users/Who/.rbenv/versions/2.4.1/include/ruby-2.4.0/x86_64-darwin16/ruby/config.h:131:9: note: previous definition is here
#define MAYBE_UNUSED(x) __attribute__ ((__unused__)) x
        ^
1 warning generated.
compiling xml_sax_parser.c
In file included from xml_sax_parser.c:1:
In file included from ./xml_sax_parser.h:4:
./nokogiri.h:39:11: warning: 'MAYBE_UNUSED' macro redefined [-Wmacro-redefined]
#  define MAYBE_UNUSED(name) name __attribute__((unused))
          ^
/Users/Who/.rbenv/versions/2.4.1/include/ruby-2.4.0/x86_64-darwin16/ruby/config.h:131:9: note: previous definition is here
#define MAYBE_UNUSED(x) __attribute__ ((__unused__)) x
        ^
1 warning generated.
compiling xml_sax_parser_context.c
In file included from xml_sax_parser_context.c:1:
In file included from ./xml_sax_parser_context.h:4:
./nokogiri.h:39:11: warning: 'MAYBE_UNUSED' macro redefined [-Wmacro-redefined]
#  define MAYBE_UNUSED(name) name __attribute__((unused))
          ^
/Users/Who/.rbenv/versions/2.4.1/include/ruby-2.4.0/x86_64-darwin16/ruby/config.h:131:9: note: previous definition is here
#define MAYBE_UNUSED(x) __attribute__ ((__unused__)) x
        ^
1 warning generated.
compiling xml_sax_push_parser.c
In file included from xml_sax_push_parser.c:1:
In file included from ./xml_sax_push_parser.h:4:
./nokogiri.h:39:11: warning: 'MAYBE_UNUSED' macro redefined [-Wmacro-redefined]
#  define MAYBE_UNUSED(name) name __attribute__((unused))
          ^
/Users/Who/.rbenv/versions/2.4.1/include/ruby-2.4.0/x86_64-darwin16/ruby/config.h:131:9: note: previous definition is here
#define MAYBE_UNUSED(x) __attribute__ ((__unused__)) x
        ^
1 warning generated.
compiling xml_schema.c
In file included from xml_schema.c:1:
In file included from ./xml_schema.h:4:
./nokogiri.h:39:11: warning: 'MAYBE_UNUSED' macro redefined [-Wmacro-redefined]
#  define MAYBE_UNUSED(name) name __attribute__((unused))
          ^
/Users/Who/.rbenv/versions/2.4.1/include/ruby-2.4.0/x86_64-darwin16/ruby/config.h:131:9: note: previous definition is here
#define MAYBE_UNUSED(x) __attribute__ ((__unused__)) x
        ^
1 warning generated.
compiling xml_syntax_error.c
In file included from xml_syntax_error.c:1:
In file included from ./xml_syntax_error.h:4:
./nokogiri.h:39:11: warning: 'MAYBE_UNUSED' macro redefined [-Wmacro-redefined]
#  define MAYBE_UNUSED(name) name __attribute__((unused))
          ^
/Users/Who/.rbenv/versions/2.4.1/include/ruby-2.4.0/x86_64-darwin16/ruby/config.h:131:9: note: previous definition is here
#define MAYBE_UNUSED(x) __attribute__ ((__unused__)) x
        ^
1 warning generated.
compiling xml_text.c
In file included from xml_text.c:1:
In file included from ./xml_text.h:4:
./nokogiri.h:39:11: warning: 'MAYBE_UNUSED' macro redefined [-Wmacro-redefined]
#  define MAYBE_UNUSED(name) name __attribute__((unused))
          ^
/Users/Who/.rbenv/versions/2.4.1/include/ruby-2.4.0/x86_64-darwin16/ruby/config.h:131:9: note: previous definition is here
#define MAYBE_UNUSED(x) __attribute__ ((__unused__)) x
        ^
1 warning generated.
compiling xml_xpath_context.c
In file included from xml_xpath_context.c:1:
In file included from ./xml_xpath_context.h:4:
./nokogiri.h:39:11: warning: 'MAYBE_UNUSED' macro redefined [-Wmacro-redefined]
#  define MAYBE_UNUSED(name) name __attribute__((unused))
          ^
/Users/Who/.rbenv/versions/2.4.1/include/ruby-2.4.0/x86_64-darwin16/ruby/config.h:131:9: note: previous definition is here
#define MAYBE_UNUSED(x) __attribute__ ((__unused__)) x
        ^
1 warning generated.
compiling xslt_stylesheet.c
In file included from xslt_stylesheet.c:1:
In file included from ./xslt_stylesheet.h:4:
./nokogiri.h:39:11: warning: 'MAYBE_UNUSED' macro redefined [-Wmacro-redefined]
#  define MAYBE_UNUSED(name) name __attribute__((unused))
          ^
/Users/Who/.rbenv/versions/2.4.1/include/ruby-2.4.0/x86_64-darwin16/ruby/config.h:131:9: note: previous definition is here
#define MAYBE_UNUSED(x) __attribute__ ((__unused__)) x
        ^
xslt_stylesheet.c:217:21: warning: incompatible pointer to integer conversion passing 'void *' to parameter of type 'VALUE' (aka 'unsigned long') [-Wint-conversion]
    Data_Get_Struct(ctxt->style->_private, nokogiriXsltStylesheetTuple,
                    ^~~~~~~~~~~~~~~~~~~~~
/Users/Who/.rbenv/versions/2.4.1/include/ruby-2.4.0/ruby/ruby.h:1188:41: note: expanded from macro 'Data_Get_Struct'
    ((sval) = (type*)rb_data_object_get(obj))
                                        ^~~
/Users/Who/.rbenv/versions/2.4.1/include/ruby-2.4.0/ruby/ruby.h:1352:26: note: passing argument to parameter 'obj' here
rb_data_object_get(VALUE obj)
                         ^
xslt_stylesheet.c:230:21: warning: incompatible pointer to integer conversion passing 'void *' to parameter of type 'VALUE' (aka 'unsigned long') [-Wint-conversion]
    Data_Get_Struct(ctxt->style->_private, nokogiriXsltStylesheetTuple,
                    ^~~~~~~~~~~~~~~~~~~~~
/Users/Who/.rbenv/versions/2.4.1/include/ruby-2.4.0/ruby/ruby.h:1188:41: note: expanded from macro 'Data_Get_Struct'
    ((sval) = (type*)rb_data_object_get(obj))
                                        ^~~
/Users/Who/.rbenv/versions/2.4.1/include/ruby-2.4.0/ruby/ruby.h:1352:26: note: passing argument to parameter 'obj' here
rb_data_object_get(VALUE obj)
                         ^
3 warnings generated.
linking shared-object nokogiri/nokogiri.bundle
Cleaning files only used during build.
rm -rf /Users/Who/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/nokogiri-1.7.2/ext/nokogiri/tmp/x86_64-apple-darwin16.5.0/ports
rm -rf /Users/Who/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/nokogiri-1.7.2/ports

current directory: /Users/Who/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/nokogiri-1.7.2/ext/nokogiri
make "DESTDIR=" install
make: /usr/local/bin/gmkdir: No such file or directory
make: *** [.sitearchdir.-.nokogiri.time] Error 1

make install failed, exit code 2

Gem files will remain installed in /Users/Who/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/nokogiri-1.7.2 for inspection.
Results logged to /Users/Who/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/extensions/x86_64-darwin-16/2.4.0-static/nokogiri-1.7.2/gem_make.out

i have tried gem install nokogiri -- --use-system-libraries

show same info

and then bundle config build.nokogiri --use-system-libraries gem install nokogiri

Building native extensions.  This could take a while...
ERROR:  Error installing nokogiri:
    ERROR: Failed to build gem native extension.

    current directory: /Users/Who/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/nokogiri-1.7.2/ext/nokogiri
/Users/Who/.rbenv/versions/2.4.1/bin/ruby -r ./siteconf20170515-80363-52sugn.rb extconf.rb
checking if the C compiler accepts ... yes
checking if the C compiler accepts -Wno-error=unused-command-line-argument-hard-error-in-future... no
Building nokogiri using packaged libraries.
Using mini_portile version 2.1.0
checking for iconv.h... yes
checking for gzdopen() in -lz... yes
checking for iconv... yes
************************************************************************
IMPORTANT NOTICE:

Building Nokogiri with a packaged version of libxml2-2.9.4
with the following patches applied:
    - 0001-Fix-comparison-with-root-node-in-xmlXPathCmpNodes.patch
    - 0002-Fix-XPointer-paths-beginning-with-range-to.patch
    - 0003-Disallow-namespace-nodes-in-XPointer-ranges.patch

Team Nokogiri will keep on doing their best to provide security
updates in a timely manner, but if this is a concern for you and want
to use the system library instead; abort this installation process and
reinstall nokogiri as follows:

    gem install nokogiri -- --use-system-libraries
        [--with-xml2-config=/path/to/xml2-config]
        [--with-xslt-config=/path/to/xslt-config]

If you are using Bundler, tell it to use the option:

    bundle config build.nokogiri --use-system-libraries
    bundle install

Note, however, that nokogiri is not fully compatible with arbitrary
versions of libxml2 provided by OS/package vendors.
************************************************************************
Extracting libxml2-2.9.4.tar.gz into tmp/x86_64-apple-darwin16.5.0/ports/libxml2/2.9.4... OK
Running git apply with /Users/Who/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/nokogiri-1.7.2/patches/libxml2/0001-Fix-comparison-with-root-node-in-xmlXPathCmpNodes.patch... OK
Running git apply with /Users/Who/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/nokogiri-1.7.2/patches/libxml2/0002-Fix-XPointer-paths-beginning-with-range-to.patch... OK
Running git apply with /Users/Who/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/nokogiri-1.7.2/patches/libxml2/0003-Disallow-namespace-nodes-in-XPointer-ranges.patch... OK
Running 'configure' for libxml2 2.9.4... OK
Running 'compile' for libxml2 2.9.4... OK
Running 'install' for libxml2 2.9.4... OK
Activating libxml2 2.9.4 (from /Users/Who/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/nokogiri-1.7.2/ports/x86_64-apple-darwin16.5.0/libxml2/2.9.4)...
************************************************************************
IMPORTANT NOTICE:

Building Nokogiri with a packaged version of libxslt-1.1.29
with the following patches applied:
    - 0001-Fix-heap-overread-in-xsltFormatNumberConversion.patch
    - 0002-Check-for-integer-overflow-in-xsltAddTextString.patch

Team Nokogiri will keep on doing their best to provide security
updates in a timely manner, but if this is a concern for you and want
to use the system library instead; abort this installation process and
reinstall nokogiri as follows:

    gem install nokogiri -- --use-system-libraries
        [--with-xml2-config=/path/to/xml2-config]
        [--with-xslt-config=/path/to/xslt-config]

If you are using Bundler, tell it to use the option:

    bundle config build.nokogiri --use-system-libraries
    bundle install
************************************************************************
Extracting libxslt-1.1.29.tar.gz into tmp/x86_64-apple-darwin16.5.0/ports/libxslt/1.1.29... OK
Running git apply with /Users/Who/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/nokogiri-1.7.2/patches/libxslt/0001-Fix-heap-overread-in-xsltFormatNumberConversion.patch... OK
Running git apply with /Users/Who/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/nokogiri-1.7.2/patches/libxslt/0002-Check-for-integer-overflow-in-xsltAddTextString.patch... OK
Running 'configure' for libxslt 1.1.29... OK
Running 'compile' for libxslt 1.1.29... OK
Running 'install' for libxslt 1.1.29... OK
Activating libxslt 1.1.29 (from /Users/Who/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/nokogiri-1.7.2/ports/x86_64-apple-darwin16.5.0/libxslt/1.1.29)...
checking for -llzma... yes
checking for xmlParseDoc() in libxml/parser.h... yes
checking for xsltParseStylesheetDoc() in libxslt/xslt.h... yes
checking for exsltFuncRegister() in libexslt/exslt.h... yes
checking for xmlHasFeature()... yes
checking for xmlFirstElementChild()... yes
checking for xmlRelaxNGSetParserStructuredErrors()... yes
checking for xmlRelaxNGSetParserStructuredErrors()... yes
checking for xmlRelaxNGSetValidStructuredErrors()... yes
checking for xmlSchemaSetValidStructuredErrors()... yes
checking for xmlSchemaSetParserStructuredErrors()... yes
creating Makefile

current directory: /Users/Who/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/nokogiri-1.7.2/ext/nokogiri
make "DESTDIR=" clean

current directory: /Users/Who/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/nokogiri-1.7.2/ext/nokogiri
make "DESTDIR="
compiling xml_attr.c
In file included from xml_attr.c:1:
./xml_attr.h:4:10: fatal error: 'nokogiri.h' file not found
#include <nokogiri.h>
         ^
1 error generated.
make: *** [xml_attr.o] Error 1

make failed, exit code 2

Gem files will remain installed in /Users/Who/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/nokogiri-1.7.2 for inspection.
Results logged to /Users/Who/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/extensions/x86_64-darwin-16/2.4.0-static/nokogiri-1.7.2/gem_make.out

cat gem_make.out

current directory: /Users/Who/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/nokogiri-1.7.2/ext/nokogiri
/Users/Who/.rbenv/versions/2.4.1/bin/ruby -r ./siteconf20170515-94066-67d4bn.rb extconf.rb
undefined method `success?' for nil:NilClass

ruby version: ruby 2.4.1p111 (2017-03-22 revision 58053) [x86_64-darwin16] gem version: 2.6.11

flavorjones commented 7 years ago

There is an issue template we ask issue submitters to use, particularly for installation issues, so that we can provide timely and high-quality help.

I'd like to ask that you do this. Here's the template that you erased when you submitted this issue.


If you're having trouble installing Nokogiri ...

Have you tried following [the installation tutorial][tutorial]?

What is the output of gem install?

What are the contents of the mkmf.log file?

What operating system are you using?

clay-f commented 7 years ago
  1. i found that issue
    • gem install rails
  2. gem install stuck and throw error

    
    Building native extensions.  This could take a while...
    ERROR:  Error installing nokogiri:
    ERROR: Failed to build gem native extension.
    
    current directory: /Users/Who/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/nokogiri-1.7.2/ext/nokogiri
    /Users/Who/.rbenv/versions/2.4.1/bin/ruby -r ./siteconf20170515-60986-1mfmfy8.rb extconf.rb
    checking if the C compiler accepts ... yes
    checking if the C compiler accepts -Wno-error=unused-command-line-argument-hard-error-in-future... no
    Building nokogiri using packaged libraries.
    Using mini_portile version 2.1.0
    checking for iconv.h... yes
    checking for gzdopen() in -lz... yes
    checking for iconv... yes
    ************************************************************************
    IMPORTANT NOTICE:

Building Nokogiri with a packaged version of libxml2-2.9.4 with the following patches applied:

Team Nokogiri will keep on doing their best to provide security updates in a timely manner, but if this is a concern for you and want to use the system library instead; abort this installation process and reinstall nokogiri as follows:

gem install nokogiri -- --use-system-libraries
    [--with-xml2-config=/path/to/xml2-config]
    [--with-xslt-config=/path/to/xslt-config]

If you are using Bundler, tell it to use the option:

bundle config build.nokogiri --use-system-libraries
bundle install

Note, however, that nokogiri is not fully compatible with arbitrary versions of libxml2 provided by OS/package vendors.


Extracting libxml2-2.9.4.tar.gz into tmp/x86_64-apple-darwin16.5.0/ports/libxml2/2.9.4... OK Running git apply with /Users/Who/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/nokogiri-1.7.2/patches/libxml2/0001-Fix-comparison-with-root-node-in-xmlXPathCmpNodes.patch... OK Running git apply with /Users/Who/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/nokogiri-1.7.2/patches/libxml2/0002-Fix-XPointer-paths-beginning-with-range-to.patch... OK Running git apply with /Users/Who/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/nokogiri-1.7.2/patches/libxml2/0003-Disallow-namespace-nodes-in-XPointer-ranges.patch... OK Running 'configure' for libxml2 2.9.4... OK Running 'compile' for libxml2 2.9.4... OK Running 'install' for libxml2 2.9.4... OK Activating libxml2 2.9.4 (from /Users/Who/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/nokogiri-1.7.2/ports/x86_64-apple-darwin16.5.0/libxml2/2.9.4)...


IMPORTANT NOTICE:

Building Nokogiri with a packaged version of libxslt-1.1.29 with the following patches applied:

Team Nokogiri will keep on doing their best to provide security updates in a timely manner, but if this is a concern for you and want to use the system library instead; abort this installation process and reinstall nokogiri as follows:

gem install nokogiri -- --use-system-libraries
    [--with-xml2-config=/path/to/xml2-config]
    [--with-xslt-config=/path/to/xslt-config]

If you are using Bundler, tell it to use the option:

bundle config build.nokogiri --use-system-libraries
bundle install

Extracting libxslt-1.1.29.tar.gz into tmp/x86_64-apple-darwin16.5.0/ports/libxslt/1.1.29... OK Running git apply with /Users/Who/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/nokogiri-1.7.2/patches/libxslt/0001-Fix-heap-overread-in-xsltFormatNumberConversion.patch... OK Running git apply with /Users/Who/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/nokogiri-1.7.2/patches/libxslt/0002-Check-for-integer-overflow-in-xsltAddTextString.patch... OK Running 'configure' for libxslt 1.1.29... OK Running 'compile' for libxslt 1.1.29... OK Running 'install' for libxslt 1.1.29... OK Activating libxslt 1.1.29 (from /Users/Who/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/nokogiri-1.7.2/ports/x86_64-apple-darwin16.5.0/libxslt/1.1.29)... checking for -llzma... yes checking for xmlParseDoc() in libxml/parser.h... yes checking for xsltParseStylesheetDoc() in libxslt/xslt.h... yes checking for exsltFuncRegister() in libexslt/exslt.h... yes checking for xmlHasFeature()... yes checking for xmlFirstElementChild()... yes checking for xmlRelaxNGSetParserStructuredErrors()... yes checking for xmlRelaxNGSetParserStructuredErrors()... yes checking for xmlRelaxNGSetValidStructuredErrors()... yes checking for xmlSchemaSetValidStructuredErrors()... yes checking for xmlSchemaSetParserStructuredErrors()... yes creating Makefile

current directory: /Users/Who/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/nokogiri-1.7.2/ext/nokogiri make "DESTDIR=" clean

current directory: /Users/Who/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/nokogiri-1.7.2/ext/nokogiri make "DESTDIR=" compiling html_document.c In file included from html_document.c:1: In file included from ./html_document.h:4: ./nokogiri.h:39:11: warning: 'MAYBE_UNUSED' macro redefined [-Wmacro-redefined]

define MAYBE_UNUSED(name) name attribute((unused))

      ^

/Users/Who/.rbenv/versions/2.4.1/include/ruby-2.4.0/x86_64-darwin16/ruby/config.h:131:9: note: previous definition is here

define MAYBE_UNUSED(x) attribute ((unused)) x

    ^

1 warning generated. compiling html_element_description.c In file included from html_element_description.c:1: In file included from ./html_element_description.h:4: ./nokogiri.h:39:11: warning: 'MAYBE_UNUSED' macro redefined [-Wmacro-redefined]

define MAYBE_UNUSED(name) name attribute((unused))

      ^

/Users/Who/.rbenv/versions/2.4.1/include/ruby-2.4.0/x86_64-darwin16/ruby/config.h:131:9: note: previous definition is here

define MAYBE_UNUSED(x) attribute ((unused)) x

    ^

1 warning generated. compiling html_entity_lookup.c In file included from html_entity_lookup.c:1: In file included from ./html_entity_lookup.h:4: ./nokogiri.h:39:11: warning: 'MAYBE_UNUSED' macro redefined [-Wmacro-redefined]

define MAYBE_UNUSED(name) name attribute((unused))

      ^

/Users/Who/.rbenv/versions/2.4.1/include/ruby-2.4.0/x86_64-darwin16/ruby/config.h:131:9: note: previous definition is here

define MAYBE_UNUSED(x) attribute ((unused)) x

    ^

1 warning generated. compiling html_sax_parser_context.c In file included from html_sax_parser_context.c:1: In file included from ./html_sax_parser_context.h:4: ./nokogiri.h:39:11: warning: 'MAYBE_UNUSED' macro redefined [-Wmacro-redefined]

define MAYBE_UNUSED(name) name attribute((unused))

      ^

/Users/Who/.rbenv/versions/2.4.1/include/ruby-2.4.0/x86_64-darwin16/ruby/config.h:131:9: note: previous definition is here

define MAYBE_UNUSED(x) attribute ((unused)) x

    ^

1 warning generated. compiling html_sax_push_parser.c In file included from html_sax_push_parser.c:1: In file included from ./html_sax_push_parser.h:4: ./nokogiri.h:39:11: warning: 'MAYBE_UNUSED' macro redefined [-Wmacro-redefined]

define MAYBE_UNUSED(name) name attribute((unused))

      ^

/Users/Who/.rbenv/versions/2.4.1/include/ruby-2.4.0/x86_64-darwin16/ruby/config.h:131:9: note: previous definition is here

define MAYBE_UNUSED(x) attribute ((unused)) x

    ^

1 warning generated. compiling nokogiri.c In file included from nokogiri.c:1: ./nokogiri.h:39:11: warning: 'MAYBE_UNUSED' macro redefined [-Wmacro-redefined]

define MAYBE_UNUSED(name) name attribute((unused))

      ^

/Users/Who/.rbenv/versions/2.4.1/include/ruby-2.4.0/x86_64-darwin16/ruby/config.h:131:9: note: previous definition is here

define MAYBE_UNUSED(x) attribute ((unused)) x

    ^

1 warning generated. compiling xml_attr.c In file included from xml_attr.c:1: In file included from ./xml_attr.h:4: ./nokogiri.h:39:11: warning: 'MAYBE_UNUSED' macro redefined [-Wmacro-redefined]

define MAYBE_UNUSED(name) name attribute((unused))

      ^

/Users/Who/.rbenv/versions/2.4.1/include/ruby-2.4.0/x86_64-darwin16/ruby/config.h:131:9: note: previous definition is here

define MAYBE_UNUSED(x) attribute ((unused)) x

    ^

1 warning generated. compiling xml_attribute_decl.c In file included from xml_attribute_decl.c:1: In file included from ./xml_attribute_decl.h:4: ./nokogiri.h:39:11: warning: 'MAYBE_UNUSED' macro redefined [-Wmacro-redefined]

define MAYBE_UNUSED(name) name attribute((unused))

      ^

/Users/Who/.rbenv/versions/2.4.1/include/ruby-2.4.0/x86_64-darwin16/ruby/config.h:131:9: note: previous definition is here

define MAYBE_UNUSED(x) attribute ((unused)) x

    ^

1 warning generated. compiling xml_cdata.c In file included from xml_cdata.c:1: In file included from ./xml_cdata.h:4: ./nokogiri.h:39:11: warning: 'MAYBE_UNUSED' macro redefined [-Wmacro-redefined]

define MAYBE_UNUSED(name) name attribute((unused))

      ^

/Users/Who/.rbenv/versions/2.4.1/include/ruby-2.4.0/x86_64-darwin16/ruby/config.h:131:9: note: previous definition is here

define MAYBE_UNUSED(x) attribute ((unused)) x

    ^

1 warning generated. compiling xml_comment.c In file included from xml_comment.c:1: In file included from ./xml_comment.h:4: ./nokogiri.h:39:11: warning: 'MAYBE_UNUSED' macro redefined [-Wmacro-redefined]

define MAYBE_UNUSED(name) name attribute((unused))

      ^

/Users/Who/.rbenv/versions/2.4.1/include/ruby-2.4.0/x86_64-darwin16/ruby/config.h:131:9: note: previous definition is here

define MAYBE_UNUSED(x) attribute ((unused)) x

    ^

1 warning generated. compiling xml_document.c In file included from xml_document.c:1: In file included from ./xml_document.h:4: ./nokogiri.h:39:11: warning: 'MAYBE_UNUSED' macro redefined [-Wmacro-redefined]

define MAYBE_UNUSED(name) name attribute((unused))

      ^

/Users/Who/.rbenv/versions/2.4.1/include/ruby-2.4.0/x86_64-darwin16/ruby/config.h:131:9: note: previous definition is here

define MAYBE_UNUSED(x) attribute ((unused)) x

    ^

1 warning generated. compiling xml_document_fragment.c In file included from xml_document_fragment.c:1: In file included from ./xml_document_fragment.h:4: ./nokogiri.h:39:11: warning: 'MAYBE_UNUSED' macro redefined [-Wmacro-redefined]

define MAYBE_UNUSED(name) name attribute((unused))

      ^

/Users/Who/.rbenv/versions/2.4.1/include/ruby-2.4.0/x86_64-darwin16/ruby/config.h:131:9: note: previous definition is here

define MAYBE_UNUSED(x) attribute ((unused)) x

    ^

1 warning generated. compiling xml_dtd.c In file included from xml_dtd.c:1: In file included from ./xml_dtd.h:4: ./nokogiri.h:39:11: warning: 'MAYBE_UNUSED' macro redefined [-Wmacro-redefined]

define MAYBE_UNUSED(name) name attribute((unused))

      ^

/Users/Who/.rbenv/versions/2.4.1/include/ruby-2.4.0/x86_64-darwin16/ruby/config.h:131:9: note: previous definition is here

define MAYBE_UNUSED(x) attribute ((unused)) x

    ^

1 warning generated. compiling xml_element_content.c In file included from xml_element_content.c:1: In file included from ./xml_element_content.h:4: ./nokogiri.h:39:11: warning: 'MAYBE_UNUSED' macro redefined [-Wmacro-redefined]

define MAYBE_UNUSED(name) name attribute((unused))

      ^

/Users/Who/.rbenv/versions/2.4.1/include/ruby-2.4.0/x86_64-darwin16/ruby/config.h:131:9: note: previous definition is here

define MAYBE_UNUSED(x) attribute ((unused)) x

    ^

1 warning generated. compiling xml_element_decl.c In file included from xml_element_decl.c:1: In file included from ./xml_element_decl.h:4: ./nokogiri.h:39:11: warning: 'MAYBE_UNUSED' macro redefined [-Wmacro-redefined]

define MAYBE_UNUSED(name) name attribute((unused))

      ^

/Users/Who/.rbenv/versions/2.4.1/include/ruby-2.4.0/x86_64-darwin16/ruby/config.h:131:9: note: previous definition is here

define MAYBE_UNUSED(x) attribute ((unused)) x

    ^

1 warning generated. compiling xml_encoding_handler.c In file included from xml_encoding_handler.c:1: In file included from ./xml_encoding_handler.h:4: ./nokogiri.h:39:11: warning: 'MAYBE_UNUSED' macro redefined [-Wmacro-redefined]

define MAYBE_UNUSED(name) name attribute((unused))

      ^

/Users/Who/.rbenv/versions/2.4.1/include/ruby-2.4.0/x86_64-darwin16/ruby/config.h:131:9: note: previous definition is here

define MAYBE_UNUSED(x) attribute ((unused)) x

    ^

1 warning generated. compiling xml_entity_decl.c In file included from xml_entity_decl.c:1: In file included from ./xml_entity_decl.h:4: ./nokogiri.h:39:11: warning: 'MAYBE_UNUSED' macro redefined [-Wmacro-redefined]

define MAYBE_UNUSED(name) name attribute((unused))

      ^

/Users/Who/.rbenv/versions/2.4.1/include/ruby-2.4.0/x86_64-darwin16/ruby/config.h:131:9: note: previous definition is here

define MAYBE_UNUSED(x) attribute ((unused)) x

    ^

1 warning generated. compiling xml_entity_reference.c In file included from xml_entity_reference.c:1: In file included from ./xml_entity_reference.h:4: ./nokogiri.h:39:11: warning: 'MAYBE_UNUSED' macro redefined [-Wmacro-redefined]

define MAYBE_UNUSED(name) name attribute((unused))

      ^

/Users/Who/.rbenv/versions/2.4.1/include/ruby-2.4.0/x86_64-darwin16/ruby/config.h:131:9: note: previous definition is here

define MAYBE_UNUSED(x) attribute ((unused)) x

    ^

1 warning generated. compiling xml_io.c In file included from xml_io.c:1: In file included from ./xml_io.h:4: ./nokogiri.h:39:11: warning: 'MAYBE_UNUSED' macro redefined [-Wmacro-redefined]

define MAYBE_UNUSED(name) name attribute((unused))

      ^

/Users/Who/.rbenv/versions/2.4.1/include/ruby-2.4.0/x86_64-darwin16/ruby/config.h:131:9: note: previous definition is here

define MAYBE_UNUSED(x) attribute ((unused)) x

    ^

1 warning generated. compiling xml_libxml2_hacks.c compiling xml_namespace.c In file included from xml_namespace.c:1: In file included from ./xml_namespace.h:4: ./nokogiri.h:39:11: warning: 'MAYBE_UNUSED' macro redefined [-Wmacro-redefined]

define MAYBE_UNUSED(name) name attribute((unused))

      ^

/Users/Who/.rbenv/versions/2.4.1/include/ruby-2.4.0/x86_64-darwin16/ruby/config.h:131:9: note: previous definition is here

define MAYBE_UNUSED(x) attribute ((unused)) x

    ^

xml_namespace.c:67:49: warning: incompatible pointer types passing 'struct _xmlNs ' to parameter of type 'xmlNodePtr' (aka 'struct _xmlNode ') [-Wincompatible-pointer-types] return (node->next && ! Nokogiri_namespace_eh(node->next)); ^~~~~~ xml_namespace.c:27:38: note: passing argument to parameter 'node' here int Nokogiri_namespace_eh(xmlNodePtr node) ^ 2 warnings generated. compiling xml_node.c In file included from xml_node.c:1: In file included from ./xml_node.h:4: ./nokogiri.h:39:11: warning: 'MAYBE_UNUSED' macro redefined [-Wmacro-redefined]

define MAYBE_UNUSED(name) name attribute((unused))

      ^

/Users/Who/.rbenv/versions/2.4.1/include/ruby-2.4.0/x86_64-darwin16/ruby/config.h:131:9: note: previous definition is here

define MAYBE_UNUSED(x) attribute ((unused)) x

    ^

xml_node.c:170:15: warning: 14 enumeration values not handled in switch: 'XML_ATTRIBUTE_NODE', 'XML_ENTITY_NODE', 'XML_DOCUMENT_NODE'... [-Wswitch] switch (reparentee->type) { ^ xml_node.c:188:15: warning: 15 enumeration values not handled in switch: 'XML_ATTRIBUTE_NODE', 'XML_ENTITY_NODE', 'XML_DOCUMENT_NODE'... [-Wswitch] switch (reparentee->type) { ^ xml_node.c:199:15: warning: 19 enumeration values not handled in switch: 'XML_ELEMENT_NODE', 'XML_ATTRIBUTE_NODE', 'XML_CDATA_SECTION_NODE'... [-Wswitch] switch (reparentee->type) { ^ xml_node.c:167:13: warning: 14 enumeration values not handled in switch: 'XML_CDATA_SECTION_NODE', 'XML_ENTITY_NODE', 'XML_PI_NODE'... [-Wswitch] switch (parent->type) { ^ 5 warnings generated. compiling xml_node_set.c In file included from xml_node_set.c:1: In file included from ./xml_node_set.h:4: ./nokogiri.h:39:11: warning: 'MAYBE_UNUSED' macro redefined [-Wmacro-redefined]

define MAYBE_UNUSED(name) name attribute((unused))

      ^

/Users/Who/.rbenv/versions/2.4.1/include/ruby-2.4.0/x86_64-darwin16/ruby/config.h:131:9: note: previous definition is here

define MAYBE_UNUSED(x) attribute ((unused)) x

    ^

1 warning generated. compiling xml_processing_instruction.c In file included from xml_processing_instruction.c:1: In file included from ./xml_processing_instruction.h:4: ./nokogiri.h:39:11: warning: 'MAYBE_UNUSED' macro redefined [-Wmacro-redefined]

define MAYBE_UNUSED(name) name attribute((unused))

      ^

/Users/Who/.rbenv/versions/2.4.1/include/ruby-2.4.0/x86_64-darwin16/ruby/config.h:131:9: note: previous definition is here

define MAYBE_UNUSED(x) attribute ((unused)) x

    ^

1 warning generated. compiling xml_reader.c In file included from xml_reader.c:1: In file included from ./xml_reader.h:4: ./nokogiri.h:39:11: warning: 'MAYBE_UNUSED' macro redefined [-Wmacro-redefined]

define MAYBE_UNUSED(name) name attribute((unused))

      ^

/Users/Who/.rbenv/versions/2.4.1/include/ruby-2.4.0/x86_64-darwin16/ruby/config.h:131:9: note: previous definition is here

define MAYBE_UNUSED(x) attribute ((unused)) x

    ^

1 warning generated. compiling xml_relax_ng.c In file included from xml_relax_ng.c:1: In file included from ./xml_relax_ng.h:4: ./nokogiri.h:39:11: warning: 'MAYBE_UNUSED' macro redefined [-Wmacro-redefined]

define MAYBE_UNUSED(name) name attribute((unused))

      ^

/Users/Who/.rbenv/versions/2.4.1/include/ruby-2.4.0/x86_64-darwin16/ruby/config.h:131:9: note: previous definition is here

define MAYBE_UNUSED(x) attribute ((unused)) x

    ^

1 warning generated. compiling xml_sax_parser.c In file included from xml_sax_parser.c:1: In file included from ./xml_sax_parser.h:4: ./nokogiri.h:39:11: warning: 'MAYBE_UNUSED' macro redefined [-Wmacro-redefined]

define MAYBE_UNUSED(name) name attribute((unused))

      ^

/Users/Who/.rbenv/versions/2.4.1/include/ruby-2.4.0/x86_64-darwin16/ruby/config.h:131:9: note: previous definition is here

define MAYBE_UNUSED(x) attribute ((unused)) x

    ^

1 warning generated. compiling xml_sax_parser_context.c In file included from xml_sax_parser_context.c:1: In file included from ./xml_sax_parser_context.h:4: ./nokogiri.h:39:11: warning: 'MAYBE_UNUSED' macro redefined [-Wmacro-redefined]

define MAYBE_UNUSED(name) name attribute((unused))

      ^

/Users/Who/.rbenv/versions/2.4.1/include/ruby-2.4.0/x86_64-darwin16/ruby/config.h:131:9: note: previous definition is here

define MAYBE_UNUSED(x) attribute ((unused)) x

    ^

1 warning generated. compiling xml_sax_push_parser.c In file included from xml_sax_push_parser.c:1: In file included from ./xml_sax_push_parser.h:4: ./nokogiri.h:39:11: warning: 'MAYBE_UNUSED' macro redefined [-Wmacro-redefined]

define MAYBE_UNUSED(name) name attribute((unused))

      ^

/Users/Who/.rbenv/versions/2.4.1/include/ruby-2.4.0/x86_64-darwin16/ruby/config.h:131:9: note: previous definition is here

define MAYBE_UNUSED(x) attribute ((unused)) x

    ^

1 warning generated. compiling xml_schema.c In file included from xml_schema.c:1: In file included from ./xml_schema.h:4: ./nokogiri.h:39:11: warning: 'MAYBE_UNUSED' macro redefined [-Wmacro-redefined]

define MAYBE_UNUSED(name) name attribute((unused))

      ^

/Users/Who/.rbenv/versions/2.4.1/include/ruby-2.4.0/x86_64-darwin16/ruby/config.h:131:9: note: previous definition is here

define MAYBE_UNUSED(x) attribute ((unused)) x

    ^

1 warning generated. compiling xml_syntax_error.c In file included from xml_syntax_error.c:1: In file included from ./xml_syntax_error.h:4: ./nokogiri.h:39:11: warning: 'MAYBE_UNUSED' macro redefined [-Wmacro-redefined]

define MAYBE_UNUSED(name) name attribute((unused))

      ^

/Users/Who/.rbenv/versions/2.4.1/include/ruby-2.4.0/x86_64-darwin16/ruby/config.h:131:9: note: previous definition is here

define MAYBE_UNUSED(x) attribute ((unused)) x

    ^

1 warning generated. compiling xml_text.c In file included from xml_text.c:1: In file included from ./xml_text.h:4: ./nokogiri.h:39:11: warning: 'MAYBE_UNUSED' macro redefined [-Wmacro-redefined]

define MAYBE_UNUSED(name) name attribute((unused))

      ^

/Users/Who/.rbenv/versions/2.4.1/include/ruby-2.4.0/x86_64-darwin16/ruby/config.h:131:9: note: previous definition is here

define MAYBE_UNUSED(x) attribute ((unused)) x

    ^

1 warning generated. compiling xml_xpath_context.c In file included from xml_xpath_context.c:1: In file included from ./xml_xpath_context.h:4: ./nokogiri.h:39:11: warning: 'MAYBE_UNUSED' macro redefined [-Wmacro-redefined]

define MAYBE_UNUSED(name) name attribute((unused))

      ^

/Users/Who/.rbenv/versions/2.4.1/include/ruby-2.4.0/x86_64-darwin16/ruby/config.h:131:9: note: previous definition is here

define MAYBE_UNUSED(x) attribute ((unused)) x

    ^

1 warning generated. compiling xslt_stylesheet.c In file included from xslt_stylesheet.c:1: In file included from ./xslt_stylesheet.h:4: ./nokogiri.h:39:11: warning: 'MAYBE_UNUSED' macro redefined [-Wmacro-redefined]

define MAYBE_UNUSED(name) name attribute((unused))

      ^

/Users/Who/.rbenv/versions/2.4.1/include/ruby-2.4.0/x86_64-darwin16/ruby/config.h:131:9: note: previous definition is here

define MAYBE_UNUSED(x) attribute ((unused)) x

    ^

xslt_stylesheet.c:217:21: warning: incompatible pointer to integer conversion passing 'void ' to parameter of type 'VALUE' (aka 'unsigned long') [-Wint-conversion] Data_Get_Struct(ctxt->style->_private, nokogiriXsltStylesheetTuple, ^~~~~ /Users/Who/.rbenv/versions/2.4.1/include/ruby-2.4.0/ruby/ruby.h:1188:41: note: expanded from macro 'Data_Get_Struct' ((sval) = (type)rb_data_object_get(obj)) ^~~ /Users/Who/.rbenv/versions/2.4.1/include/ruby-2.4.0/ruby/ruby.h:1352:26: note: passing argument to parameter 'obj' here rb_data_object_get(VALUE obj) ^ xslt_stylesheet.c:230:21: warning: incompatible pointer to integer conversion passing 'void ' to parameter of type 'VALUE' (aka 'unsigned long') [-Wint-conversion] Data_Get_Struct(ctxt->style->_private, nokogiriXsltStylesheetTuple, ^~~~~ /Users/Who/.rbenv/versions/2.4.1/include/ruby-2.4.0/ruby/ruby.h:1188:41: note: expanded from macro 'Data_Get_Struct' ((sval) = (type)rb_data_object_get(obj)) ^~~ /Users/Who/.rbenv/versions/2.4.1/include/ruby-2.4.0/ruby/ruby.h:1352:26: note: passing argument to parameter 'obj' here rb_data_object_get(VALUE obj) ^ 3 warnings generated. linking shared-object nokogiri/nokogiri.bundle Cleaning files only used during build. rm -rf /Users/Who/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/nokogiri-1.7.2/ext/nokogiri/tmp/x86_64-apple-darwin16.5.0/ports rm -rf /Users/Who/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/nokogiri-1.7.2/ports

current directory: /Users/Who/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/nokogiri-1.7.2/ext/nokogiri make "DESTDIR=" install make: /usr/local/bin/gmkdir: No such file or directory make: *** [.sitearchdir.-.nokogiri.time] Error 1

make install failed, exit code 2

Gem files will remain installed in /Users/Who/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/nokogiri-1.7.2 for inspection. Results logged to /Users/Who/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/extensions/x86_64-darwin-16/2.4.0-static/nokogiri-1.7.2/gem_make.out


3.  mkmf.log

current directory: /Users/Who/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/nokogiri-1.7.2/ext/nokogiri /Users/Who/.rbenv/versions/2.4.1/bin/ruby -r ./siteconf20170515-51668-aasdu9.rb extconf.rb checking if the C compiler accepts ... yes checking if the C compiler accepts -Wno-error=unused-command-line-argument-hard-error-in-future... no Building nokogiri using packaged libraries. Using mini_portile version 2.1.0 checking for iconv.h... yes checking for gzdopen() in -lz... yes checking for iconv... yes


IMPORTANT NOTICE:

Building Nokogiri with a packaged version of libxml2-2.9.4 with the following patches applied:

Team Nokogiri will keep on doing their best to provide security updates in a timely manner, but if this is a concern for you and want to use the system library instead; abort this installation process and reinstall nokogiri as follows:

gem install nokogiri -- --use-system-libraries
    [--with-xml2-config=/path/to/xml2-config]
    [--with-xslt-config=/path/to/xslt-config]

If you are using Bundler, tell it to use the option:

bundle config build.nokogiri --use-system-libraries
bundle install

Note, however, that nokogiri is not fully compatible with arbitrary versions of libxml2 provided by OS/package vendors.


Extracting libxml2-2.9.4.tar.gz into tmp/x86_64-apple-darwin16.5.0/ports/libxml2/2.9.4... OK Running git apply with /Users/Who/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/nokogiri-1.7.2/patches/libxml2/0001-Fix-comparison-with-root-node-in-xmlXPathCmpNodes.patch... OK Running git apply with /Users/Who/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/nokogiri-1.7.2/patches/libxml2/0002-Fix-XPointer-paths-beginning-with-range-to.patch... OK Running git apply with /Users/Who/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/nokogiri-1.7.2/patches/libxml2/0003-Disallow-namespace-nodes-in-XPointer-ranges.patch... OK Running 'configure' for libxml2 2.9.4... OK Running 'compile' for libxml2 2.9.4... OK Running 'install' for libxml2 2.9.4... OK Activating libxml2 2.9.4 (from /Users/Who/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/nokogiri-1.7.2/ports/x86_64-apple-darwin16.5.0/libxml2/2.9.4)...


IMPORTANT NOTICE:

Building Nokogiri with a packaged version of libxslt-1.1.29 with the following patches applied:

Team Nokogiri will keep on doing their best to provide security updates in a timely manner, but if this is a concern for you and want to use the system library instead; abort this installation process and reinstall nokogiri as follows:

gem install nokogiri -- --use-system-libraries
    [--with-xml2-config=/path/to/xml2-config]
    [--with-xslt-config=/path/to/xslt-config]

If you are using Bundler, tell it to use the option:

bundle config build.nokogiri --use-system-libraries
bundle install

Extracting libxslt-1.1.29.tar.gz into tmp/x86_64-apple-darwin16.5.0/ports/libxslt/1.1.29... OK Running git apply with /Users/Who/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/nokogiri-1.7.2/patches/libxslt/0001-Fix-heap-overread-in-xsltFormatNumberConversion.patch... OK Running git apply with /Users/Who/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/nokogiri-1.7.2/patches/libxslt/0002-Check-for-integer-overflow-in-xsltAddTextString.patch... OK Running 'configure' for libxslt 1.1.29... OK Running 'compile' for libxslt 1.1.29... OK Running 'install' for libxslt 1.1.29... OK Activating libxslt 1.1.29 (from /Users/Who/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/nokogiri-1.7.2/ports/x86_64-apple-darwin16.5.0/libxslt/1.1.29)... checking for -llzma... yes checking for xmlParseDoc() in libxml/parser.h... yes checking for xsltParseStylesheetDoc() in libxslt/xslt.h... yes checking for exsltFuncRegister() in libexslt/exslt.h... yes checking for xmlHasFeature()... yes checking for xmlFirstElementChild()... yes checking for xmlRelaxNGSetParserStructuredErrors()... yes checking for xmlRelaxNGSetParserStructuredErrors()... yes checking for xmlRelaxNGSetValidStructuredErrors()... yes checking for xmlSchemaSetValidStructuredErrors()... yes checking for xmlSchemaSetParserStructuredErrors()... yes creating Makefile

current directory: /Users/Who/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/nokogiri-1.7.2/ext/nokogiri make "DESTDIR=" clean

current directory: /Users/Who/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/nokogiri-1.7.2/ext/nokogiri make "DESTDIR=" compiling html_document.c In file included from html_document.c:1: In file included from ./html_document.h:4: ./nokogiri.h:39:11: warning: 'MAYBE_UNUSED' macro redefined [-Wmacro-redefined]

define MAYBE_UNUSED(name) name attribute((unused))

      ^

/Users/Who/.rbenv/versions/2.4.1/include/ruby-2.4.0/x86_64-darwin16/ruby/config.h:131:9: note: previous definition is here

define MAYBE_UNUSED(x) attribute ((unused)) x

    ^

1 warning generated. compiling html_element_description.c In file included from html_element_description.c:1: In file included from ./html_element_description.h:4: ./nokogiri.h:39:11: warning: 'MAYBE_UNUSED' macro redefined [-Wmacro-redefined]

define MAYBE_UNUSED(name) name attribute((unused))

      ^

/Users/Who/.rbenv/versions/2.4.1/include/ruby-2.4.0/x86_64-darwin16/ruby/config.h:131:9: note: previous definition is here

define MAYBE_UNUSED(x) attribute ((unused)) x

    ^

1 warning generated. compiling html_entity_lookup.c In file included from html_entity_lookup.c:1: In file included from ./html_entity_lookup.h:4: ./nokogiri.h:39:11: warning: 'MAYBE_UNUSED' macro redefined [-Wmacro-redefined]

define MAYBE_UNUSED(name) name attribute((unused))

      ^

/Users/Who/.rbenv/versions/2.4.1/include/ruby-2.4.0/x86_64-darwin16/ruby/config.h:131:9: note: previous definition is here

define MAYBE_UNUSED(x) attribute ((unused)) x

    ^

1 warning generated. compiling html_sax_parser_context.c In file included from html_sax_parser_context.c:1: In file included from ./html_sax_parser_context.h:4: ./nokogiri.h:39:11: warning: 'MAYBE_UNUSED' macro redefined [-Wmacro-redefined]

define MAYBE_UNUSED(name) name attribute((unused))

      ^

/Users/Who/.rbenv/versions/2.4.1/include/ruby-2.4.0/x86_64-darwin16/ruby/config.h:131:9: note: previous definition is here

define MAYBE_UNUSED(x) attribute ((unused)) x

    ^

1 warning generated. compiling html_sax_push_parser.c In file included from html_sax_push_parser.c:1: In file included from ./html_sax_push_parser.h:4: ./nokogiri.h:39:11: warning: 'MAYBE_UNUSED' macro redefined [-Wmacro-redefined]

define MAYBE_UNUSED(name) name attribute((unused))

      ^

/Users/Who/.rbenv/versions/2.4.1/include/ruby-2.4.0/x86_64-darwin16/ruby/config.h:131:9: note: previous definition is here

define MAYBE_UNUSED(x) attribute ((unused)) x

    ^

1 warning generated. compiling nokogiri.c In file included from nokogiri.c:1: ./nokogiri.h:39:11: warning: 'MAYBE_UNUSED' macro redefined [-Wmacro-redefined]

define MAYBE_UNUSED(name) name attribute((unused))

      ^

/Users/Who/.rbenv/versions/2.4.1/include/ruby-2.4.0/x86_64-darwin16/ruby/config.h:131:9: note: previous definition is here

define MAYBE_UNUSED(x) attribute ((unused)) x

    ^

1 warning generated. compiling xml_attr.c In file included from xml_attr.c:1: In file included from ./xml_attr.h:4: ./nokogiri.h:39:11: warning: 'MAYBE_UNUSED' macro redefined [-Wmacro-redefined]

define MAYBE_UNUSED(name) name attribute((unused))

      ^

/Users/Who/.rbenv/versions/2.4.1/include/ruby-2.4.0/x86_64-darwin16/ruby/config.h:131:9: note: previous definition is here

define MAYBE_UNUSED(x) attribute ((unused)) x

    ^

1 warning generated. compiling xml_attribute_decl.c In file included from xml_attribute_decl.c:1: In file included from ./xml_attribute_decl.h:4: ./nokogiri.h:39:11: warning: 'MAYBE_UNUSED' macro redefined [-Wmacro-redefined]

define MAYBE_UNUSED(name) name attribute((unused))

      ^

/Users/Who/.rbenv/versions/2.4.1/include/ruby-2.4.0/x86_64-darwin16/ruby/config.h:131:9: note: previous definition is here

define MAYBE_UNUSED(x) attribute ((unused)) x

    ^

1 warning generated. compiling xml_cdata.c In file included from xml_cdata.c:1: In file included from ./xml_cdata.h:4: ./nokogiri.h:39:11: warning: 'MAYBE_UNUSED' macro redefined [-Wmacro-redefined]

define MAYBE_UNUSED(name) name attribute((unused))

      ^

/Users/Who/.rbenv/versions/2.4.1/include/ruby-2.4.0/x86_64-darwin16/ruby/config.h:131:9: note: previous definition is here

define MAYBE_UNUSED(x) attribute ((unused)) x

    ^

1 warning generated. compiling xml_comment.c In file included from xml_comment.c:1: In file included from ./xml_comment.h:4: ./nokogiri.h:39:11: warning: 'MAYBE_UNUSED' macro redefined [-Wmacro-redefined]

define MAYBE_UNUSED(name) name attribute((unused))

      ^

/Users/Who/.rbenv/versions/2.4.1/include/ruby-2.4.0/x86_64-darwin16/ruby/config.h:131:9: note: previous definition is here

define MAYBE_UNUSED(x) attribute ((unused)) x

    ^

1 warning generated. compiling xml_document.c In file included from xml_document.c:1: In file included from ./xml_document.h:4: ./nokogiri.h:39:11: warning: 'MAYBE_UNUSED' macro redefined [-Wmacro-redefined]

define MAYBE_UNUSED(name) name attribute((unused))

      ^

/Users/Who/.rbenv/versions/2.4.1/include/ruby-2.4.0/x86_64-darwin16/ruby/config.h:131:9: note: previous definition is here

define MAYBE_UNUSED(x) attribute ((unused)) x

    ^

1 warning generated. compiling xml_document_fragment.c In file included from xml_document_fragment.c:1: In file included from ./xml_document_fragment.h:4: ./nokogiri.h:39:11: warning: 'MAYBE_UNUSED' macro redefined [-Wmacro-redefined]

define MAYBE_UNUSED(name) name attribute((unused))

      ^

/Users/Who/.rbenv/versions/2.4.1/include/ruby-2.4.0/x86_64-darwin16/ruby/config.h:131:9: note: previous definition is here

define MAYBE_UNUSED(x) attribute ((unused)) x

    ^

1 warning generated. compiling xml_dtd.c In file included from xml_dtd.c:1: In file included from ./xml_dtd.h:4: ./nokogiri.h:39:11: warning: 'MAYBE_UNUSED' macro redefined [-Wmacro-redefined]

define MAYBE_UNUSED(name) name attribute((unused))

      ^

/Users/Who/.rbenv/versions/2.4.1/include/ruby-2.4.0/x86_64-darwin16/ruby/config.h:131:9: note: previous definition is here

define MAYBE_UNUSED(x) attribute ((unused)) x

    ^

1 warning generated. compiling xml_element_content.c In file included from xml_element_content.c:1: In file included from ./xml_element_content.h:4: ./nokogiri.h:39:11: warning: 'MAYBE_UNUSED' macro redefined [-Wmacro-redefined]

define MAYBE_UNUSED(name) name attribute((unused))

      ^

/Users/Who/.rbenv/versions/2.4.1/include/ruby-2.4.0/x86_64-darwin16/ruby/config.h:131:9: note: previous definition is here

define MAYBE_UNUSED(x) attribute ((unused)) x

    ^

1 warning generated. compiling xml_element_decl.c In file included from xml_element_decl.c:1: In file included from ./xml_element_decl.h:4: ./nokogiri.h:39:11: warning: 'MAYBE_UNUSED' macro redefined [-Wmacro-redefined]

define MAYBE_UNUSED(name) name attribute((unused))

      ^

/Users/Who/.rbenv/versions/2.4.1/include/ruby-2.4.0/x86_64-darwin16/ruby/config.h:131:9: note: previous definition is here

define MAYBE_UNUSED(x) attribute ((unused)) x

    ^

1 warning generated. compiling xml_encoding_handler.c In file included from xml_encoding_handler.c:1: In file included from ./xml_encoding_handler.h:4: ./nokogiri.h:39:11: warning: 'MAYBE_UNUSED' macro redefined [-Wmacro-redefined]

define MAYBE_UNUSED(name) name attribute((unused))

      ^

/Users/Who/.rbenv/versions/2.4.1/include/ruby-2.4.0/x86_64-darwin16/ruby/config.h:131:9: note: previous definition is here

define MAYBE_UNUSED(x) attribute ((unused)) x

    ^

1 warning generated. compiling xml_entity_decl.c In file included from xml_entity_decl.c:1: In file included from ./xml_entity_decl.h:4: ./nokogiri.h:39:11: warning: 'MAYBE_UNUSED' macro redefined [-Wmacro-redefined]

define MAYBE_UNUSED(name) name attribute((unused))

      ^

/Users/Who/.rbenv/versions/2.4.1/include/ruby-2.4.0/x86_64-darwin16/ruby/config.h:131:9: note: previous definition is here

define MAYBE_UNUSED(x) attribute ((unused)) x

    ^

1 warning generated. compiling xml_entity_reference.c In file included from xml_entity_reference.c:1: In file included from ./xml_entity_reference.h:4: ./nokogiri.h:39:11: warning: 'MAYBE_UNUSED' macro redefined [-Wmacro-redefined]

define MAYBE_UNUSED(name) name attribute((unused))

      ^

/Users/Who/.rbenv/versions/2.4.1/include/ruby-2.4.0/x86_64-darwin16/ruby/config.h:131:9: note: previous definition is here

define MAYBE_UNUSED(x) attribute ((unused)) x

    ^

1 warning generated. compiling xml_io.c In file included from xml_io.c:1: In file included from ./xml_io.h:4: ./nokogiri.h:39:11: warning: 'MAYBE_UNUSED' macro redefined [-Wmacro-redefined]

define MAYBE_UNUSED(name) name attribute((unused))

      ^

/Users/Who/.rbenv/versions/2.4.1/include/ruby-2.4.0/x86_64-darwin16/ruby/config.h:131:9: note: previous definition is here

define MAYBE_UNUSED(x) attribute ((unused)) x

    ^

1 warning generated. compiling xml_libxml2_hacks.c compiling xml_namespace.c In file included from xml_namespace.c:1: In file included from ./xml_namespace.h:4: ./nokogiri.h:39:11: warning: 'MAYBE_UNUSED' macro redefined [-Wmacro-redefined]

define MAYBE_UNUSED(name) name attribute((unused))

      ^

/Users/Who/.rbenv/versions/2.4.1/include/ruby-2.4.0/x86_64-darwin16/ruby/config.h:131:9: note: previous definition is here

define MAYBE_UNUSED(x) attribute ((unused)) x

    ^

xml_namespace.c:67:49: warning: incompatible pointer types passing 'struct _xmlNs ' to parameter of type 'xmlNodePtr' (aka 'struct _xmlNode ') [-Wincompatible-pointer-types] return (node->next && ! Nokogiri_namespace_eh(node->next)); ^~~~~~ xml_namespace.c:27:38: note: passing argument to parameter 'node' here int Nokogiri_namespace_eh(xmlNodePtr node) ^ 2 warnings generated. compiling xml_node.c In file included from xml_node.c:1: In file included from ./xml_node.h:4: ./nokogiri.h:39:11: warning: 'MAYBE_UNUSED' macro redefined [-Wmacro-redefined]

define MAYBE_UNUSED(name) name attribute((unused))

      ^

/Users/Who/.rbenv/versions/2.4.1/include/ruby-2.4.0/x86_64-darwin16/ruby/config.h:131:9: note: previous definition is here

define MAYBE_UNUSED(x) attribute ((unused)) x

    ^

xml_node.c:170:15: warning: 14 enumeration values not handled in switch: 'XML_ATTRIBUTE_NODE', 'XML_ENTITY_NODE', 'XML_DOCUMENT_NODE'... [-Wswitch] switch (reparentee->type) { ^ xml_node.c:188:15: warning: 15 enumeration values not handled in switch: 'XML_ATTRIBUTE_NODE', 'XML_ENTITY_NODE', 'XML_DOCUMENT_NODE'... [-Wswitch] switch (reparentee->type) { ^ xml_node.c:199:15: warning: 19 enumeration values not handled in switch: 'XML_ELEMENT_NODE', 'XML_ATTRIBUTE_NODE', 'XML_CDATA_SECTION_NODE'... [-Wswitch] switch (reparentee->type) { ^ xml_node.c:167:13: warning: 14 enumeration values not handled in switch: 'XML_CDATA_SECTION_NODE', 'XML_ENTITY_NODE', 'XML_PI_NODE'... [-Wswitch] switch (parent->type) { ^ 5 warnings generated. compiling xml_node_set.c In file included from xml_node_set.c:1: In file included from ./xml_node_set.h:4: ./nokogiri.h:39:11: warning: 'MAYBE_UNUSED' macro redefined [-Wmacro-redefined]

define MAYBE_UNUSED(name) name attribute((unused))

      ^

/Users/Who/.rbenv/versions/2.4.1/include/ruby-2.4.0/x86_64-darwin16/ruby/config.h:131:9: note: previous definition is here

define MAYBE_UNUSED(x) attribute ((unused)) x

    ^

1 warning generated. compiling xml_processing_instruction.c In file included from xml_processing_instruction.c:1: In file included from ./xml_processing_instruction.h:4: ./nokogiri.h:39:11: warning: 'MAYBE_UNUSED' macro redefined [-Wmacro-redefined]

define MAYBE_UNUSED(name) name attribute((unused))

      ^

/Users/Who/.rbenv/versions/2.4.1/include/ruby-2.4.0/x86_64-darwin16/ruby/config.h:131:9: note: previous definition is here

define MAYBE_UNUSED(x) attribute ((unused)) x

    ^

1 warning generated. compiling xml_reader.c In file included from xml_reader.c:1: In file included from ./xml_reader.h:4: ./nokogiri.h:39:11: warning: 'MAYBE_UNUSED' macro redefined [-Wmacro-redefined]

define MAYBE_UNUSED(name) name attribute((unused))

      ^

/Users/Who/.rbenv/versions/2.4.1/include/ruby-2.4.0/x86_64-darwin16/ruby/config.h:131:9: note: previous definition is here

define MAYBE_UNUSED(x) attribute ((unused)) x

    ^

1 warning generated. compiling xml_relax_ng.c In file included from xml_relax_ng.c:1: In file included from ./xml_relax_ng.h:4: ./nokogiri.h:39:11: warning: 'MAYBE_UNUSED' macro redefined [-Wmacro-redefined]

define MAYBE_UNUSED(name) name attribute((unused))

      ^

/Users/Who/.rbenv/versions/2.4.1/include/ruby-2.4.0/x86_64-darwin16/ruby/config.h:131:9: note: previous definition is here

define MAYBE_UNUSED(x) attribute ((unused)) x

    ^

1 warning generated. compiling xml_sax_parser.c In file included from xml_sax_parser.c:1: In file included from ./xml_sax_parser.h:4: ./nokogiri.h:39:11: warning: 'MAYBE_UNUSED' macro redefined [-Wmacro-redefined]

define MAYBE_UNUSED(name) name attribute((unused))

      ^

/Users/Who/.rbenv/versions/2.4.1/include/ruby-2.4.0/x86_64-darwin16/ruby/config.h:131:9: note: previous definition is here

define MAYBE_UNUSED(x) attribute ((unused)) x

    ^

1 warning generated. compiling xml_sax_parser_context.c In file included from xml_sax_parser_context.c:1: In file included from ./xml_sax_parser_context.h:4: ./nokogiri.h:39:11: warning: 'MAYBE_UNUSED' macro redefined [-Wmacro-redefined]

define MAYBE_UNUSED(name) name attribute((unused))

      ^

/Users/Who/.rbenv/versions/2.4.1/include/ruby-2.4.0/x86_64-darwin16/ruby/config.h:131:9: note: previous definition is here

define MAYBE_UNUSED(x) attribute ((unused)) x

    ^

1 warning generated. compiling xml_sax_push_parser.c In file included from xml_sax_push_parser.c:1: In file included from ./xml_sax_push_parser.h:4: ./nokogiri.h:39:11: warning: 'MAYBE_UNUSED' macro redefined [-Wmacro-redefined]

define MAYBE_UNUSED(name) name attribute((unused))

      ^

/Users/Who/.rbenv/versions/2.4.1/include/ruby-2.4.0/x86_64-darwin16/ruby/config.h:131:9: note: previous definition is here

define MAYBE_UNUSED(x) attribute ((unused)) x

    ^

1 warning generated. compiling xml_schema.c In file included from xml_schema.c:1: In file included from ./xml_schema.h:4: ./nokogiri.h:39:11: warning: 'MAYBE_UNUSED' macro redefined [-Wmacro-redefined]

define MAYBE_UNUSED(name) name attribute((unused))

      ^

/Users/Who/.rbenv/versions/2.4.1/include/ruby-2.4.0/x86_64-darwin16/ruby/config.h:131:9: note: previous definition is here

define MAYBE_UNUSED(x) attribute ((unused)) x

    ^

1 warning generated. compiling xml_syntax_error.c In file included from xml_syntax_error.c:1: In file included from ./xml_syntax_error.h:4: ./nokogiri.h:39:11: warning: 'MAYBE_UNUSED' macro redefined [-Wmacro-redefined]

define MAYBE_UNUSED(name) name attribute((unused))

      ^

/Users/Who/.rbenv/versions/2.4.1/include/ruby-2.4.0/x86_64-darwin16/ruby/config.h:131:9: note: previous definition is here

define MAYBE_UNUSED(x) attribute ((unused)) x

    ^

1 warning generated. compiling xml_text.c In file included from xml_text.c:1: In file included from ./xml_text.h:4: ./nokogiri.h:39:11: warning: 'MAYBE_UNUSED' macro redefined [-Wmacro-redefined]

define MAYBE_UNUSED(name) name attribute((unused))

      ^

/Users/Who/.rbenv/versions/2.4.1/include/ruby-2.4.0/x86_64-darwin16/ruby/config.h:131:9: note: previous definition is here

define MAYBE_UNUSED(x) attribute ((unused)) x

    ^

1 warning generated. compiling xml_xpath_context.c In file included from xml_xpath_context.c:1: In file included from ./xml_xpath_context.h:4: ./nokogiri.h:39:11: warning: 'MAYBE_UNUSED' macro redefined [-Wmacro-redefined]

define MAYBE_UNUSED(name) name attribute((unused))

      ^

/Users/Who/.rbenv/versions/2.4.1/include/ruby-2.4.0/x86_64-darwin16/ruby/config.h:131:9: note: previous definition is here

define MAYBE_UNUSED(x) attribute ((unused)) x

    ^

1 warning generated. compiling xslt_stylesheet.c In file included from xslt_stylesheet.c:1: In file included from ./xslt_stylesheet.h:4: ./nokogiri.h:39:11: warning: 'MAYBE_UNUSED' macro redefined [-Wmacro-redefined]

define MAYBE_UNUSED(name) name attribute((unused))

      ^

/Users/Who/.rbenv/versions/2.4.1/include/ruby-2.4.0/x86_64-darwin16/ruby/config.h:131:9: note: previous definition is here

define MAYBE_UNUSED(x) attribute ((unused)) x

    ^

xslt_stylesheet.c:217:21: warning: incompatible pointer to integer conversion passing 'void ' to parameter of type 'VALUE' (aka 'unsigned long') [-Wint-conversion] Data_Get_Struct(ctxt->style->_private, nokogiriXsltStylesheetTuple, ^~~~~ /Users/Who/.rbenv/versions/2.4.1/include/ruby-2.4.0/ruby/ruby.h:1188:41: note: expanded from macro 'Data_Get_Struct' ((sval) = (type)rb_data_object_get(obj)) ^~~ /Users/Who/.rbenv/versions/2.4.1/include/ruby-2.4.0/ruby/ruby.h:1352:26: note: passing argument to parameter 'obj' here rb_data_object_get(VALUE obj) ^ xslt_stylesheet.c:230:21: warning: incompatible pointer to integer conversion passing 'void ' to parameter of type 'VALUE' (aka 'unsigned long') [-Wint-conversion] Data_Get_Struct(ctxt->style->_private, nokogiriXsltStylesheetTuple, ^~~~~ /Users/Who/.rbenv/versions/2.4.1/include/ruby-2.4.0/ruby/ruby.h:1188:41: note: expanded from macro 'Data_Get_Struct' ((sval) = (type)rb_data_object_get(obj)) ^~~ /Users/Who/.rbenv/versions/2.4.1/include/ruby-2.4.0/ruby/ruby.h:1352:26: note: passing argument to parameter 'obj' here rb_data_object_get(VALUE obj) ^ 3 warnings generated. linking shared-object nokogiri/nokogiri.bundle Cleaning files only used during build. rm -rf /Users/Who/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/nokogiri-1.7.2/ext/nokogiri/tmp/x86_64-apple-darwin16.5.0/ports rm -rf /Users/Who/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/nokogiri-1.7.2/ports

current directory: /Users/Who/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/nokogiri-1.7.2/ext/nokogiri make "DESTDIR=" install /usr/bin/install -c -m 0755 nokogiri.bundle ./.gem.20170515-51668-1oaz5q6/nokogiri


4. system version: macos 10.12.4

5. i have tried install nokogiri failure over and over gain. so
    *  `rbenv uninstall 2.4.1`
    *  `rbenv install 2.4.1`
    *  `gem install rails`
and install nokogiri succeed after remove ruby some stuff

`nokogiri -v`

Nokogiri (1.7.2)

---
warnings: []
nokogiri: 1.7.2
ruby:
  version: 2.4.1
  platform: x86_64-darwin16
  description: ruby 2.4.1p111 (2017-03-22 revision 58053) [x86_64-darwin16]
  engine: ruby
libxml:
  binding: extension
  source: packaged
  libxml2_path: "/Users/Who/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/nokogiri-1.7.2/ports/x86_64-apple-darwin16.5.0/libxml2/2.9.4"
  libxslt_path: "/Users/Who/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/nokogiri-1.7.2/ports/x86_64-apple-darwin16.5.0/libxslt/1.1.29"
  libxml2_patches:
  - 0001-Fix-comparison-with-root-node-in-xmlXPathCmpNodes.patch
  - 0002-Fix-XPointer-paths-beginning-with-range-to.patch
  - 0003-Disallow-namespace-nodes-in-XPointer-ranges.patch
  libxslt_patches:
  - 0001-Fix-heap-overread-in-xsltFormatNumberConversion.patch
  - 0002-Check-for-integer-overflow-in-xsltAddTextString.patch
  compiled: 2.9.4
  loaded: 2.9.4

i thought might issue is here

gem install nokogiri -- --use-system-libraries [--with-xml2-config=/path/to/xml2-config] [--with-xslt-config=/path/to/xslt-config]



i use `gem install nokogiri -- --use-system-libraries` suck,

and use bundle  `bundle config build.nokogiri --use-system-libraries` still stuck

 though i don't know why occur that. after all remove everything and reinstall succeed 🙃, thanks