Error installing Nokogiri as part of Rails Installation

11 views
Skip to first unread message

Jack Royal-Gordon

unread,
Sep 29, 2020, 8:15:03 PM9/29/20
to nokogi...@googlegroups.com
Installing Rails 4.2.11.3 on Ruby 2.0-p576 on Mac OS X Version 10.15.6 (19G2021) gave an error trying to build Nokogiri.

The first error during compiling was in the "checking for main() in -llzma” step (other errors appeared after that)

Full messages on screen:

$ gem install rails -v 4.2.11.3
ERROR:  Error installing rails:
ERROR: Failed to build gem native extension.

    current directory: /Users/jackrg/.rbenv/versions/2.0.0-p576/lib/ruby/gems/2.0.0/gems/nokogiri-1.6.7.2/ext/nokogiri
/Users/jackrg/.rbenv/versions/2.0.0-p576/bin/ruby -r ./siteconf20200929-46084-1293pac.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.0.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.2
with the following patches applied:
- 0001-Revert-Missing-initialization-for-the-catalog-module.patch
- 0002-Fix-missing-entities-after-CVE-2014-3660-fix.patch
- 0003-Stop-parsing-on-entities-boundaries-errors.patch
- 0004-Cleanup-conditional-section-error-handling.patch
- 0005-CVE-2015-1819-Enforce-the-reader-to-run-in-constant-.patch
- 0006-Another-variation-of-overflow-in-Conditional-section.patch
- 0007-Fix-an-error-in-previous-Conditional-section-patch.patch
- 0008-CVE-2015-8035-Fix-XZ-compression-support-loop.patch
- 0009-Updated-config.guess.patch
- 0010-Fix-parsering-short-unclosed-comment-uninitialized-access.patch
- 0011-Avoid-extra-processing-of-MarkupDecl-when-EOF.patch
- 0012-Avoid-processing-entities-after-encoding-conversion-.patch
- 0013-CVE-2015-7497-Avoid-an-heap-buffer-overflow-in-xmlDi.patch
- 0014-CVE-2015-5312-Another-entity-expansion-issue.patch
- 0015-Add-xmlHaltParser-to-stop-the-parser.patch
- 0016-Detect-incoherency-on-GROW.patch
- 0017-CVE-2015-7500-Fix-memory-access-error-due-to-incorre.patch
- 0018-CVE-2015-8242-Buffer-overead-with-HTML-parser-in-pus.patch
- 0019-Do-not-print-error-context-when-there-is-none.patch
- 0020-xmlStopParser-reset-errNo.patch
- 0021-Reuse-xmlHaltParser-where-it-makes-sense.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.
************************************************************************
Downloading libxml2-2.9.2.tar.gz (100%) 
Extracting libxml2-2.9.2.tar.gz into tmp/x86_64-apple-darwin18.7.0/ports/libxml2/2.9.2... OK
Running git apply with /Users/jackrg/.rbenv/versions/2.0.0-p576/lib/ruby/gems/2.0.0/gems/nokogiri-1.6.7.2/patches/libxml2/0001-Revert-Missing-initialization-for-the-catalog-module.patch... OK
Running git apply with /Users/jackrg/.rbenv/versions/2.0.0-p576/lib/ruby/gems/2.0.0/gems/nokogiri-1.6.7.2/patches/libxml2/0002-Fix-missing-entities-after-CVE-2014-3660-fix.patch... OK
Running git apply with /Users/jackrg/.rbenv/versions/2.0.0-p576/lib/ruby/gems/2.0.0/gems/nokogiri-1.6.7.2/patches/libxml2/0003-Stop-parsing-on-entities-boundaries-errors.patch... OK
Running git apply with /Users/jackrg/.rbenv/versions/2.0.0-p576/lib/ruby/gems/2.0.0/gems/nokogiri-1.6.7.2/patches/libxml2/0004-Cleanup-conditional-section-error-handling.patch... OK
Running git apply with /Users/jackrg/.rbenv/versions/2.0.0-p576/lib/ruby/gems/2.0.0/gems/nokogiri-1.6.7.2/patches/libxml2/0005-CVE-2015-1819-Enforce-the-reader-to-run-in-constant-.patch... OK
Running git apply with /Users/jackrg/.rbenv/versions/2.0.0-p576/lib/ruby/gems/2.0.0/gems/nokogiri-1.6.7.2/patches/libxml2/0006-Another-variation-of-overflow-in-Conditional-section.patch... OK
Running git apply with /Users/jackrg/.rbenv/versions/2.0.0-p576/lib/ruby/gems/2.0.0/gems/nokogiri-1.6.7.2/patches/libxml2/0007-Fix-an-error-in-previous-Conditional-section-patch.patch... OK
Running git apply with /Users/jackrg/.rbenv/versions/2.0.0-p576/lib/ruby/gems/2.0.0/gems/nokogiri-1.6.7.2/patches/libxml2/0008-CVE-2015-8035-Fix-XZ-compression-support-loop.patch... OK
Running git apply with /Users/jackrg/.rbenv/versions/2.0.0-p576/lib/ruby/gems/2.0.0/gems/nokogiri-1.6.7.2/patches/libxml2/0009-Updated-config.guess.patch... OK
Running git apply with /Users/jackrg/.rbenv/versions/2.0.0-p576/lib/ruby/gems/2.0.0/gems/nokogiri-1.6.7.2/patches/libxml2/0010-Fix-parsering-short-unclosed-comment-uninitialized-access.patch... OK
Running git apply with /Users/jackrg/.rbenv/versions/2.0.0-p576/lib/ruby/gems/2.0.0/gems/nokogiri-1.6.7.2/patches/libxml2/0011-Avoid-extra-processing-of-MarkupDecl-when-EOF.patch... OK
Running git apply with /Users/jackrg/.rbenv/versions/2.0.0-p576/lib/ruby/gems/2.0.0/gems/nokogiri-1.6.7.2/patches/libxml2/0012-Avoid-processing-entities-after-encoding-conversion-.patch... OK
Running git apply with /Users/jackrg/.rbenv/versions/2.0.0-p576/lib/ruby/gems/2.0.0/gems/nokogiri-1.6.7.2/patches/libxml2/0013-CVE-2015-7497-Avoid-an-heap-buffer-overflow-in-xmlDi.patch... OK
Running git apply with /Users/jackrg/.rbenv/versions/2.0.0-p576/lib/ruby/gems/2.0.0/gems/nokogiri-1.6.7.2/patches/libxml2/0014-CVE-2015-5312-Another-entity-expansion-issue.patch... OK
Running git apply with /Users/jackrg/.rbenv/versions/2.0.0-p576/lib/ruby/gems/2.0.0/gems/nokogiri-1.6.7.2/patches/libxml2/0015-Add-xmlHaltParser-to-stop-the-parser.patch... OK
Running git apply with /Users/jackrg/.rbenv/versions/2.0.0-p576/lib/ruby/gems/2.0.0/gems/nokogiri-1.6.7.2/patches/libxml2/0016-Detect-incoherency-on-GROW.patch... OK
Running git apply with /Users/jackrg/.rbenv/versions/2.0.0-p576/lib/ruby/gems/2.0.0/gems/nokogiri-1.6.7.2/patches/libxml2/0017-CVE-2015-7500-Fix-memory-access-error-due-to-incorre.patch... OK
Running git apply with /Users/jackrg/.rbenv/versions/2.0.0-p576/lib/ruby/gems/2.0.0/gems/nokogiri-1.6.7.2/patches/libxml2/0018-CVE-2015-8242-Buffer-overead-with-HTML-parser-in-pus.patch... OK
Running git apply with /Users/jackrg/.rbenv/versions/2.0.0-p576/lib/ruby/gems/2.0.0/gems/nokogiri-1.6.7.2/patches/libxml2/0019-Do-not-print-error-context-when-there-is-none.patch... OK
Running git apply with /Users/jackrg/.rbenv/versions/2.0.0-p576/lib/ruby/gems/2.0.0/gems/nokogiri-1.6.7.2/patches/libxml2/0020-xmlStopParser-reset-errNo.patch... OK
Running git apply with /Users/jackrg/.rbenv/versions/2.0.0-p576/lib/ruby/gems/2.0.0/gems/nokogiri-1.6.7.2/patches/libxml2/0021-Reuse-xmlHaltParser-where-it-makes-sense.patch... OK
Running 'configure' for libxml2 2.9.2... OK
Running 'compile' for libxml2 2.9.2... OK
Running 'install' for libxml2 2.9.2... OK
Activating libxml2 2.9.2 (from /Users/jackrg/.rbenv/versions/2.0.0-p576/lib/ruby/gems/2.0.0/gems/nokogiri-1.6.7.2/ports/x86_64-apple-darwin18.7.0/libxml2/2.9.2)...
************************************************************************
IMPORTANT NOTICE:

Building Nokogiri with a packaged version of libxslt-1.1.28
with the following patches applied:
- 0001-Adding-doc-update-related-to-1.1.28.patch
- 0002-Fix-a-couple-of-places-where-f-printf-parameters-wer.patch
- 0003-Initialize-pseudo-random-number-generator-with-curre.patch
- 0004-EXSLT-function-str-replace-is-broken-as-is.patch
- 0006-Fix-str-padding-to-work-with-UTF-8-strings.patch
- 0007-Separate-function-for-predicate-matching-in-patterns.patch
- 0008-Fix-direct-pattern-matching.patch
- 0009-Fix-certain-patterns-with-predicates.patch
- 0010-Fix-handling-of-UTF-8-strings-in-EXSLT-crypto-module.patch
- 0013-Memory-leak-in-xsltCompileIdKeyPattern-error-path.patch
- 0014-Fix-for-bug-436589.patch
- 0015-Fix-mkdir-for-mingw.patch
- 0016-Fix-for-type-confusion-in-preprocessing-attributes.patch
- 0017-Updated-config.guess.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
************************************************************************
Downloading libxslt-1.1.28.tar.gz (100%) 
Extracting libxslt-1.1.28.tar.gz into tmp/x86_64-apple-darwin18.7.0/ports/libxslt/1.1.28... OK
Running git apply with /Users/jackrg/.rbenv/versions/2.0.0-p576/lib/ruby/gems/2.0.0/gems/nokogiri-1.6.7.2/patches/libxslt/0001-Adding-doc-update-related-to-1.1.28.patch... OK
Running git apply with /Users/jackrg/.rbenv/versions/2.0.0-p576/lib/ruby/gems/2.0.0/gems/nokogiri-1.6.7.2/patches/libxslt/0002-Fix-a-couple-of-places-where-f-printf-parameters-wer.patch... OK
Running git apply with /Users/jackrg/.rbenv/versions/2.0.0-p576/lib/ruby/gems/2.0.0/gems/nokogiri-1.6.7.2/patches/libxslt/0003-Initialize-pseudo-random-number-generator-with-curre.patch... OK
Running git apply with /Users/jackrg/.rbenv/versions/2.0.0-p576/lib/ruby/gems/2.0.0/gems/nokogiri-1.6.7.2/patches/libxslt/0004-EXSLT-function-str-replace-is-broken-as-is.patch... OK
Running git apply with /Users/jackrg/.rbenv/versions/2.0.0-p576/lib/ruby/gems/2.0.0/gems/nokogiri-1.6.7.2/patches/libxslt/0006-Fix-str-padding-to-work-with-UTF-8-strings.patch... OK
Running git apply with /Users/jackrg/.rbenv/versions/2.0.0-p576/lib/ruby/gems/2.0.0/gems/nokogiri-1.6.7.2/patches/libxslt/0007-Separate-function-for-predicate-matching-in-patterns.patch... OK
Running git apply with /Users/jackrg/.rbenv/versions/2.0.0-p576/lib/ruby/gems/2.0.0/gems/nokogiri-1.6.7.2/patches/libxslt/0008-Fix-direct-pattern-matching.patch... OK
Running git apply with /Users/jackrg/.rbenv/versions/2.0.0-p576/lib/ruby/gems/2.0.0/gems/nokogiri-1.6.7.2/patches/libxslt/0009-Fix-certain-patterns-with-predicates.patch... OK
Running git apply with /Users/jackrg/.rbenv/versions/2.0.0-p576/lib/ruby/gems/2.0.0/gems/nokogiri-1.6.7.2/patches/libxslt/0010-Fix-handling-of-UTF-8-strings-in-EXSLT-crypto-module.patch... OK
Running git apply with /Users/jackrg/.rbenv/versions/2.0.0-p576/lib/ruby/gems/2.0.0/gems/nokogiri-1.6.7.2/patches/libxslt/0013-Memory-leak-in-xsltCompileIdKeyPattern-error-path.patch... OK
Running git apply with /Users/jackrg/.rbenv/versions/2.0.0-p576/lib/ruby/gems/2.0.0/gems/nokogiri-1.6.7.2/patches/libxslt/0014-Fix-for-bug-436589.patch... OK
Running git apply with /Users/jackrg/.rbenv/versions/2.0.0-p576/lib/ruby/gems/2.0.0/gems/nokogiri-1.6.7.2/patches/libxslt/0015-Fix-mkdir-for-mingw.patch... OK
Running git apply with /Users/jackrg/.rbenv/versions/2.0.0-p576/lib/ruby/gems/2.0.0/gems/nokogiri-1.6.7.2/patches/libxslt/0016-Fix-for-type-confusion-in-preprocessing-attributes.patch... OK
Running git apply with /Users/jackrg/.rbenv/versions/2.0.0-p576/lib/ruby/gems/2.0.0/gems/nokogiri-1.6.7.2/patches/libxslt/0017-Updated-config.guess.patch... OK
Running 'configure' for libxslt 1.1.28... OK
Running 'compile' for libxslt 1.1.28... OK
Running 'install' for libxslt 1.1.28... OK
Activating libxslt 1.1.28 (from /Users/jackrg/.rbenv/versions/2.0.0-p576/lib/ruby/gems/2.0.0/gems/nokogiri-1.6.7.2/ports/x86_64-apple-darwin18.7.0/libxslt/1.1.28)...
checking for main() in -llzma... no
checking for xmlParseDoc() in libxml/parser.h... yes
checking for xsltParseStylesheetDoc() in libxslt/xslt.h... no
checking for xsltParseStylesheetDoc() in -lxslt... no
checking for xsltParseStylesheetDoc() in -llibxslt... no
-----
libxslt is missing.  Please locate mkmf.log to investigate how it is failing.
-----

To see why this extension failed to compile, please check the mkmf.log which can be found here:

  /Users/jackrg/.rbenv/versions/2.0.0-p576/lib/ruby/gems/2.0.0/extensions/x86_64-darwin-18/2.0.0-static/nokogiri-1.6.7.2/mkmf.log

extconf failed, exit code 1

Gem files will remain installed in /Users/jackrg/.rbenv/versions/2.0.0-p576/lib/ruby/gems/2.0.0/gems/nokogiri-1.6.7.2 for inspection.
Results logged to /Users/jackrg/.rbenv/versions/2.0.0-p576/lib/ruby/gems/2.0.0/extensions/x86_64-darwin-18/2.0.0-static/nokogiri-1.6.7.2/gem_make.out

Full contents of mkmf.log (compile errors highlighted in red):

"clang -o conftest -I/Users/jackrg/.rbenv/versions/2.0.0-p576/include/ruby-2.0.0/x86_64-darwin18.7.0 -I/Users/jackrg/.rbenv/versions/2.0.0-p576/include/ruby-2.0.0/ruby/backward -I/Users/jackrg/.rbenv/versions/2.0.0-p576/include/ruby-2.0.0 -I. -I/Users/jackrg/.rbenv/versions/2.0.0-p576/include  -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT    -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wunused-variable -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wshorten-64-to-32 -Wimplicit-function-declaration  -pipe  conftest.c  -L. -L/Users/jackrg/.rbenv/versions/2.0.0-p576/lib -L. -L/Users/jackrg/.rbenv/versions/2.0.0-p576/lib  -fstack-protector     -lruby-static  -lpthread -ldl -lobjc  "
checked program was:
/* begin */
1: #include "ruby.h"
2: 
3: int main(int argc, char **argv)
4: {
5:   return 0;
6: }
/* end */

"clang -I/Users/jackrg/.rbenv/versions/2.0.0-p576/include/ruby-2.0.0/x86_64-darwin18.7.0 -I/Users/jackrg/.rbenv/versions/2.0.0-p576/include/ruby-2.0.0/ruby/backward -I/Users/jackrg/.rbenv/versions/2.0.0-p576/include/ruby-2.0.0 -I. -I/Users/jackrg/.rbenv/versions/2.0.0-p576/include  -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT    -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wunused-variable -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wshorten-64-to-32 -Wimplicit-function-declaration  -pipe    -Werror -c conftest.c"
checked program was:
/* begin */
1: #include "ruby.h"
2: 
3: int main() {return 0;}
/* end */

"clang -I/Users/jackrg/.rbenv/versions/2.0.0-p576/include/ruby-2.0.0/x86_64-darwin18.7.0 -I/Users/jackrg/.rbenv/versions/2.0.0-p576/include/ruby-2.0.0/ruby/backward -I/Users/jackrg/.rbenv/versions/2.0.0-p576/include/ruby-2.0.0 -I. -I/Users/jackrg/.rbenv/versions/2.0.0-p576/include  -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT    -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wunused-variable -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wshorten-64-to-32 -Wimplicit-function-declaration  -pipe  -Wno-error=unused-command-line-argument-hard-error-in-future   -Werror -c conftest.c"
error: unknown warning option '-Werror=unused-command-line-argument-hard-error-in-future'; did you mean '-Werror=unused-command-line-argument'? [-Werror,-Wunknown-warning-option]
checked program was:
/* begin */
1: #include "ruby.h"
2: 
3: int main() {return 0;}
/* end */

have_header: checking for iconv.h... -------------------- yes

"clang -E -I/Users/jackrg/.rbenv/versions/2.0.0-p576/include/ruby-2.0.0/x86_64-darwin18.7.0 -I/Users/jackrg/.rbenv/versions/2.0.0-p576/include/ruby-2.0.0/ruby/backward -I/Users/jackrg/.rbenv/versions/2.0.0-p576/include/ruby-2.0.0 -I. -I/Users/jackrg/.rbenv/versions/2.0.0-p576/include  -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT    -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wunused-variable -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wshorten-64-to-32 -Wimplicit-function-declaration  -pipe   conftest.c -o conftest.i"
checked program was:
/* begin */
1: #include "ruby.h"
2: 
3: #include <iconv.h>
/* end */

--------------------

have_library: checking for gzdopen() in -lz... -------------------- yes

"clang -o conftest -I/Users/jackrg/.rbenv/versions/2.0.0-p576/include/ruby-2.0.0/x86_64-darwin18.7.0 -I/Users/jackrg/.rbenv/versions/2.0.0-p576/include/ruby-2.0.0/ruby/backward -I/Users/jackrg/.rbenv/versions/2.0.0-p576/include/ruby-2.0.0 -I. -I/Users/jackrg/.rbenv/versions/2.0.0-p576/include  -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT    -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wunused-variable -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wshorten-64-to-32 -Wimplicit-function-declaration  -pipe  conftest.c  -L. -L/Users/jackrg/.rbenv/versions/2.0.0-p576/lib -L. -L/Users/jackrg/.rbenv/versions/2.0.0-p576/lib  -fstack-protector     -lruby-static -lz  -lpthread -ldl -lobjc  "
checked program was:
/* begin */
 1: #include "ruby.h"
 2: 
 3: #include <zlib.h>
 4: 
 5: /*top*/
 6: extern int t(void);
 7: int t(void) { void ((*volatile p)()); p = (void ((*)()))gzdopen; return 0; }
 8: int main(int argc, char **argv)
 9: {
10:   if (argc > 1000000) {
11:     printf("%p", &t);
12:   }
13: 
14:   return 0;
15: }
/* end */

--------------------

have_iconv?: checking for iconv... -------------------- yes

"clang -o conftest -I/Users/jackrg/.rbenv/versions/2.0.0-p576/include/ruby-2.0.0/x86_64-darwin18.7.0 -I/Users/jackrg/.rbenv/versions/2.0.0-p576/include/ruby-2.0.0/ruby/backward -I/Users/jackrg/.rbenv/versions/2.0.0-p576/include/ruby-2.0.0 -I. -I/Users/jackrg/.rbenv/versions/2.0.0-p576/include  -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT    -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wunused-variable -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wshorten-64-to-32 -Wimplicit-function-declaration  -pipe  conftest.c  -L. -L/Users/jackrg/.rbenv/versions/2.0.0-p576/lib -L. -L/Users/jackrg/.rbenv/versions/2.0.0-p576/lib  -fstack-protector     -lruby-static  -lpthread -ldl -lobjc  "
Undefined symbols for architecture x86_64:
  "_iconv", referenced from:
      _main in conftest-302451.o
  "_iconv_open", referenced from:
      _main in conftest-302451.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
checked program was:
/* begin */
 1: #include "ruby.h"
 2: 
 3: #include <stdlib.h>
 4: #include <iconv.h>
 5: 
 6: int main(void)
 7: {
 8:     iconv_t cd = iconv_open("", "");
 9:     iconv(cd, NULL, NULL, NULL, NULL);
10:     return EXIT_SUCCESS;
11: }
/* end */

"clang -o conftest -I/Users/jackrg/.rbenv/versions/2.0.0-p576/include/ruby-2.0.0/x86_64-darwin18.7.0 -I/Users/jackrg/.rbenv/versions/2.0.0-p576/include/ruby-2.0.0/ruby/backward -I/Users/jackrg/.rbenv/versions/2.0.0-p576/include/ruby-2.0.0 -I. -I/Users/jackrg/.rbenv/versions/2.0.0-p576/include  -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT    -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wunused-variable -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wshorten-64-to-32 -Wimplicit-function-declaration  -pipe  conftest.c  -L. -L/Users/jackrg/.rbenv/versions/2.0.0-p576/lib -L. -L/Users/jackrg/.rbenv/versions/2.0.0-p576/lib  -fstack-protector     -lruby-static -liconv -lpthread -ldl -lobjc  "
checked program was:
/* begin */
 1: #include "ruby.h"
 2: 
 3: #include <stdlib.h>
 4: #include <iconv.h>
 5: 
 6: int main(void)
 7: {
 8:     iconv_t cd = iconv_open("", "");
 9:     iconv(cd, NULL, NULL, NULL, NULL);
10:     return EXIT_SUCCESS;
11: }
/* end */

--------------------

have_library: checking for main() in -llzma... -------------------- no

"clang -o conftest -I/Users/jackrg/.rbenv/versions/2.0.0-p576/include/ruby-2.0.0/x86_64-darwin18.7.0 -I/Users/jackrg/.rbenv/versions/2.0.0-p576/include/ruby-2.0.0/ruby/backward -I/Users/jackrg/.rbenv/versions/2.0.0-p576/include/ruby-2.0.0 -I. -I/Users/jackrg/.rbenv/versions/2.0.0-p576/include  -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT    -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wunused-variable -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wshorten-64-to-32 -Wimplicit-function-declaration  -pipe  -DNOKOGIRI_USE_PACKAGED_LIBRARIES conftest.c  -L. -L/Users/jackrg/.rbenv/versions/2.0.0-p576/lib -L. -L/Users/jackrg/.rbenv/versions/2.0.0-p576/lib  -fstack-protector     -lruby-static -llzma  -lpthread -ldl -lobjc  "
conftest.c:5:57: error: use of undeclared identifier 'main'
int t(void) { void ((*volatile p)()); p = (void ((*)()))main; return 0; }
                                                        ^
1 error generated.
checked program was:
/* begin */
 1: #include "ruby.h"
 2: 
 3: /*top*/
 4: extern int t(void);
 5: int t(void) { void ((*volatile p)()); p = (void ((*)()))main; return 0; }
 6: int main(int argc, char **argv)
 7: {
 8:   if (argc > 1000000) {
 9:     printf("%p", &t);
10:   }
11: 
12:   return 0;
13: }
/* end */

"clang -o conftest -I/Users/jackrg/.rbenv/versions/2.0.0-p576/include/ruby-2.0.0/x86_64-darwin18.7.0 -I/Users/jackrg/.rbenv/versions/2.0.0-p576/include/ruby-2.0.0/ruby/backward -I/Users/jackrg/.rbenv/versions/2.0.0-p576/include/ruby-2.0.0 -I. -I/Users/jackrg/.rbenv/versions/2.0.0-p576/include  -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT    -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wunused-variable -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wshorten-64-to-32 -Wimplicit-function-declaration  -pipe  -DNOKOGIRI_USE_PACKAGED_LIBRARIES conftest.c  -L. -L/Users/jackrg/.rbenv/versions/2.0.0-p576/lib -L. -L/Users/jackrg/.rbenv/versions/2.0.0-p576/lib  -fstack-protector     -lruby-static -llzma  -lpthread -ldl -lobjc  "
conftest.c:5:15: error: implicit declaration of function 'main' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
int t(void) { main(); return 0; }
              ^
1 error generated.
checked program was:
/* begin */
 1: #include "ruby.h"
 2: 
 3: /*top*/
 4: extern int t(void);
 5: int t(void) { main(); return 0; }
 6: int main(int argc, char **argv)
 7: {
 8:   if (argc > 1000000) {
 9:     printf("%p", &t);
10:   }
11: 
12:   return 0;
13: }
/* end */

--------------------

have_func: checking for xmlParseDoc() in libxml/parser.h... -------------------- yes

"clang -o conftest -I/Users/jackrg/.rbenv/versions/2.0.0-p576/include/ruby-2.0.0/x86_64-darwin18.7.0 -I/Users/jackrg/.rbenv/versions/2.0.0-p576/include/ruby-2.0.0/ruby/backward -I/Users/jackrg/.rbenv/versions/2.0.0-p576/include/ruby-2.0.0 -I. -I/Users/jackrg/.rbenv/versions/2.0.0-p576/lib/ruby/gems/2.0.0/gems/nokogiri-1.6.7.2/ports/x86_64-apple-darwin18.7.0/libxslt/1.1.28/include -I/Users/jackrg/.rbenv/versions/2.0.0-p576/lib/ruby/gems/2.0.0/gems/nokogiri-1.6.7.2/ports/x86_64-apple-darwin18.7.0/libxml2/2.9.2/include/libxml2 -I/Users/jackrg/.rbenv/versions/2.0.0-p576/lib/ruby/gems/2.0.0/gems/nokogiri-1.6.7.2/ports/x86_64-apple-darwin18.7.0/libxml2/2.9.2/include/libxml2 -I/Users/jackrg/.rbenv/versions/2.0.0-p576/include  -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   "-DNOKOGIRI_LIBXML2_PATH=\"/Users/jackrg/.rbenv/versions/2.0.0-p576/lib/ruby/gems/2.0.0/gems/nokogiri-1.6.7.2/ports/x86_64-apple-darwin18.7.0/libxml2/2.9.2\"" "-DNOKOGIRI_LIBXML2_PATCHES=\"0001-Revert-Missing-initialization-for-the-catalog-module.patch 0002-Fix-missing-entities-after-CVE-2014-3660-fix.patch 0003-Stop-parsing-on-entities-boundaries-errors.patch 0004-Cleanup-conditional-section-error-handling.patch 0005-CVE-2015-1819-Enforce-the-reader-to-run-in-constant-.patch 0006-Another-variation-of-overflow-in-Conditional-section.patch 0007-Fix-an-error-in-previous-Conditional-section-patch.patch 0008-CVE-2015-8035-Fix-XZ-compression-support-loop.patch 0009-Updated-config.guess.patch 0010-Fix-parsering-short-unclosed-comment-uninitialized-access.patch 0011-Avoid-extra-processing-of-MarkupDecl-when-EOF.patch 0012-Avoid-processing-entities-after-encoding-conversion-.patch 0013-CVE-2015-7497-Avoid-an-heap-buffer-overflow-in-xmlDi.patch 0014-CVE-2015-5312-Another-entity-expansion-issue.patch 0015-Add-xmlHaltParser-to-stop-the-parser.patch 0016-Detect-incoherency-on-GROW.patch 0017-CVE-2015-7500-Fix-memory-access-error-due-to-incorre.patch 0018-CVE-2015-8242-Buffer-overead-with-HTML-parser-in-pus.patch 0019-Do-not-print-error-context-when-there-is-none.patch 0020-xmlStopParser-reset-errNo.patch 0021-Reuse-xmlHaltParser-where-it-makes-sense.patch\"" "-DNOKOGIRI_LIBXSLT_PATH=\"/Users/jackrg/.rbenv/versions/2.0.0-p576/lib/ruby/gems/2.0.0/gems/nokogiri-1.6.7.2/ports/x86_64-apple-darwin18.7.0/libxslt/1.1.28\"" "-DNOKOGIRI_LIBXSLT_PATCHES=\"0001-Adding-doc-update-related-to-1.1.28.patch 0002-Fix-a-couple-of-places-where-f-printf-parameters-wer.patch 0003-Initialize-pseudo-random-number-generator-with-curre.patch 0004-EXSLT-function-str-replace-is-broken-as-is.patch 0006-Fix-str-padding-to-work-with-UTF-8-strings.patch 0007-Separate-function-for-predicate-matching-in-patterns.patch 0008-Fix-direct-pattern-matching.patch 0009-Fix-certain-patterns-with-predicates.patch 0010-Fix-handling-of-UTF-8-strings-in-EXSLT-crypto-module.patch 0013-Memory-leak-in-xsltCompileIdKeyPattern-error-path.patch 0014-Fix-for-bug-436589.patch 0015-Fix-mkdir-for-mingw.patch 0016-Fix-for-type-confusion-in-preprocessing-attributes.patch 0017-Updated-config.guess.patch\""  -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wunused-variable -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wshorten-64-to-32 -Wimplicit-function-declaration  -pipe  -DNOKOGIRI_USE_PACKAGED_LIBRARIES conftest.c  -L. -L/Users/jackrg/.rbenv/versions/2.0.0-p576/lib -L/Users/jackrg/.rbenv/versions/2.0.0-p576/lib/ruby/gems/2.0.0/gems/nokogiri-1.6.7.2/ports/x86_64-apple-darwin18.7.0/libxml2/2.9.2/lib -L/Users/jackrg/.rbenv/versions/2.0.0-p576/lib/ruby/gems/2.0.0/gems/nokogiri-1.6.7.2/ports/x86_64-apple-darwin18.7.0/libxslt/1.1.28/lib -L. -L/Users/jackrg/.rbenv/versions/2.0.0-p576/lib  -fstack-protector    /Users/jackrg/.rbenv/versions/2.0.0-p576/lib/ruby/gems/2.0.0/gems/nokogiri-1.6.7.2/ports/x86_64-apple-darwin18.7.0/libxslt/1.1.28/lib/libexslt.a -lm -liconv -lpthread -lz /Users/jackrg/.rbenv/versions/2.0.0-p576/lib/ruby/gems/2.0.0/gems/nokogiri-1.6.7.2/ports/x86_64-apple-darwin18.7.0/libxml2/2.9.2/lib/libxml2.a /Users/jackrg/.rbenv/versions/2.0.0-p576/lib/ruby/gems/2.0.0/gems/nokogiri-1.6.7.2/ports/x86_64-apple-darwin18.7.0/libxslt/1.1.28/lib/libxslt.a -lm -liconv -lpthread -lz /Users/jackrg/.rbenv/versions/2.0.0-p576/lib/ruby/gems/2.0.0/gems/nokogiri-1.6.7.2/ports/x86_64-apple-darwin18.7.0/libxml2/2.9.2/lib/libxml2.a -lruby-static /Users/jackrg/.rbenv/versions/2.0.0-p576/lib/ruby/gems/2.0.0/gems/nokogiri-1.6.7.2/ports/x86_64-apple-darwin18.7.0/libxslt/1.1.28/lib/libexslt.a -lm -liconv -lpthread -lz /Users/jackrg/.rbenv/versions/2.0.0-p576/lib/ruby/gems/2.0.0/gems/nokogiri-1.6.7.2/ports/x86_64-apple-darwin18.7.0/libxml2/2.9.2/lib/libxml2.a /Users/jackrg/.rbenv/versions/2.0.0-p576/lib/ruby/gems/2.0.0/gems/nokogiri-1.6.7.2/ports/x86_64-apple-darwin18.7.0/libxslt/1.1.28/lib/libxslt.a -lm -liconv -lpthread -lz /Users/jackrg/.rbenv/versions/2.0.0-p576/lib/ruby/gems/2.0.0/gems/nokogiri-1.6.7.2/ports/x86_64-apple-darwin18.7.0/libxml2/2.9.2/lib/libxml2.a -lpthread -ldl -lobjc  "
checked program was:
/* begin */
 1: #include "ruby.h"
 2: 
 3: #include <libxml/parser.h>
 4: 
 5: /*top*/
 6: extern int t(void);
 7: int t(void) { void ((*volatile p)()); p = (void ((*)()))xmlParseDoc; return 0; }
 8: int main(int argc, char **argv)
 9: {
10:   if (argc > 1000000) {
11:     printf("%p", &t);
12:   }
13: 
14:   return 0;
15: }
/* end */

--------------------

have_func: checking for xsltParseStylesheetDoc() in libxslt/xslt.h... -------------------- no

"clang -o conftest -I/Users/jackrg/.rbenv/versions/2.0.0-p576/include/ruby-2.0.0/x86_64-darwin18.7.0 -I/Users/jackrg/.rbenv/versions/2.0.0-p576/include/ruby-2.0.0/ruby/backward -I/Users/jackrg/.rbenv/versions/2.0.0-p576/include/ruby-2.0.0 -I. -I/Users/jackrg/.rbenv/versions/2.0.0-p576/lib/ruby/gems/2.0.0/gems/nokogiri-1.6.7.2/ports/x86_64-apple-darwin18.7.0/libxslt/1.1.28/include -I/Users/jackrg/.rbenv/versions/2.0.0-p576/lib/ruby/gems/2.0.0/gems/nokogiri-1.6.7.2/ports/x86_64-apple-darwin18.7.0/libxml2/2.9.2/include/libxml2 -I/Users/jackrg/.rbenv/versions/2.0.0-p576/lib/ruby/gems/2.0.0/gems/nokogiri-1.6.7.2/ports/x86_64-apple-darwin18.7.0/libxml2/2.9.2/include/libxml2 -I/Users/jackrg/.rbenv/versions/2.0.0-p576/include  -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   "-DNOKOGIRI_LIBXML2_PATH=\"/Users/jackrg/.rbenv/versions/2.0.0-p576/lib/ruby/gems/2.0.0/gems/nokogiri-1.6.7.2/ports/x86_64-apple-darwin18.7.0/libxml2/2.9.2\"" "-DNOKOGIRI_LIBXML2_PATCHES=\"0001-Revert-Missing-initialization-for-the-catalog-module.patch 0002-Fix-missing-entities-after-CVE-2014-3660-fix.patch 0003-Stop-parsing-on-entities-boundaries-errors.patch 0004-Cleanup-conditional-section-error-handling.patch 0005-CVE-2015-1819-Enforce-the-reader-to-run-in-constant-.patch 0006-Another-variation-of-overflow-in-Conditional-section.patch 0007-Fix-an-error-in-previous-Conditional-section-patch.patch 0008-CVE-2015-8035-Fix-XZ-compression-support-loop.patch 0009-Updated-config.guess.patch 0010-Fix-parsering-short-unclosed-comment-uninitialized-access.patch 0011-Avoid-extra-processing-of-MarkupDecl-when-EOF.patch 0012-Avoid-processing-entities-after-encoding-conversion-.patch 0013-CVE-2015-7497-Avoid-an-heap-buffer-overflow-in-xmlDi.patch 0014-CVE-2015-5312-Another-entity-expansion-issue.patch 0015-Add-xmlHaltParser-to-stop-the-parser.patch 0016-Detect-incoherency-on-GROW.patch 0017-CVE-2015-7500-Fix-memory-access-error-due-to-incorre.patch 0018-CVE-2015-8242-Buffer-overead-with-HTML-parser-in-pus.patch 0019-Do-not-print-error-context-when-there-is-none.patch 0020-xmlStopParser-reset-errNo.patch 0021-Reuse-xmlHaltParser-where-it-makes-sense.patch\"" "-DNOKOGIRI_LIBXSLT_PATH=\"/Users/jackrg/.rbenv/versions/2.0.0-p576/lib/ruby/gems/2.0.0/gems/nokogiri-1.6.7.2/ports/x86_64-apple-darwin18.7.0/libxslt/1.1.28\"" "-DNOKOGIRI_LIBXSLT_PATCHES=\"0001-Adding-doc-update-related-to-1.1.28.patch 0002-Fix-a-couple-of-places-where-f-printf-parameters-wer.patch 0003-Initialize-pseudo-random-number-generator-with-curre.patch 0004-EXSLT-function-str-replace-is-broken-as-is.patch 0006-Fix-str-padding-to-work-with-UTF-8-strings.patch 0007-Separate-function-for-predicate-matching-in-patterns.patch 0008-Fix-direct-pattern-matching.patch 0009-Fix-certain-patterns-with-predicates.patch 0010-Fix-handling-of-UTF-8-strings-in-EXSLT-crypto-module.patch 0013-Memory-leak-in-xsltCompileIdKeyPattern-error-path.patch 0014-Fix-for-bug-436589.patch 0015-Fix-mkdir-for-mingw.patch 0016-Fix-for-type-confusion-in-preprocessing-attributes.patch 0017-Updated-config.guess.patch\""  -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wunused-variable -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wshorten-64-to-32 -Wimplicit-function-declaration  -pipe  -DNOKOGIRI_USE_PACKAGED_LIBRARIES conftest.c  -L. -L/Users/jackrg/.rbenv/versions/2.0.0-p576/lib -L/Users/jackrg/.rbenv/versions/2.0.0-p576/lib/ruby/gems/2.0.0/gems/nokogiri-1.6.7.2/ports/x86_64-apple-darwin18.7.0/libxml2/2.9.2/lib -L/Users/jackrg/.rbenv/versions/2.0.0-p576/lib/ruby/gems/2.0.0/gems/nokogiri-1.6.7.2/ports/x86_64-apple-darwin18.7.0/libxslt/1.1.28/lib -L. -L/Users/jackrg/.rbenv/versions/2.0.0-p576/lib  -fstack-protector    /Users/jackrg/.rbenv/versions/2.0.0-p576/lib/ruby/gems/2.0.0/gems/nokogiri-1.6.7.2/ports/x86_64-apple-darwin18.7.0/libxslt/1.1.28/lib/libexslt.a -lm -liconv -lpthread -lz /Users/jackrg/.rbenv/versions/2.0.0-p576/lib/ruby/gems/2.0.0/gems/nokogiri-1.6.7.2/ports/x86_64-apple-darwin18.7.0/libxml2/2.9.2/lib/libxml2.a /Users/jackrg/.rbenv/versions/2.0.0-p576/lib/ruby/gems/2.0.0/gems/nokogiri-1.6.7.2/ports/x86_64-apple-darwin18.7.0/libxslt/1.1.28/lib/libxslt.a -lm -liconv -lpthread -lz /Users/jackrg/.rbenv/versions/2.0.0-p576/lib/ruby/gems/2.0.0/gems/nokogiri-1.6.7.2/ports/x86_64-apple-darwin18.7.0/libxml2/2.9.2/lib/libxml2.a -lruby-static /Users/jackrg/.rbenv/versions/2.0.0-p576/lib/ruby/gems/2.0.0/gems/nokogiri-1.6.7.2/ports/x86_64-apple-darwin18.7.0/libxslt/1.1.28/lib/libexslt.a -lm -liconv -lpthread -lz /Users/jackrg/.rbenv/versions/2.0.0-p576/lib/ruby/gems/2.0.0/gems/nokogiri-1.6.7.2/ports/x86_64-apple-darwin18.7.0/libxml2/2.9.2/lib/libxml2.a /Users/jackrg/.rbenv/versions/2.0.0-p576/lib/ruby/gems/2.0.0/gems/nokogiri-1.6.7.2/ports/x86_64-apple-darwin18.7.0/libxslt/1.1.28/lib/libxslt.a -lm -liconv -lpthread -lz /Users/jackrg/.rbenv/versions/2.0.0-p576/lib/ruby/gems/2.0.0/gems/nokogiri-1.6.7.2/ports/x86_64-apple-darwin18.7.0/libxml2/2.9.2/lib/libxml2.a -lpthread -ldl -lobjc  "
conftest.c:7:57: error: use of undeclared identifier 'xsltParseStylesheetDoc'
int t(void) { void ((*volatile p)()); p = (void ((*)()))xsltParseStylesheetDoc; return 0; }
                                                        ^
1 error generated.
checked program was:
/* begin */
 1: #include "ruby.h"
 2: 
 3: #include <libxslt/xslt.h>
 4: 
 5: /*top*/
 6: extern int t(void);
 7: int t(void) { void ((*volatile p)()); p = (void ((*)()))xsltParseStylesheetDoc; return 0; }
 8: int main(int argc, char **argv)
 9: {
10:   if (argc > 1000000) {
11:     printf("%p", &t);
12:   }
13: 
14:   return 0;
15: }
/* end */

"clang -o conftest -I/Users/jackrg/.rbenv/versions/2.0.0-p576/include/ruby-2.0.0/x86_64-darwin18.7.0 -I/Users/jackrg/.rbenv/versions/2.0.0-p576/include/ruby-2.0.0/ruby/backward -I/Users/jackrg/.rbenv/versions/2.0.0-p576/include/ruby-2.0.0 -I. -I/Users/jackrg/.rbenv/versions/2.0.0-p576/lib/ruby/gems/2.0.0/gems/nokogiri-1.6.7.2/ports/x86_64-apple-darwin18.7.0/libxslt/1.1.28/include -I/Users/jackrg/.rbenv/versions/2.0.0-p576/lib/ruby/gems/2.0.0/gems/nokogiri-1.6.7.2/ports/x86_64-apple-darwin18.7.0/libxml2/2.9.2/include/libxml2 -I/Users/jackrg/.rbenv/versions/2.0.0-p576/lib/ruby/gems/2.0.0/gems/nokogiri-1.6.7.2/ports/x86_64-apple-darwin18.7.0/libxml2/2.9.2/include/libxml2 -I/Users/jackrg/.rbenv/versions/2.0.0-p576/include  -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   "-DNOKOGIRI_LIBXML2_PATH=\"/Users/jackrg/.rbenv/versions/2.0.0-p576/lib/ruby/gems/2.0.0/gems/nokogiri-1.6.7.2/ports/x86_64-apple-darwin18.7.0/libxml2/2.9.2\"" "-DNOKOGIRI_LIBXML2_PATCHES=\"0001-Revert-Missing-initialization-for-the-catalog-module.patch 0002-Fix-missing-entities-after-CVE-2014-3660-fix.patch 0003-Stop-parsing-on-entities-boundaries-errors.patch 0004-Cleanup-conditional-section-error-handling.patch 0005-CVE-2015-1819-Enforce-the-reader-to-run-in-constant-.patch 0006-Another-variation-of-overflow-in-Conditional-section.patch 0007-Fix-an-error-in-previous-Conditional-section-patch.patch 0008-CVE-2015-8035-Fix-XZ-compression-support-loop.patch 0009-Updated-config.guess.patch 0010-Fix-parsering-short-unclosed-comment-uninitialized-access.patch 0011-Avoid-extra-processing-of-MarkupDecl-when-EOF.patch 0012-Avoid-processing-entities-after-encoding-conversion-.patch 0013-CVE-2015-7497-Avoid-an-heap-buffer-overflow-in-xmlDi.patch 0014-CVE-2015-5312-Another-entity-expansion-issue.patch 0015-Add-xmlHaltParser-to-stop-the-parser.patch 0016-Detect-incoherency-on-GROW.patch 0017-CVE-2015-7500-Fix-memory-access-error-due-to-incorre.patch 0018-CVE-2015-8242-Buffer-overead-with-HTML-parser-in-pus.patch 0019-Do-not-print-error-context-when-there-is-none.patch 0020-xmlStopParser-reset-errNo.patch 0021-Reuse-xmlHaltParser-where-it-makes-sense.patch\"" "-DNOKOGIRI_LIBXSLT_PATH=\"/Users/jackrg/.rbenv/versions/2.0.0-p576/lib/ruby/gems/2.0.0/gems/nokogiri-1.6.7.2/ports/x86_64-apple-darwin18.7.0/libxslt/1.1.28\"" "-DNOKOGIRI_LIBXSLT_PATCHES=\"0001-Adding-doc-update-related-to-1.1.28.patch 0002-Fix-a-couple-of-places-where-f-printf-parameters-wer.patch 0003-Initialize-pseudo-random-number-generator-with-curre.patch 0004-EXSLT-function-str-replace-is-broken-as-is.patch 0006-Fix-str-padding-to-work-with-UTF-8-strings.patch 0007-Separate-function-for-predicate-matching-in-patterns.patch 0008-Fix-direct-pattern-matching.patch 0009-Fix-certain-patterns-with-predicates.patch 0010-Fix-handling-of-UTF-8-strings-in-EXSLT-crypto-module.patch 0013-Memory-leak-in-xsltCompileIdKeyPattern-error-path.patch 0014-Fix-for-bug-436589.patch 0015-Fix-mkdir-for-mingw.patch 0016-Fix-for-type-confusion-in-preprocessing-attributes.patch 0017-Updated-config.guess.patch\""  -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wunused-variable -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wshorten-64-to-32 -Wimplicit-function-declaration  -pipe  -DNOKOGIRI_USE_PACKAGED_LIBRARIES conftest.c  -L. -L/Users/jackrg/.rbenv/versions/2.0.0-p576/lib -L/Users/jackrg/.rbenv/versions/2.0.0-p576/lib/ruby/gems/2.0.0/gems/nokogiri-1.6.7.2/ports/x86_64-apple-darwin18.7.0/libxml2/2.9.2/lib -L/Users/jackrg/.rbenv/versions/2.0.0-p576/lib/ruby/gems/2.0.0/gems/nokogiri-1.6.7.2/ports/x86_64-apple-darwin18.7.0/libxslt/1.1.28/lib -L. -L/Users/jackrg/.rbenv/versions/2.0.0-p576/lib  -fstack-protector    /Users/jackrg/.rbenv/versions/2.0.0-p576/lib/ruby/gems/2.0.0/gems/nokogiri-1.6.7.2/ports/x86_64-apple-darwin18.7.0/libxslt/1.1.28/lib/libexslt.a -lm -liconv -lpthread -lz /Users/jackrg/.rbenv/versions/2.0.0-p576/lib/ruby/gems/2.0.0/gems/nokogiri-1.6.7.2/ports/x86_64-apple-darwin18.7.0/libxml2/2.9.2/lib/libxml2.a /Users/jackrg/.rbenv/versions/2.0.0-p576/lib/ruby/gems/2.0.0/gems/nokogiri-1.6.7.2/ports/x86_64-apple-darwin18.7.0/libxslt/1.1.28/lib/libxslt.a -lm -liconv -lpthread -lz /Users/jackrg/.rbenv/versions/2.0.0-p576/lib/ruby/gems/2.0.0/gems/nokogiri-1.6.7.2/ports/x86_64-apple-darwin18.7.0/libxml2/2.9.2/lib/libxml2.a -lruby-static /Users/jackrg/.rbenv/versions/2.0.0-p576/lib/ruby/gems/2.0.0/gems/nokogiri-1.6.7.2/ports/x86_64-apple-darwin18.7.0/libxslt/1.1.28/lib/libexslt.a -lm -liconv -lpthread -lz /Users/jackrg/.rbenv/versions/2.0.0-p576/lib/ruby/gems/2.0.0/gems/nokogiri-1.6.7.2/ports/x86_64-apple-darwin18.7.0/libxml2/2.9.2/lib/libxml2.a /Users/jackrg/.rbenv/versions/2.0.0-p576/lib/ruby/gems/2.0.0/gems/nokogiri-1.6.7.2/ports/x86_64-apple-darwin18.7.0/libxslt/1.1.28/lib/libxslt.a -lm -liconv -lpthread -lz /Users/jackrg/.rbenv/versions/2.0.0-p576/lib/ruby/gems/2.0.0/gems/nokogiri-1.6.7.2/ports/x86_64-apple-darwin18.7.0/libxml2/2.9.2/lib/libxml2.a -lpthread -ldl -lobjc  "
conftest.c:7:15: error: implicit declaration of function 'xsltParseStylesheetDoc' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
int t(void) { xsltParseStylesheetDoc(); return 0; }
              ^
1 error generated.
checked program was:
/* begin */
 1: #include "ruby.h"
 2: 
 3: #include <libxslt/xslt.h>
 4: 
 5: /*top*/
 6: extern int t(void);
 7: int t(void) { xsltParseStylesheetDoc(); return 0; }
 8: int main(int argc, char **argv)
 9: {
10:   if (argc > 1000000) {
11:     printf("%p", &t);
12:   }
13: 
14:   return 0;
15: }
/* end */

--------------------

have_library: checking for xsltParseStylesheetDoc() in -lxslt... -------------------- no

"clang -o conftest -I/Users/jackrg/.rbenv/versions/2.0.0-p576/include/ruby-2.0.0/x86_64-darwin18.7.0 -I/Users/jackrg/.rbenv/versions/2.0.0-p576/include/ruby-2.0.0/ruby/backward -I/Users/jackrg/.rbenv/versions/2.0.0-p576/include/ruby-2.0.0 -I. -I/Users/jackrg/.rbenv/versions/2.0.0-p576/lib/ruby/gems/2.0.0/gems/nokogiri-1.6.7.2/ports/x86_64-apple-darwin18.7.0/libxslt/1.1.28/include -I/Users/jackrg/.rbenv/versions/2.0.0-p576/lib/ruby/gems/2.0.0/gems/nokogiri-1.6.7.2/ports/x86_64-apple-darwin18.7.0/libxml2/2.9.2/include/libxml2 -I/Users/jackrg/.rbenv/versions/2.0.0-p576/lib/ruby/gems/2.0.0/gems/nokogiri-1.6.7.2/ports/x86_64-apple-darwin18.7.0/libxml2/2.9.2/include/libxml2 -I/Users/jackrg/.rbenv/versions/2.0.0-p576/include  -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   "-DNOKOGIRI_LIBXML2_PATH=\"/Users/jackrg/.rbenv/versions/2.0.0-p576/lib/ruby/gems/2.0.0/gems/nokogiri-1.6.7.2/ports/x86_64-apple-darwin18.7.0/libxml2/2.9.2\"" "-DNOKOGIRI_LIBXML2_PATCHES=\"0001-Revert-Missing-initialization-for-the-catalog-module.patch 0002-Fix-missing-entities-after-CVE-2014-3660-fix.patch 0003-Stop-parsing-on-entities-boundaries-errors.patch 0004-Cleanup-conditional-section-error-handling.patch 0005-CVE-2015-1819-Enforce-the-reader-to-run-in-constant-.patch 0006-Another-variation-of-overflow-in-Conditional-section.patch 0007-Fix-an-error-in-previous-Conditional-section-patch.patch 0008-CVE-2015-8035-Fix-XZ-compression-support-loop.patch 0009-Updated-config.guess.patch 0010-Fix-parsering-short-unclosed-comment-uninitialized-access.patch 0011-Avoid-extra-processing-of-MarkupDecl-when-EOF.patch 0012-Avoid-processing-entities-after-encoding-conversion-.patch 0013-CVE-2015-7497-Avoid-an-heap-buffer-overflow-in-xmlDi.patch 0014-CVE-2015-5312-Another-entity-expansion-issue.patch 0015-Add-xmlHaltParser-to-stop-the-parser.patch 0016-Detect-incoherency-on-GROW.patch 0017-CVE-2015-7500-Fix-memory-access-error-due-to-incorre.patch 0018-CVE-2015-8242-Buffer-overead-with-HTML-parser-in-pus.patch 0019-Do-not-print-error-context-when-there-is-none.patch 0020-xmlStopParser-reset-errNo.patch 0021-Reuse-xmlHaltParser-where-it-makes-sense.patch\"" "-DNOKOGIRI_LIBXSLT_PATH=\"/Users/jackrg/.rbenv/versions/2.0.0-p576/lib/ruby/gems/2.0.0/gems/nokogiri-1.6.7.2/ports/x86_64-apple-darwin18.7.0/libxslt/1.1.28\"" "-DNOKOGIRI_LIBXSLT_PATCHES=\"0001-Adding-doc-update-related-to-1.1.28.patch 0002-Fix-a-couple-of-places-where-f-printf-parameters-wer.patch 0003-Initialize-pseudo-random-number-generator-with-curre.patch 0004-EXSLT-function-str-replace-is-broken-as-is.patch 0006-Fix-str-padding-to-work-with-UTF-8-strings.patch 0007-Separate-function-for-predicate-matching-in-patterns.patch 0008-Fix-direct-pattern-matching.patch 0009-Fix-certain-patterns-with-predicates.patch 0010-Fix-handling-of-UTF-8-strings-in-EXSLT-crypto-module.patch 0013-Memory-leak-in-xsltCompileIdKeyPattern-error-path.patch 0014-Fix-for-bug-436589.patch 0015-Fix-mkdir-for-mingw.patch 0016-Fix-for-type-confusion-in-preprocessing-attributes.patch 0017-Updated-config.guess.patch\""  -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wunused-variable -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wshorten-64-to-32 -Wimplicit-function-declaration  -pipe  -DNOKOGIRI_USE_PACKAGED_LIBRARIES conftest.c  -L. -L/Users/jackrg/.rbenv/versions/2.0.0-p576/lib -L/Users/jackrg/.rbenv/versions/2.0.0-p576/lib/ruby/gems/2.0.0/gems/nokogiri-1.6.7.2/ports/x86_64-apple-darwin18.7.0/libxml2/2.9.2/lib -L/Users/jackrg/.rbenv/versions/2.0.0-p576/lib/ruby/gems/2.0.0/gems/nokogiri-1.6.7.2/ports/x86_64-apple-darwin18.7.0/libxslt/1.1.28/lib -L. -L/Users/jackrg/.rbenv/versions/2.0.0-p576/lib  -fstack-protector    /Users/jackrg/.rbenv/versions/2.0.0-p576/lib/ruby/gems/2.0.0/gems/nokogiri-1.6.7.2/ports/x86_64-apple-darwin18.7.0/libxslt/1.1.28/lib/libexslt.a -lm -liconv -lpthread -lz /Users/jackrg/.rbenv/versions/2.0.0-p576/lib/ruby/gems/2.0.0/gems/nokogiri-1.6.7.2/ports/x86_64-apple-darwin18.7.0/libxml2/2.9.2/lib/libxml2.a /Users/jackrg/.rbenv/versions/2.0.0-p576/lib/ruby/gems/2.0.0/gems/nokogiri-1.6.7.2/ports/x86_64-apple-darwin18.7.0/libxslt/1.1.28/lib/libxslt.a -lm -liconv -lpthread -lz /Users/jackrg/.rbenv/versions/2.0.0-p576/lib/ruby/gems/2.0.0/gems/nokogiri-1.6.7.2/ports/x86_64-apple-darwin18.7.0/libxml2/2.9.2/lib/libxml2.a -lruby-static -lxslt /Users/jackrg/.rbenv/versions/2.0.0-p576/lib/ruby/gems/2.0.0/gems/nokogiri-1.6.7.2/ports/x86_64-apple-darwin18.7.0/libxslt/1.1.28/lib/libexslt.a -lm -liconv -lpthread -lz /Users/jackrg/.rbenv/versions/2.0.0-p576/lib/ruby/gems/2.0.0/gems/nokogiri-1.6.7.2/ports/x86_64-apple-darwin18.7.0/libxml2/2.9.2/lib/libxml2.a /Users/jackrg/.rbenv/versions/2.0.0-p576/lib/ruby/gems/2.0.0/gems/nokogiri-1.6.7.2/ports/x86_64-apple-darwin18.7.0/libxslt/1.1.28/lib/libxslt.a -lm -liconv -lpthread -lz /Users/jackrg/.rbenv/versions/2.0.0-p576/lib/ruby/gems/2.0.0/gems/nokogiri-1.6.7.2/ports/x86_64-apple-darwin18.7.0/libxml2/2.9.2/lib/libxml2.a -lpthread -ldl -lobjc  "
conftest.c:7:57: error: use of undeclared identifier 'xsltParseStylesheetDoc'
int t(void) { void ((*volatile p)()); p = (void ((*)()))xsltParseStylesheetDoc; return 0; }
                                                        ^
1 error generated.
checked program was:
/* begin */
 1: #include "ruby.h"
 2: 
 3: #include <libxslt/xslt.h>
 4: 
 5: /*top*/
 6: extern int t(void);
 7: int t(void) { void ((*volatile p)()); p = (void ((*)()))xsltParseStylesheetDoc; return 0; }
 8: int main(int argc, char **argv)
 9: {
10:   if (argc > 1000000) {
11:     printf("%p", &t);
12:   }
13: 
14:   return 0;
15: }
/* end */

"clang -o conftest -I/Users/jackrg/.rbenv/versions/2.0.0-p576/include/ruby-2.0.0/x86_64-darwin18.7.0 -I/Users/jackrg/.rbenv/versions/2.0.0-p576/include/ruby-2.0.0/ruby/backward -I/Users/jackrg/.rbenv/versions/2.0.0-p576/include/ruby-2.0.0 -I. -I/Users/jackrg/.rbenv/versions/2.0.0-p576/lib/ruby/gems/2.0.0/gems/nokogiri-1.6.7.2/ports/x86_64-apple-darwin18.7.0/libxslt/1.1.28/include -I/Users/jackrg/.rbenv/versions/2.0.0-p576/lib/ruby/gems/2.0.0/gems/nokogiri-1.6.7.2/ports/x86_64-apple-darwin18.7.0/libxml2/2.9.2/include/libxml2 -I/Users/jackrg/.rbenv/versions/2.0.0-p576/lib/ruby/gems/2.0.0/gems/nokogiri-1.6.7.2/ports/x86_64-apple-darwin18.7.0/libxml2/2.9.2/include/libxml2 -I/Users/jackrg/.rbenv/versions/2.0.0-p576/include  -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   "-DNOKOGIRI_LIBXML2_PATH=\"/Users/jackrg/.rbenv/versions/2.0.0-p576/lib/ruby/gems/2.0.0/gems/nokogiri-1.6.7.2/ports/x86_64-apple-darwin18.7.0/libxml2/2.9.2\"" "-DNOKOGIRI_LIBXML2_PATCHES=\"0001-Revert-Missing-initialization-for-the-catalog-module.patch 0002-Fix-missing-entities-after-CVE-2014-3660-fix.patch 0003-Stop-parsing-on-entities-boundaries-errors.patch 0004-Cleanup-conditional-section-error-handling.patch 0005-CVE-2015-1819-Enforce-the-reader-to-run-in-constant-.patch 0006-Another-variation-of-overflow-in-Conditional-section.patch 0007-Fix-an-error-in-previous-Conditional-section-patch.patch 0008-CVE-2015-8035-Fix-XZ-compression-support-loop.patch 0009-Updated-config.guess.patch 0010-Fix-parsering-short-unclosed-comment-uninitialized-access.patch 0011-Avoid-extra-processing-of-MarkupDecl-when-EOF.patch 0012-Avoid-processing-entities-after-encoding-conversion-.patch 0013-CVE-2015-7497-Avoid-an-heap-buffer-overflow-in-xmlDi.patch 0014-CVE-2015-5312-Another-entity-expansion-issue.patch 0015-Add-xmlHaltParser-to-stop-the-parser.patch 0016-Detect-incoherency-on-GROW.patch 0017-CVE-2015-7500-Fix-memory-access-error-due-to-incorre.patch 0018-CVE-2015-8242-Buffer-overead-with-HTML-parser-in-pus.patch 0019-Do-not-print-error-context-when-there-is-none.patch 0020-xmlStopParser-reset-errNo.patch 0021-Reuse-xmlHaltParser-where-it-makes-sense.patch\"" "-DNOKOGIRI_LIBXSLT_PATH=\"/Users/jackrg/.rbenv/versions/2.0.0-p576/lib/ruby/gems/2.0.0/gems/nokogiri-1.6.7.2/ports/x86_64-apple-darwin18.7.0/libxslt/1.1.28\"" "-DNOKOGIRI_LIBXSLT_PATCHES=\"0001-Adding-doc-update-related-to-1.1.28.patch 0002-Fix-a-couple-of-places-where-f-printf-parameters-wer.patch 0003-Initialize-pseudo-random-number-generator-with-curre.patch 0004-EXSLT-function-str-replace-is-broken-as-is.patch 0006-Fix-str-padding-to-work-with-UTF-8-strings.patch 0007-Separate-function-for-predicate-matching-in-patterns.patch 0008-Fix-direct-pattern-matching.patch 0009-Fix-certain-patterns-with-predicates.patch 0010-Fix-handling-of-UTF-8-strings-in-EXSLT-crypto-module.patch 0013-Memory-leak-in-xsltCompileIdKeyPattern-error-path.patch 0014-Fix-for-bug-436589.patch 0015-Fix-mkdir-for-mingw.patch 0016-Fix-for-type-confusion-in-preprocessing-attributes.patch 0017-Updated-config.guess.patch\""  -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wunused-variable -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wshorten-64-to-32 -Wimplicit-function-declaration  -pipe  -DNOKOGIRI_USE_PACKAGED_LIBRARIES conftest.c  -L. -L/Users/jackrg/.rbenv/versions/2.0.0-p576/lib -L/Users/jackrg/.rbenv/versions/2.0.0-p576/lib/ruby/gems/2.0.0/gems/nokogiri-1.6.7.2/ports/x86_64-apple-darwin18.7.0/libxml2/2.9.2/lib -L/Users/jackrg/.rbenv/versions/2.0.0-p576/lib/ruby/gems/2.0.0/gems/nokogiri-1.6.7.2/ports/x86_64-apple-darwin18.7.0/libxslt/1.1.28/lib -L. -L/Users/jackrg/.rbenv/versions/2.0.0-p576/lib  -fstack-protector    /Users/jackrg/.rbenv/versions/2.0.0-p576/lib/ruby/gems/2.0.0/gems/nokogiri-1.6.7.2/ports/x86_64-apple-darwin18.7.0/libxslt/1.1.28/lib/libexslt.a -lm -liconv -lpthread -lz /Users/jackrg/.rbenv/versions/2.0.0-p576/lib/ruby/gems/2.0.0/gems/nokogiri-1.6.7.2/ports/x86_64-apple-darwin18.7.0/libxml2/2.9.2/lib/libxml2.a /Users/jackrg/.rbenv/versions/2.0.0-p576/lib/ruby/gems/2.0.0/gems/nokogiri-1.6.7.2/ports/x86_64-apple-darwin18.7.0/libxslt/1.1.28/lib/libxslt.a -lm -liconv -lpthread -lz /Users/jackrg/.rbenv/versions/2.0.0-p576/lib/ruby/gems/2.0.0/gems/nokogiri-1.6.7.2/ports/x86_64-apple-darwin18.7.0/libxml2/2.9.2/lib/libxml2.a -lruby-static -lxslt /Users/jackrg/.rbenv/versions/2.0.0-p576/lib/ruby/gems/2.0.0/gems/nokogiri-1.6.7.2/ports/x86_64-apple-darwin18.7.0/libxslt/1.1.28/lib/libexslt.a -lm -liconv -lpthread -lz /Users/jackrg/.rbenv/versions/2.0.0-p576/lib/ruby/gems/2.0.0/gems/nokogiri-1.6.7.2/ports/x86_64-apple-darwin18.7.0/libxml2/2.9.2/lib/libxml2.a /Users/jackrg/.rbenv/versions/2.0.0-p576/lib/ruby/gems/2.0.0/gems/nokogiri-1.6.7.2/ports/x86_64-apple-darwin18.7.0/libxslt/1.1.28/lib/libxslt.a -lm -liconv -lpthread -lz /Users/jackrg/.rbenv/versions/2.0.0-p576/lib/ruby/gems/2.0.0/gems/nokogiri-1.6.7.2/ports/x86_64-apple-darwin18.7.0/libxml2/2.9.2/lib/libxml2.a -lpthread -ldl -lobjc  "
conftest.c:7:15: error: implicit declaration of function 'xsltParseStylesheetDoc' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
int t(void) { xsltParseStylesheetDoc(); return 0; }
              ^
1 error generated.
checked program was:
/* begin */
 1: #include "ruby.h"
 2: 
 3: #include <libxslt/xslt.h>
 4: 
 5: /*top*/
 6: extern int t(void);
 7: int t(void) { xsltParseStylesheetDoc(); return 0; }
 8: int main(int argc, char **argv)
 9: {
10:   if (argc > 1000000) {
11:     printf("%p", &t);
12:   }
13: 
14:   return 0;
15: }
/* end */

--------------------

have_library: checking for xsltParseStylesheetDoc() in -llibxslt... -------------------- no

"clang -o conftest -I/Users/jackrg/.rbenv/versions/2.0.0-p576/include/ruby-2.0.0/x86_64-darwin18.7.0 -I/Users/jackrg/.rbenv/versions/2.0.0-p576/include/ruby-2.0.0/ruby/backward -I/Users/jackrg/.rbenv/versions/2.0.0-p576/include/ruby-2.0.0 -I. -I/Users/jackrg/.rbenv/versions/2.0.0-p576/lib/ruby/gems/2.0.0/gems/nokogiri-1.6.7.2/ports/x86_64-apple-darwin18.7.0/libxslt/1.1.28/include -I/Users/jackrg/.rbenv/versions/2.0.0-p576/lib/ruby/gems/2.0.0/gems/nokogiri-1.6.7.2/ports/x86_64-apple-darwin18.7.0/libxml2/2.9.2/include/libxml2 -I/Users/jackrg/.rbenv/versions/2.0.0-p576/lib/ruby/gems/2.0.0/gems/nokogiri-1.6.7.2/ports/x86_64-apple-darwin18.7.0/libxml2/2.9.2/include/libxml2 -I/Users/jackrg/.rbenv/versions/2.0.0-p576/include  -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   "-DNOKOGIRI_LIBXML2_PATH=\"/Users/jackrg/.rbenv/versions/2.0.0-p576/lib/ruby/gems/2.0.0/gems/nokogiri-1.6.7.2/ports/x86_64-apple-darwin18.7.0/libxml2/2.9.2\"" "-DNOKOGIRI_LIBXML2_PATCHES=\"0001-Revert-Missing-initialization-for-the-catalog-module.patch 0002-Fix-missing-entities-after-CVE-2014-3660-fix.patch 0003-Stop-parsing-on-entities-boundaries-errors.patch 0004-Cleanup-conditional-section-error-handling.patch 0005-CVE-2015-1819-Enforce-the-reader-to-run-in-constant-.patch 0006-Another-variation-of-overflow-in-Conditional-section.patch 0007-Fix-an-error-in-previous-Conditional-section-patch.patch 0008-CVE-2015-8035-Fix-XZ-compression-support-loop.patch 0009-Updated-config.guess.patch 0010-Fix-parsering-short-unclosed-comment-uninitialized-access.patch 0011-Avoid-extra-processing-of-MarkupDecl-when-EOF.patch 0012-Avoid-processing-entities-after-encoding-conversion-.patch 0013-CVE-2015-7497-Avoid-an-heap-buffer-overflow-in-xmlDi.patch 0014-CVE-2015-5312-Another-entity-expansion-issue.patch 0015-Add-xmlHaltParser-to-stop-the-parser.patch 0016-Detect-incoherency-on-GROW.patch 0017-CVE-2015-7500-Fix-memory-access-error-due-to-incorre.patch 0018-CVE-2015-8242-Buffer-overead-with-HTML-parser-in-pus.patch 0019-Do-not-print-error-context-when-there-is-none.patch 0020-xmlStopParser-reset-errNo.patch 0021-Reuse-xmlHaltParser-where-it-makes-sense.patch\"" "-DNOKOGIRI_LIBXSLT_PATH=\"/Users/jackrg/.rbenv/versions/2.0.0-p576/lib/ruby/gems/2.0.0/gems/nokogiri-1.6.7.2/ports/x86_64-apple-darwin18.7.0/libxslt/1.1.28\"" "-DNOKOGIRI_LIBXSLT_PATCHES=\"0001-Adding-doc-update-related-to-1.1.28.patch 0002-Fix-a-couple-of-places-where-f-printf-parameters-wer.patch 0003-Initialize-pseudo-random-number-generator-with-curre.patch 0004-EXSLT-function-str-replace-is-broken-as-is.patch 0006-Fix-str-padding-to-work-with-UTF-8-strings.patch 0007-Separate-function-for-predicate-matching-in-patterns.patch 0008-Fix-direct-pattern-matching.patch 0009-Fix-certain-patterns-with-predicates.patch 0010-Fix-handling-of-UTF-8-strings-in-EXSLT-crypto-module.patch 0013-Memory-leak-in-xsltCompileIdKeyPattern-error-path.patch 0014-Fix-for-bug-436589.patch 0015-Fix-mkdir-for-mingw.patch 0016-Fix-for-type-confusion-in-preprocessing-attributes.patch 0017-Updated-config.guess.patch\""  -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wunused-variable -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wshorten-64-to-32 -Wimplicit-function-declaration  -pipe  -DNOKOGIRI_USE_PACKAGED_LIBRARIES conftest.c  -L. -L/Users/jackrg/.rbenv/versions/2.0.0-p576/lib -L/Users/jackrg/.rbenv/versions/2.0.0-p576/lib/ruby/gems/2.0.0/gems/nokogiri-1.6.7.2/ports/x86_64-apple-darwin18.7.0/libxml2/2.9.2/lib -L/Users/jackrg/.rbenv/versions/2.0.0-p576/lib/ruby/gems/2.0.0/gems/nokogiri-1.6.7.2/ports/x86_64-apple-darwin18.7.0/libxslt/1.1.28/lib -L. -L/Users/jackrg/.rbenv/versions/2.0.0-p576/lib  -fstack-protector    /Users/jackrg/.rbenv/versions/2.0.0-p576/lib/ruby/gems/2.0.0/gems/nokogiri-1.6.7.2/ports/x86_64-apple-darwin18.7.0/libxslt/1.1.28/lib/libexslt.a -lm -liconv -lpthread -lz /Users/jackrg/.rbenv/versions/2.0.0-p576/lib/ruby/gems/2.0.0/gems/nokogiri-1.6.7.2/ports/x86_64-apple-darwin18.7.0/libxml2/2.9.2/lib/libxml2.a /Users/jackrg/.rbenv/versions/2.0.0-p576/lib/ruby/gems/2.0.0/gems/nokogiri-1.6.7.2/ports/x86_64-apple-darwin18.7.0/libxslt/1.1.28/lib/libxslt.a -lm -liconv -lpthread -lz /Users/jackrg/.rbenv/versions/2.0.0-p576/lib/ruby/gems/2.0.0/gems/nokogiri-1.6.7.2/ports/x86_64-apple-darwin18.7.0/libxml2/2.9.2/lib/libxml2.a -lruby-static -llibxslt /Users/jackrg/.rbenv/versions/2.0.0-p576/lib/ruby/gems/2.0.0/gems/nokogiri-1.6.7.2/ports/x86_64-apple-darwin18.7.0/libxslt/1.1.28/lib/libexslt.a -lm -liconv -lpthread -lz /Users/jackrg/.rbenv/versions/2.0.0-p576/lib/ruby/gems/2.0.0/gems/nokogiri-1.6.7.2/ports/x86_64-apple-darwin18.7.0/libxml2/2.9.2/lib/libxml2.a /Users/jackrg/.rbenv/versions/2.0.0-p576/lib/ruby/gems/2.0.0/gems/nokogiri-1.6.7.2/ports/x86_64-apple-darwin18.7.0/libxslt/1.1.28/lib/libxslt.a -lm -liconv -lpthread -lz /Users/jackrg/.rbenv/versions/2.0.0-p576/lib/ruby/gems/2.0.0/gems/nokogiri-1.6.7.2/ports/x86_64-apple-darwin18.7.0/libxml2/2.9.2/lib/libxml2.a -lpthread -ldl -lobjc  "
conftest.c:7:57: error: use of undeclared identifier 'xsltParseStylesheetDoc'
int t(void) { void ((*volatile p)()); p = (void ((*)()))xsltParseStylesheetDoc; return 0; }
                                                        ^
1 error generated.
checked program was:
/* begin */
 1: #include "ruby.h"
 2: 
 3: #include <libxslt/xslt.h>
 4: 
 5: /*top*/
 6: extern int t(void);
 7: int t(void) { void ((*volatile p)()); p = (void ((*)()))xsltParseStylesheetDoc; return 0; }
 8: int main(int argc, char **argv)
 9: {
10:   if (argc > 1000000) {
11:     printf("%p", &t);
12:   }
13: 
14:   return 0;
15: }
/* end */

"clang -o conftest -I/Users/jackrg/.rbenv/versions/2.0.0-p576/include/ruby-2.0.0/x86_64-darwin18.7.0 -I/Users/jackrg/.rbenv/versions/2.0.0-p576/include/ruby-2.0.0/ruby/backward -I/Users/jackrg/.rbenv/versions/2.0.0-p576/include/ruby-2.0.0 -I. -I/Users/jackrg/.rbenv/versions/2.0.0-p576/lib/ruby/gems/2.0.0/gems/nokogiri-1.6.7.2/ports/x86_64-apple-darwin18.7.0/libxslt/1.1.28/include -I/Users/jackrg/.rbenv/versions/2.0.0-p576/lib/ruby/gems/2.0.0/gems/nokogiri-1.6.7.2/ports/x86_64-apple-darwin18.7.0/libxml2/2.9.2/include/libxml2 -I/Users/jackrg/.rbenv/versions/2.0.0-p576/lib/ruby/gems/2.0.0/gems/nokogiri-1.6.7.2/ports/x86_64-apple-darwin18.7.0/libxml2/2.9.2/include/libxml2 -I/Users/jackrg/.rbenv/versions/2.0.0-p576/include  -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   "-DNOKOGIRI_LIBXML2_PATH=\"/Users/jackrg/.rbenv/versions/2.0.0-p576/lib/ruby/gems/2.0.0/gems/nokogiri-1.6.7.2/ports/x86_64-apple-darwin18.7.0/libxml2/2.9.2\"" "-DNOKOGIRI_LIBXML2_PATCHES=\"0001-Revert-Missing-initialization-for-the-catalog-module.patch 0002-Fix-missing-entities-after-CVE-2014-3660-fix.patch 0003-Stop-parsing-on-entities-boundaries-errors.patch 0004-Cleanup-conditional-section-error-handling.patch 0005-CVE-2015-1819-Enforce-the-reader-to-run-in-constant-.patch 0006-Another-variation-of-overflow-in-Conditional-section.patch 0007-Fix-an-error-in-previous-Conditional-section-patch.patch 0008-CVE-2015-8035-Fix-XZ-compression-support-loop.patch 0009-Updated-config.guess.patch 0010-Fix-parsering-short-unclosed-comment-uninitialized-access.patch 0011-Avoid-extra-processing-of-MarkupDecl-when-EOF.patch 0012-Avoid-processing-entities-after-encoding-conversion-.patch 0013-CVE-2015-7497-Avoid-an-heap-buffer-overflow-in-xmlDi.patch 0014-CVE-2015-5312-Another-entity-expansion-issue.patch 0015-Add-xmlHaltParser-to-stop-the-parser.patch 0016-Detect-incoherency-on-GROW.patch 0017-CVE-2015-7500-Fix-memory-access-error-due-to-incorre.patch 0018-CVE-2015-8242-Buffer-overead-with-HTML-parser-in-pus.patch 0019-Do-not-print-error-context-when-there-is-none.patch 0020-xmlStopParser-reset-errNo.patch 0021-Reuse-xmlHaltParser-where-it-makes-sense.patch\"" "-DNOKOGIRI_LIBXSLT_PATH=\"/Users/jackrg/.rbenv/versions/2.0.0-p576/lib/ruby/gems/2.0.0/gems/nokogiri-1.6.7.2/ports/x86_64-apple-darwin18.7.0/libxslt/1.1.28\"" "-DNOKOGIRI_LIBXSLT_PATCHES=\"0001-Adding-doc-update-related-to-1.1.28.patch 0002-Fix-a-couple-of-places-where-f-printf-parameters-wer.patch 0003-Initialize-pseudo-random-number-generator-with-curre.patch 0004-EXSLT-function-str-replace-is-broken-as-is.patch 0006-Fix-str-padding-to-work-with-UTF-8-strings.patch 0007-Separate-function-for-predicate-matching-in-patterns.patch 0008-Fix-direct-pattern-matching.patch 0009-Fix-certain-patterns-with-predicates.patch 0010-Fix-handling-of-UTF-8-strings-in-EXSLT-crypto-module.patch 0013-Memory-leak-in-xsltCompileIdKeyPattern-error-path.patch 0014-Fix-for-bug-436589.patch 0015-Fix-mkdir-for-mingw.patch 0016-Fix-for-type-confusion-in-preprocessing-attributes.patch 0017-Updated-config.guess.patch\""  -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wunused-variable -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wshorten-64-to-32 -Wimplicit-function-declaration  -pipe  -DNOKOGIRI_USE_PACKAGED_LIBRARIES conftest.c  -L. -L/Users/jackrg/.rbenv/versions/2.0.0-p576/lib -L/Users/jackrg/.rbenv/versions/2.0.0-p576/lib/ruby/gems/2.0.0/gems/nokogiri-1.6.7.2/ports/x86_64-apple-darwin18.7.0/libxml2/2.9.2/lib -L/Users/jackrg/.rbenv/versions/2.0.0-p576/lib/ruby/gems/2.0.0/gems/nokogiri-1.6.7.2/ports/x86_64-apple-darwin18.7.0/libxslt/1.1.28/lib -L. -L/Users/jackrg/.rbenv/versions/2.0.0-p576/lib  -fstack-protector    /Users/jackrg/.rbenv/versions/2.0.0-p576/lib/ruby/gems/2.0.0/gems/nokogiri-1.6.7.2/ports/x86_64-apple-darwin18.7.0/libxslt/1.1.28/lib/libexslt.a -lm -liconv -lpthread -lz /Users/jackrg/.rbenv/versions/2.0.0-p576/lib/ruby/gems/2.0.0/gems/nokogiri-1.6.7.2/ports/x86_64-apple-darwin18.7.0/libxml2/2.9.2/lib/libxml2.a /Users/jackrg/.rbenv/versions/2.0.0-p576/lib/ruby/gems/2.0.0/gems/nokogiri-1.6.7.2/ports/x86_64-apple-darwin18.7.0/libxslt/1.1.28/lib/libxslt.a -lm -liconv -lpthread -lz /Users/jackrg/.rbenv/versions/2.0.0-p576/lib/ruby/gems/2.0.0/gems/nokogiri-1.6.7.2/ports/x86_64-apple-darwin18.7.0/libxml2/2.9.2/lib/libxml2.a -lruby-static -llibxslt /Users/jackrg/.rbenv/versions/2.0.0-p576/lib/ruby/gems/2.0.0/gems/nokogiri-1.6.7.2/ports/x86_64-apple-darwin18.7.0/libxslt/1.1.28/lib/libexslt.a -lm -liconv -lpthread -lz /Users/jackrg/.rbenv/versions/2.0.0-p576/lib/ruby/gems/2.0.0/gems/nokogiri-1.6.7.2/ports/x86_64-apple-darwin18.7.0/libxml2/2.9.2/lib/libxml2.a /Users/jackrg/.rbenv/versions/2.0.0-p576/lib/ruby/gems/2.0.0/gems/nokogiri-1.6.7.2/ports/x86_64-apple-darwin18.7.0/libxslt/1.1.28/lib/libxslt.a -lm -liconv -lpthread -lz /Users/jackrg/.rbenv/versions/2.0.0-p576/lib/ruby/gems/2.0.0/gems/nokogiri-1.6.7.2/ports/x86_64-apple-darwin18.7.0/libxml2/2.9.2/lib/libxml2.a -lpthread -ldl -lobjc  "
conftest.c:7:15: error: implicit declaration of function 'xsltParseStylesheetDoc' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
int t(void) { xsltParseStylesheetDoc(); return 0; }
              ^
1 error generated.
checked program was:
/* begin */
 1: #include "ruby.h"
 2: 
 3: #include <libxslt/xslt.h>
 4: 
 5: /*top*/
 6: extern int t(void);
 7: int t(void) { xsltParseStylesheetDoc(); return 0; }
 8: int main(int argc, char **argv)
 9: {
10:   if (argc > 1000000) {
11:     printf("%p", &t);
12:   }
13: 
14:   return 0;
15: }
/* end */

--------------------



Jack Royal-Gordon

unread,
Sep 29, 2020, 8:19:49 PM9/29/20
to nokogi...@googlegroups.com
FWIW, the problem goes away when I “bundle install” instead of “gem install”.
Reply all
Reply to author
Forward
0 new messages