rubys / nokogumbo

A Nokogiri interface to the Gumbo HTML5 parser.
Apache License 2.0
186 stars 114 forks source link

Bundle install fails on kali linux with nokogumbo gem. #120

Closed banureddy1947 closed 3 years ago

banureddy1947 commented 5 years ago

I am trying to install dradis community edition for Kali linux through this website: (Running Kali Linux on Virtual Machine on macOS)

https://dradisframework.com/ce/documentation/install_kali.html

and

https://dradisframework.com/ce/documentation/install_git.html

when I run the command:

./bin/setup

I am getting the error:

Fetching nokogumbo 2.0.1
Installing nokogumbo 2.0.1 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

    current directory: /root/dradis-ce/gems/nokogumbo-2.0.1/ext/nokogumbo
/usr/bin/ruby2.5 -I /usr/local/lib/site_ruby/2.5.0 -r ./siteconf20190224-6660-1caz3w7.rb extconf.rb
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers.  Check the mkmf.log file for more details.  You may
need configuration options.

Provided configuration options:
    --with-opt-dir
    --without-opt-dir
    --with-opt-include
    --without-opt-include=${opt-dir}/include
    --with-opt-lib
    --without-opt-lib=${opt-dir}/lib
    --with-make-prog
    --without-make-prog
    --srcdir=.
    --curdir
    --ruby=/usr/bin/$(RUBY_BASE_NAME)2.5
/usr/local/lib/site_ruby/2.5.0/rubygems/dependency.rb:313:in `to_specs': Could not find 'nokogiri' (= 1.8.4) - did find: [nokogiri-1.8.5]
(Gem::MissingSpecVersionError)
Checked in 'GEM_PATH=/root/dradis-ce', execute `gem env` for more information
    from /usr/local/lib/site_ruby/2.5.0/rubygems/dependency.rb:323:in `to_spec'
    from /usr/local/lib/site_ruby/2.5.0/rubygems/specification.rb:1033:in `find_by_name'
    from extconf.rb:9:in `<main>'

extconf failed, exit code 1

Gem files will remain installed in /root/dradis-ce/gems/nokogumbo-2.0.1 for inspection.
Results logged to /root/dradis-ce/extensions/x86_64-linux/2.5.0/nokogumbo-2.0.1/gem_make.out

An error occurred while installing nokogumbo (2.0.1), and Bundler cannot continue.
Make sure that `gem install nokogumbo -v '2.0.1' --source 'https://rubygems.org/'` succeeds before bundling.

In Gemfile:
  sanitize was resolved to 5.0.0, which depends on
    nokogumbo

== Command ["bundle install"] failed ==

I tried several solution like bundle install or bundle update But getting same error as above while trying anything with bundle. I tried installing nokogumbo with:

gem install nokogumbo -v '2.0.1' --source 'https://rubygems.org/'

and I tried again. Still getting the same error. Why is this happening.

stevecheckoway commented 5 years ago

It looks like the issue is something is telling the installer to use Nokogiri 1.8.4 and it has only found 1.8.5:

/usr/local/lib/site_ruby/2.5.0/rubygems/dependency.rb:313:in `to_specs': Could not find 'nokogiri' (= 1.8.4) - did find: [nokogiri-1.8.5]

I don't know where the = 1.8.4 dependency is coming from though. Nokogumbo requires at least 1.8.4, but should work with 1.8.5:

  s.add_runtime_dependency 'nokogiri', '~> 1.8', '>= 1.8.4'

Try installing nokogiri 1.8.4 explicitly first and see if that solves the dependency problem.

banureddy1947 commented 5 years ago

I installed 1.8.4 using

gem install nokogiri -v '1.8.4'

But still getting the same error.

rubys commented 5 years ago

Just checking. The error states: Could not find 'nokogiri' (= 1.8.4). Are you sure you are getting the exact same error?

What is the contents of /root/dradis-ce/extensions/x86_64-linux/2.5.0/nokogumbo-2.0.1/gem_make.out ?

banureddy1947 commented 5 years ago

Yes, I am getting the same error. This is the contents of the file:

current directory: /root/dradis-ce/gems/nokogumbo-2.0.1/ext/nokogumbo
/usr/bin/ruby2.5 -I /usr/local/lib/site_ruby/2.5.0 -r ./siteconf20190224-19916-1v4vg0i.rb extconf.rb
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers.  Check the mkmf.log file for more details.  You may
need configuration options.

Provided configuration options:
    --with-opt-dir
    --without-opt-dir
    --with-opt-include
    --without-opt-include=${opt-dir}/include
    --with-opt-lib
    --without-opt-lib=${opt-dir}/lib
    --with-make-prog
    --without-make-prog
    --srcdir=.
    --curdir
    --ruby=/usr/bin/$(RUBY_BASE_NAME)2.5
/usr/local/lib/site_ruby/2.5.0/rubygems/dependency.rb:313:in `to_specs': Could not find 'nokogiri' (= 1.8.4) - did find: [nokogiri-1.8.5] (Gem::MissingSpecVersionError)
Checked in 'GEM_PATH=/root/dradis-ce', execute `gem env` for more information
    from /usr/local/lib/site_ruby/2.5.0/rubygems/dependency.rb:323:in `to_spec'
    from /usr/local/lib/site_ruby/2.5.0/rubygems/specification.rb:1033:in `find_by_name'
    from extconf.rb:9:in `<main>'

extconf failed, exit code 1
rubys commented 5 years ago

Is there a mkmf.log in that same directory? It looks like something else is failing and yet it is blaming nokogiri.

banureddy1947 commented 5 years ago

mkmf.log file is not in the nokogumbo-2.0.1 folder. It is in nokogiri-1.8.5. It's contents are:

"gcc -o conftest -I/usr/include/x86_64-linux-gnu/ruby-2.5.0 -I/usr/include/ruby-2.5.0/ruby/backward -I/usr/include/ruby-2.5.0 -I. -Wdate-time -D_FORTIFY_SOURCE=2   -g -O2 -fdebug-prefix-map=/build/ruby2.5-x7Zsb1/ruby2.5-2.5.1=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC  conftest.c  -L. -L/usr/lib/x86_64-linux-gnu -L. -Wl,-z,relro -Wl,-z,now -fstack-protector -rdynamic -Wl,-export-dynamic     -lruby-2.5  -lpthread -lgmp -ldl -lcrypt -lm   -lc "
checked program was:
/* begin */
1: #include "ruby.h"
2: 
3: int main(int argc, char **argv)
4: {
5:   return 0;
6: }
/* end */

"gcc -I/usr/include/x86_64-linux-gnu/ruby-2.5.0 -I/usr/include/ruby-2.5.0/ruby/backward -I/usr/include/ruby-2.5.0 -I. -Wdate-time -D_FORTIFY_SOURCE=2   -g -O2 -fdebug-prefix-map=/build/ruby2.5-x7Zsb1/ruby2.5-2.5.1=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC    -Werror -c conftest.c"
checked program was:
/* begin */
1: #include "ruby.h"
2: 
3: int main() {return 0;}
/* end */

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

"gcc -o conftest -I/usr/include/x86_64-linux-gnu/ruby-2.5.0 -I/usr/include/ruby-2.5.0/ruby/backward -I/usr/include/ruby-2.5.0 -I. -Wdate-time -D_FORTIFY_SOURCE=2   -g -O2 -fdebug-prefix-map=/build/ruby2.5-x7Zsb1/ruby2.5-2.5.1=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC  -g -DXP_UNIX -Wall -Wcast-qual -Wwrite-strings -Wmissing-noreturn -Winline conftest.c  -L. -L/usr/lib/x86_64-linux-gnu -L. -Wl,-z,relro -Wl,-z,now -fstack-protector -rdynamic -Wl,-export-dynamic     -lruby-2.5 -lz  -lpthread -lgmp -ldl -lcrypt -lm   -lc "
checked program was:
/* begin */
 1: #include "ruby.h"
 2: 
 3: #include <zlib.h>
 4: 
 5: /*top*/
 6: extern int t(void);
 7: int main(int argc, char **argv)
 8: {
 9:   if (argc > 1000000) {
10:     printf("%p", &t);
11:   }
12: 
13:   return 0;
14: }
15: int t(void) { void ((*volatile p)()); p = (void ((*)()))gzdopen; return !p; }
/* end */

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

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

"gcc -o conftest -I/usr/include/x86_64-linux-gnu/ruby-2.5.0 -I/usr/include/ruby-2.5.0/ruby/backward -I/usr/include/ruby-2.5.0 -I. -Wdate-time -D_FORTIFY_SOURCE=2   -g -O2 -fdebug-prefix-map=/build/ruby2.5-x7Zsb1/ruby2.5-2.5.1=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC  -g -DXP_UNIX -Wall -Wcast-qual -Wwrite-strings -Wmissing-noreturn -Winline conftest.c  -L. -L/usr/lib/x86_64-linux-gnu -L. -Wl,-z,relro -Wl,-z,now -fstack-protector -rdynamic -Wl,-export-dynamic     -lruby-2.5  -lpthread -lgmp -ldl -lcrypt -lm   -lc "
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 -llzma... -------------------- no

"gcc -o conftest -I/usr/include/x86_64-linux-gnu/ruby-2.5.0 -I/usr/include/ruby-2.5.0/ruby/backward -I/usr/include/ruby-2.5.0 -I. -Wdate-time -D_FORTIFY_SOURCE=2   -g -O2 -fdebug-prefix-map=/build/ruby2.5-x7Zsb1/ruby2.5-2.5.1=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC  -g -DXP_UNIX -Wall -Wcast-qual -Wwrite-strings -Wmissing-noreturn -Winline -DNOKOGIRI_USE_PACKAGED_LIBRARIES conftest.c  -L. -L/usr/lib/x86_64-linux-gnu -L. -Wl,-z,relro -Wl,-z,now -fstack-protector -rdynamic -Wl,-export-dynamic     -lruby-2.5 -llzma  -lpthread -lgmp -ldl -lcrypt -lm   -lc "
/usr/bin/ld: cannot find -llzma
collect2: error: ld returned 1 exit status
checked program was:
/* begin */
 1: #include "ruby.h"
 2: 
 3: /*top*/
 4: extern int t(void);
 5: int main(int argc, char **argv)
 6: {
 7:   if (argc > 1000000) {
 8:     printf("%p", &t);
 9:   }
10: 
11:   return 0;
12: }
13: 
14: int t(void) { ; return 0; }
/* end */

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

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

"gcc -o conftest -I/usr/include/x86_64-linux-gnu/ruby-2.5.0 -I/usr/include/ruby-2.5.0/ruby/backward -I/usr/include/ruby-2.5.0 -I. -I/root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxslt/1.1.32/include -I/root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxml2/2.9.8/include/libxml2 -I/root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxml2/2.9.8/include/libxml2 -Wdate-time -D_FORTIFY_SOURCE=2   "-DNOKOGIRI_LIBXML2_PATH=\"/root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxml2/2.9.8\"" "-DNOKOGIRI_LIBXML2_PATCHES=\"0001-Revert-Do-not-URI-escape-in-server-side-includes.patch 0002-Fix-nullptr-deref-with-XPath-logic-ops.patch 0003-Fix-infinite-loop-in-LZMA-decompression.patch\"" "-DNOKOGIRI_LIBXSLT_PATH=\"/root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxslt/1.1.32\"" "-DNOKOGIRI_LIBXSLT_PATCHES=\"\"" -g -O2 -fdebug-prefix-map=/build/ruby2.5-x7Zsb1/ruby2.5-2.5.1=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC  -g -DXP_UNIX -Wall -Wcast-qual -Wwrite-strings -Wmissing-noreturn -Winline -DNOKOGIRI_USE_PACKAGED_LIBRARIES conftest.c  -L. -L/usr/lib/x86_64-linux-gnu -L/root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxml2/2.9.8/lib -L/root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxslt/1.1.32/lib -L. -Wl,-z,relro -Wl,-z,now -fstack-protector -rdynamic -Wl,-export-dynamic    /root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxslt/1.1.32/lib/libexslt.a -lm -ldl -lz /root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxml2/2.9.8/lib/libxml2.a /root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxslt/1.1.32/lib/libxslt.a -ldl -lm -lz /root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxml2/2.9.8/lib/libxml2.a -lruby-2.5 /root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxslt/1.1.32/lib/libexslt.a -lm -ldl -lz /root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxml2/2.9.8/lib/libxml2.a /root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxslt/1.1.32/lib/libxslt.a -ldl -lm -lz /root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxml2/2.9.8/lib/libxml2.a -lpthread -lgmp -ldl -lcrypt -lm   -lc "
checked program was:
/* begin */
 1: #include "ruby.h"
 2: 
 3: #include <libxml/parser.h>
 4: 
 5: /*top*/
 6: extern int t(void);
 7: int main(int argc, char **argv)
 8: {
 9:   if (argc > 1000000) {
10:     printf("%p", &t);
11:   }
12: 
13:   return 0;
14: }
15: int t(void) { void ((*volatile p)()); p = (void ((*)()))xmlParseDoc; return !p; }
/* end */

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

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

"gcc -o conftest -I/usr/include/x86_64-linux-gnu/ruby-2.5.0 -I/usr/include/ruby-2.5.0/ruby/backward -I/usr/include/ruby-2.5.0 -I. -I/root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxslt/1.1.32/include -I/root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxml2/2.9.8/include/libxml2 -I/root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxml2/2.9.8/include/libxml2 -Wdate-time -D_FORTIFY_SOURCE=2   "-DNOKOGIRI_LIBXML2_PATH=\"/root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxml2/2.9.8\"" "-DNOKOGIRI_LIBXML2_PATCHES=\"0001-Revert-Do-not-URI-escape-in-server-side-includes.patch 0002-Fix-nullptr-deref-with-XPath-logic-ops.patch 0003-Fix-infinite-loop-in-LZMA-decompression.patch\"" "-DNOKOGIRI_LIBXSLT_PATH=\"/root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxslt/1.1.32\"" "-DNOKOGIRI_LIBXSLT_PATCHES=\"\"" -g -O2 -fdebug-prefix-map=/build/ruby2.5-x7Zsb1/ruby2.5-2.5.1=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC  -g -DXP_UNIX -Wall -Wcast-qual -Wwrite-strings -Wmissing-noreturn -Winline -DNOKOGIRI_USE_PACKAGED_LIBRARIES conftest.c  -L. -L/usr/lib/x86_64-linux-gnu -L/root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxml2/2.9.8/lib -L/root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxslt/1.1.32/lib -L. -Wl,-z,relro -Wl,-z,now -fstack-protector -rdynamic -Wl,-export-dynamic    /root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxslt/1.1.32/lib/libexslt.a -lm -ldl -lz /root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxml2/2.9.8/lib/libxml2.a /root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxslt/1.1.32/lib/libxslt.a -ldl -lm -lz /root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxml2/2.9.8/lib/libxml2.a -lruby-2.5 /root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxslt/1.1.32/lib/libexslt.a -lm -ldl -lz /root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxml2/2.9.8/lib/libxml2.a /root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxslt/1.1.32/lib/libxslt.a -ldl -lm -lz /root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxml2/2.9.8/lib/libxml2.a -lpthread -lgmp -ldl -lcrypt -lm   -lc "
conftest.c: In function ‘t’:
conftest.c:15:57: error: ‘xsltParseStylesheetDoc’ undeclared (first use in this function)
 int t(void) { void ((*volatile p)()); p = (void ((*)()))xsltParseStylesheetDoc; return !p; }
                                                         ^~~~~~~~~~~~~~~~~~~~~~
conftest.c:15:57: note: each undeclared identifier is reported only once for each function it appears in
checked program was:
/* begin */
 1: #include "ruby.h"
 2: 
 3: #include <libxslt/xslt.h>
 4: 
 5: /*top*/
 6: extern int t(void);
 7: int main(int argc, char **argv)
 8: {
 9:   if (argc > 1000000) {
10:     printf("%p", &t);
11:   }
12: 
13:   return 0;
14: }
15: int t(void) { void ((*volatile p)()); p = (void ((*)()))xsltParseStylesheetDoc; return !p; }
/* end */

"gcc -o conftest -I/usr/include/x86_64-linux-gnu/ruby-2.5.0 -I/usr/include/ruby-2.5.0/ruby/backward -I/usr/include/ruby-2.5.0 -I. -I/root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxslt/1.1.32/include -I/root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxml2/2.9.8/include/libxml2 -I/root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxml2/2.9.8/include/libxml2 -Wdate-time -D_FORTIFY_SOURCE=2   "-DNOKOGIRI_LIBXML2_PATH=\"/root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxml2/2.9.8\"" "-DNOKOGIRI_LIBXML2_PATCHES=\"0001-Revert-Do-not-URI-escape-in-server-side-includes.patch 0002-Fix-nullptr-deref-with-XPath-logic-ops.patch 0003-Fix-infinite-loop-in-LZMA-decompression.patch\"" "-DNOKOGIRI_LIBXSLT_PATH=\"/root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxslt/1.1.32\"" "-DNOKOGIRI_LIBXSLT_PATCHES=\"\"" -g -O2 -fdebug-prefix-map=/build/ruby2.5-x7Zsb1/ruby2.5-2.5.1=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC  -g -DXP_UNIX -Wall -Wcast-qual -Wwrite-strings -Wmissing-noreturn -Winline -DNOKOGIRI_USE_PACKAGED_LIBRARIES conftest.c  -L. -L/usr/lib/x86_64-linux-gnu -L/root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxml2/2.9.8/lib -L/root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxslt/1.1.32/lib -L. -Wl,-z,relro -Wl,-z,now -fstack-protector -rdynamic -Wl,-export-dynamic    /root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxslt/1.1.32/lib/libexslt.a -lm -ldl -lz /root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxml2/2.9.8/lib/libxml2.a /root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxslt/1.1.32/lib/libxslt.a -ldl -lm -lz /root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxml2/2.9.8/lib/libxml2.a -lruby-2.5 /root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxslt/1.1.32/lib/libexslt.a -lm -ldl -lz /root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxml2/2.9.8/lib/libxml2.a /root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxslt/1.1.32/lib/libxslt.a -ldl -lm -lz /root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxml2/2.9.8/lib/libxml2.a -lpthread -lgmp -ldl -lcrypt -lm   -lc "
checked program was:
/* begin */
 1: #include "ruby.h"
 2: 
 3: #include <libxslt/xslt.h>
 4: 
 5: /*top*/
 6: extern int t(void);
 7: int main(int argc, char **argv)
 8: {
 9:   if (argc > 1000000) {
10:     printf("%p", &t);
11:   }
12: 
13:   return 0;
14: }
15: extern void xsltParseStylesheetDoc();
16: int t(void) { xsltParseStylesheetDoc(); return 0; }
/* end */

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

have_func: checking for exsltFuncRegister() in libexslt/exslt.h... -------------------- yes

"gcc -o conftest -I/usr/include/x86_64-linux-gnu/ruby-2.5.0 -I/usr/include/ruby-2.5.0/ruby/backward -I/usr/include/ruby-2.5.0 -I. -I/root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxslt/1.1.32/include -I/root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxml2/2.9.8/include/libxml2 -I/root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxml2/2.9.8/include/libxml2 -Wdate-time -D_FORTIFY_SOURCE=2   "-DNOKOGIRI_LIBXML2_PATH=\"/root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxml2/2.9.8\"" "-DNOKOGIRI_LIBXML2_PATCHES=\"0001-Revert-Do-not-URI-escape-in-server-side-includes.patch 0002-Fix-nullptr-deref-with-XPath-logic-ops.patch 0003-Fix-infinite-loop-in-LZMA-decompression.patch\"" "-DNOKOGIRI_LIBXSLT_PATH=\"/root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxslt/1.1.32\"" "-DNOKOGIRI_LIBXSLT_PATCHES=\"\"" -g -O2 -fdebug-prefix-map=/build/ruby2.5-x7Zsb1/ruby2.5-2.5.1=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC  -g -DXP_UNIX -Wall -Wcast-qual -Wwrite-strings -Wmissing-noreturn -Winline -DNOKOGIRI_USE_PACKAGED_LIBRARIES conftest.c  -L. -L/usr/lib/x86_64-linux-gnu -L/root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxml2/2.9.8/lib -L/root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxslt/1.1.32/lib -L. -Wl,-z,relro -Wl,-z,now -fstack-protector -rdynamic -Wl,-export-dynamic    /root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxslt/1.1.32/lib/libexslt.a -lm -ldl -lz /root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxml2/2.9.8/lib/libxml2.a /root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxslt/1.1.32/lib/libxslt.a -ldl -lm -lz /root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxml2/2.9.8/lib/libxml2.a -lruby-2.5 /root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxslt/1.1.32/lib/libexslt.a -lm -ldl -lz /root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxml2/2.9.8/lib/libxml2.a /root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxslt/1.1.32/lib/libxslt.a -ldl -lm -lz /root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxml2/2.9.8/lib/libxml2.a -lpthread -lgmp -ldl -lcrypt -lm   -lc "
checked program was:
/* begin */
 1: #include "ruby.h"
 2: 
 3: #include <libexslt/exslt.h>
 4: 
 5: /*top*/
 6: extern int t(void);
 7: int main(int argc, char **argv)
 8: {
 9:   if (argc > 1000000) {
10:     printf("%p", &t);
11:   }
12: 
13:   return 0;
14: }
15: int t(void) { void ((*volatile p)()); p = (void ((*)()))exsltFuncRegister; return !p; }
/* end */

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

have_func: checking for xmlHasFeature()... -------------------- yes

"gcc -o conftest -I/usr/include/x86_64-linux-gnu/ruby-2.5.0 -I/usr/include/ruby-2.5.0/ruby/backward -I/usr/include/ruby-2.5.0 -I. -I/root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxslt/1.1.32/include -I/root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxml2/2.9.8/include/libxml2 -I/root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxml2/2.9.8/include/libxml2 -Wdate-time -D_FORTIFY_SOURCE=2   "-DNOKOGIRI_LIBXML2_PATH=\"/root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxml2/2.9.8\"" "-DNOKOGIRI_LIBXML2_PATCHES=\"0001-Revert-Do-not-URI-escape-in-server-side-includes.patch 0002-Fix-nullptr-deref-with-XPath-logic-ops.patch 0003-Fix-infinite-loop-in-LZMA-decompression.patch\"" "-DNOKOGIRI_LIBXSLT_PATH=\"/root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxslt/1.1.32\"" "-DNOKOGIRI_LIBXSLT_PATCHES=\"\"" -g -O2 -fdebug-prefix-map=/build/ruby2.5-x7Zsb1/ruby2.5-2.5.1=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC  -g -DXP_UNIX -Wall -Wcast-qual -Wwrite-strings -Wmissing-noreturn -Winline -DNOKOGIRI_USE_PACKAGED_LIBRARIES conftest.c  -L. -L/usr/lib/x86_64-linux-gnu -L/root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxml2/2.9.8/lib -L/root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxslt/1.1.32/lib -L. -Wl,-z,relro -Wl,-z,now -fstack-protector -rdynamic -Wl,-export-dynamic    /root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxslt/1.1.32/lib/libexslt.a -lm -ldl -lz /root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxml2/2.9.8/lib/libxml2.a /root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxslt/1.1.32/lib/libxslt.a -ldl -lm -lz /root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxml2/2.9.8/lib/libxml2.a -lruby-2.5 /root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxslt/1.1.32/lib/libexslt.a -lm -ldl -lz /root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxml2/2.9.8/lib/libxml2.a /root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxslt/1.1.32/lib/libxslt.a -ldl -lm -lz /root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxml2/2.9.8/lib/libxml2.a -lpthread -lgmp -ldl -lcrypt -lm   -lc "
conftest.c: In function ‘t’:
conftest.c:13:57: error: ‘xmlHasFeature’ undeclared (first use in this function)
 int t(void) { void ((*volatile p)()); p = (void ((*)()))xmlHasFeature; return !p; }
                                                         ^~~~~~~~~~~~~
conftest.c:13:57: note: each undeclared identifier is reported only once for each function it appears in
checked program was:
/* begin */
 1: #include "ruby.h"
 2: 
 3: /*top*/
 4: extern int t(void);
 5: int main(int argc, char **argv)
 6: {
 7:   if (argc > 1000000) {
 8:     printf("%p", &t);
 9:   }
10: 
11:   return 0;
12: }
13: int t(void) { void ((*volatile p)()); p = (void ((*)()))xmlHasFeature; return !p; }
/* end */

"gcc -o conftest -I/usr/include/x86_64-linux-gnu/ruby-2.5.0 -I/usr/include/ruby-2.5.0/ruby/backward -I/usr/include/ruby-2.5.0 -I. -I/root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxslt/1.1.32/include -I/root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxml2/2.9.8/include/libxml2 -I/root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxml2/2.9.8/include/libxml2 -Wdate-time -D_FORTIFY_SOURCE=2   "-DNOKOGIRI_LIBXML2_PATH=\"/root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxml2/2.9.8\"" "-DNOKOGIRI_LIBXML2_PATCHES=\"0001-Revert-Do-not-URI-escape-in-server-side-includes.patch 0002-Fix-nullptr-deref-with-XPath-logic-ops.patch 0003-Fix-infinite-loop-in-LZMA-decompression.patch\"" "-DNOKOGIRI_LIBXSLT_PATH=\"/root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxslt/1.1.32\"" "-DNOKOGIRI_LIBXSLT_PATCHES=\"\"" -g -O2 -fdebug-prefix-map=/build/ruby2.5-x7Zsb1/ruby2.5-2.5.1=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC  -g -DXP_UNIX -Wall -Wcast-qual -Wwrite-strings -Wmissing-noreturn -Winline -DNOKOGIRI_USE_PACKAGED_LIBRARIES conftest.c  -L. -L/usr/lib/x86_64-linux-gnu -L/root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxml2/2.9.8/lib -L/root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxslt/1.1.32/lib -L. -Wl,-z,relro -Wl,-z,now -fstack-protector -rdynamic -Wl,-export-dynamic    /root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxslt/1.1.32/lib/libexslt.a -lm -ldl -lz /root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxml2/2.9.8/lib/libxml2.a /root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxslt/1.1.32/lib/libxslt.a -ldl -lm -lz /root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxml2/2.9.8/lib/libxml2.a -lruby-2.5 /root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxslt/1.1.32/lib/libexslt.a -lm -ldl -lz /root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxml2/2.9.8/lib/libxml2.a /root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxslt/1.1.32/lib/libxslt.a -ldl -lm -lz /root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxml2/2.9.8/lib/libxml2.a -lpthread -lgmp -ldl -lcrypt -lm   -lc "
checked program was:
/* begin */
 1: #include "ruby.h"
 2: 
 3: /*top*/
 4: extern int t(void);
 5: int main(int argc, char **argv)
 6: {
 7:   if (argc > 1000000) {
 8:     printf("%p", &t);
 9:   }
10: 
11:   return 0;
12: }
13: extern void xmlHasFeature();
14: int t(void) { xmlHasFeature(); return 0; }
/* end */

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

have_func: checking for xmlFirstElementChild()... -------------------- yes

"gcc -o conftest -I/usr/include/x86_64-linux-gnu/ruby-2.5.0 -I/usr/include/ruby-2.5.0/ruby/backward -I/usr/include/ruby-2.5.0 -I. -I/root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxslt/1.1.32/include -I/root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxml2/2.9.8/include/libxml2 -I/root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxml2/2.9.8/include/libxml2 -Wdate-time -D_FORTIFY_SOURCE=2   "-DNOKOGIRI_LIBXML2_PATH=\"/root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxml2/2.9.8\"" "-DNOKOGIRI_LIBXML2_PATCHES=\"0001-Revert-Do-not-URI-escape-in-server-side-includes.patch 0002-Fix-nullptr-deref-with-XPath-logic-ops.patch 0003-Fix-infinite-loop-in-LZMA-decompression.patch\"" "-DNOKOGIRI_LIBXSLT_PATH=\"/root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxslt/1.1.32\"" "-DNOKOGIRI_LIBXSLT_PATCHES=\"\"" -g -O2 -fdebug-prefix-map=/build/ruby2.5-x7Zsb1/ruby2.5-2.5.1=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC  -g -DXP_UNIX -Wall -Wcast-qual -Wwrite-strings -Wmissing-noreturn -Winline -DNOKOGIRI_USE_PACKAGED_LIBRARIES conftest.c  -L. -L/usr/lib/x86_64-linux-gnu -L/root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxml2/2.9.8/lib -L/root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxslt/1.1.32/lib -L. -Wl,-z,relro -Wl,-z,now -fstack-protector -rdynamic -Wl,-export-dynamic    /root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxslt/1.1.32/lib/libexslt.a -lm -ldl -lz /root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxml2/2.9.8/lib/libxml2.a /root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxslt/1.1.32/lib/libxslt.a -ldl -lm -lz /root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxml2/2.9.8/lib/libxml2.a -lruby-2.5 /root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxslt/1.1.32/lib/libexslt.a -lm -ldl -lz /root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxml2/2.9.8/lib/libxml2.a /root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxslt/1.1.32/lib/libxslt.a -ldl -lm -lz /root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxml2/2.9.8/lib/libxml2.a -lpthread -lgmp -ldl -lcrypt -lm   -lc "
conftest.c: In function ‘t’:
conftest.c:13:57: error: ‘xmlFirstElementChild’ undeclared (first use in this function)
 int t(void) { void ((*volatile p)()); p = (void ((*)()))xmlFirstElementChild; return !p; }
                                                         ^~~~~~~~~~~~~~~~~~~~
conftest.c:13:57: note: each undeclared identifier is reported only once for each function it appears in
checked program was:
/* begin */
 1: #include "ruby.h"
 2: 
 3: /*top*/
 4: extern int t(void);
 5: int main(int argc, char **argv)
 6: {
 7:   if (argc > 1000000) {
 8:     printf("%p", &t);
 9:   }
10: 
11:   return 0;
12: }
13: int t(void) { void ((*volatile p)()); p = (void ((*)()))xmlFirstElementChild; return !p; }
/* end */

"gcc -o conftest -I/usr/include/x86_64-linux-gnu/ruby-2.5.0 -I/usr/include/ruby-2.5.0/ruby/backward -I/usr/include/ruby-2.5.0 -I. -I/root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxslt/1.1.32/include -I/root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxml2/2.9.8/include/libxml2 -I/root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxml2/2.9.8/include/libxml2 -Wdate-time -D_FORTIFY_SOURCE=2   "-DNOKOGIRI_LIBXML2_PATH=\"/root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxml2/2.9.8\"" "-DNOKOGIRI_LIBXML2_PATCHES=\"0001-Revert-Do-not-URI-escape-in-server-side-includes.patch 0002-Fix-nullptr-deref-with-XPath-logic-ops.patch 0003-Fix-infinite-loop-in-LZMA-decompression.patch\"" "-DNOKOGIRI_LIBXSLT_PATH=\"/root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxslt/1.1.32\"" "-DNOKOGIRI_LIBXSLT_PATCHES=\"\"" -g -O2 -fdebug-prefix-map=/build/ruby2.5-x7Zsb1/ruby2.5-2.5.1=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC  -g -DXP_UNIX -Wall -Wcast-qual -Wwrite-strings -Wmissing-noreturn -Winline -DNOKOGIRI_USE_PACKAGED_LIBRARIES conftest.c  -L. -L/usr/lib/x86_64-linux-gnu -L/root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxml2/2.9.8/lib -L/root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxslt/1.1.32/lib -L. -Wl,-z,relro -Wl,-z,now -fstack-protector -rdynamic -Wl,-export-dynamic    /root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxslt/1.1.32/lib/libexslt.a -lm -ldl -lz /root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxml2/2.9.8/lib/libxml2.a /root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxslt/1.1.32/lib/libxslt.a -ldl -lm -lz /root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxml2/2.9.8/lib/libxml2.a -lruby-2.5 /root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxslt/1.1.32/lib/libexslt.a -lm -ldl -lz /root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxml2/2.9.8/lib/libxml2.a /root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxslt/1.1.32/lib/libxslt.a -ldl -lm -lz /root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxml2/2.9.8/lib/libxml2.a -lpthread -lgmp -ldl -lcrypt -lm   -lc "
checked program was:
/* begin */
 1: #include "ruby.h"
 2: 
 3: /*top*/
 4: extern int t(void);
 5: int main(int argc, char **argv)
 6: {
 7:   if (argc > 1000000) {
 8:     printf("%p", &t);
 9:   }
10: 
11:   return 0;
12: }
13: extern void xmlFirstElementChild();
14: int t(void) { xmlFirstElementChild(); return 0; }
/* end */

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

have_func: checking for xmlRelaxNGSetParserStructuredErrors()... -------------------- yes

"gcc -o conftest -I/usr/include/x86_64-linux-gnu/ruby-2.5.0 -I/usr/include/ruby-2.5.0/ruby/backward -I/usr/include/ruby-2.5.0 -I. -I/root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxslt/1.1.32/include -I/root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxml2/2.9.8/include/libxml2 -I/root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxml2/2.9.8/include/libxml2 -Wdate-time -D_FORTIFY_SOURCE=2   "-DNOKOGIRI_LIBXML2_PATH=\"/root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxml2/2.9.8\"" "-DNOKOGIRI_LIBXML2_PATCHES=\"0001-Revert-Do-not-URI-escape-in-server-side-includes.patch 0002-Fix-nullptr-deref-with-XPath-logic-ops.patch 0003-Fix-infinite-loop-in-LZMA-decompression.patch\"" "-DNOKOGIRI_LIBXSLT_PATH=\"/root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxslt/1.1.32\"" "-DNOKOGIRI_LIBXSLT_PATCHES=\"\"" -g -O2 -fdebug-prefix-map=/build/ruby2.5-x7Zsb1/ruby2.5-2.5.1=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC  -g -DXP_UNIX -Wall -Wcast-qual -Wwrite-strings -Wmissing-noreturn -Winline -DNOKOGIRI_USE_PACKAGED_LIBRARIES conftest.c  -L. -L/usr/lib/x86_64-linux-gnu -L/root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxml2/2.9.8/lib -L/root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxslt/1.1.32/lib -L. -Wl,-z,relro -Wl,-z,now -fstack-protector -rdynamic -Wl,-export-dynamic    /root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxslt/1.1.32/lib/libexslt.a -lm -ldl -lz /root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxml2/2.9.8/lib/libxml2.a /root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxslt/1.1.32/lib/libxslt.a -ldl -lm -lz /root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxml2/2.9.8/lib/libxml2.a -lruby-2.5 /root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxslt/1.1.32/lib/libexslt.a -lm -ldl -lz /root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxml2/2.9.8/lib/libxml2.a /root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxslt/1.1.32/lib/libxslt.a -ldl -lm -lz /root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxml2/2.9.8/lib/libxml2.a -lpthread -lgmp -ldl -lcrypt -lm   -lc "
conftest.c: In function ‘t’:
conftest.c:13:57: error: ‘xmlRelaxNGSetParserStructuredErrors’ undeclared (first use in this function)
 int t(void) { void ((*volatile p)()); p = (void ((*)()))xmlRelaxNGSetParserStructuredErrors; return !p; }
                                                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
conftest.c:13:57: note: each undeclared identifier is reported only once for each function it appears in
checked program was:
/* begin */
 1: #include "ruby.h"
 2: 
 3: /*top*/
 4: extern int t(void);
 5: int main(int argc, char **argv)
 6: {
 7:   if (argc > 1000000) {
 8:     printf("%p", &t);
 9:   }
10: 
11:   return 0;
12: }
13: int t(void) { void ((*volatile p)()); p = (void ((*)()))xmlRelaxNGSetParserStructuredErrors; return !p; }
/* end */

"gcc -o conftest -I/usr/include/x86_64-linux-gnu/ruby-2.5.0 -I/usr/include/ruby-2.5.0/ruby/backward -I/usr/include/ruby-2.5.0 -I. -I/root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxslt/1.1.32/include -I/root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxml2/2.9.8/include/libxml2 -I/root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxml2/2.9.8/include/libxml2 -Wdate-time -D_FORTIFY_SOURCE=2   "-DNOKOGIRI_LIBXML2_PATH=\"/root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxml2/2.9.8\"" "-DNOKOGIRI_LIBXML2_PATCHES=\"0001-Revert-Do-not-URI-escape-in-server-side-includes.patch 0002-Fix-nullptr-deref-with-XPath-logic-ops.patch 0003-Fix-infinite-loop-in-LZMA-decompression.patch\"" "-DNOKOGIRI_LIBXSLT_PATH=\"/root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxslt/1.1.32\"" "-DNOKOGIRI_LIBXSLT_PATCHES=\"\"" -g -O2 -fdebug-prefix-map=/build/ruby2.5-x7Zsb1/ruby2.5-2.5.1=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC  -g -DXP_UNIX -Wall -Wcast-qual -Wwrite-strings -Wmissing-noreturn -Winline -DNOKOGIRI_USE_PACKAGED_LIBRARIES conftest.c  -L. -L/usr/lib/x86_64-linux-gnu -L/root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxml2/2.9.8/lib -L/root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxslt/1.1.32/lib -L. -Wl,-z,relro -Wl,-z,now -fstack-protector -rdynamic -Wl,-export-dynamic    /root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxslt/1.1.32/lib/libexslt.a -lm -ldl -lz /root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxml2/2.9.8/lib/libxml2.a /root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxslt/1.1.32/lib/libxslt.a -ldl -lm -lz /root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxml2/2.9.8/lib/libxml2.a -lruby-2.5 /root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxslt/1.1.32/lib/libexslt.a -lm -ldl -lz /root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxml2/2.9.8/lib/libxml2.a /root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxslt/1.1.32/lib/libxslt.a -ldl -lm -lz /root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxml2/2.9.8/lib/libxml2.a -lpthread -lgmp -ldl -lcrypt -lm   -lc "
checked program was:
/* begin */
 1: #include "ruby.h"
 2: 
 3: /*top*/
 4: extern int t(void);
 5: int main(int argc, char **argv)
 6: {
 7:   if (argc > 1000000) {
 8:     printf("%p", &t);
 9:   }
10: 
11:   return 0;
12: }
13: extern void xmlRelaxNGSetParserStructuredErrors();
14: int t(void) { xmlRelaxNGSetParserStructuredErrors(); return 0; }
/* end */

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

have_func: checking for xmlRelaxNGSetParserStructuredErrors()... -------------------- yes

"gcc -o conftest -I/usr/include/x86_64-linux-gnu/ruby-2.5.0 -I/usr/include/ruby-2.5.0/ruby/backward -I/usr/include/ruby-2.5.0 -I. -I/root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxslt/1.1.32/include -I/root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxml2/2.9.8/include/libxml2 -I/root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxml2/2.9.8/include/libxml2 -Wdate-time -D_FORTIFY_SOURCE=2   "-DNOKOGIRI_LIBXML2_PATH=\"/root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxml2/2.9.8\"" "-DNOKOGIRI_LIBXML2_PATCHES=\"0001-Revert-Do-not-URI-escape-in-server-side-includes.patch 0002-Fix-nullptr-deref-with-XPath-logic-ops.patch 0003-Fix-infinite-loop-in-LZMA-decompression.patch\"" "-DNOKOGIRI_LIBXSLT_PATH=\"/root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxslt/1.1.32\"" "-DNOKOGIRI_LIBXSLT_PATCHES=\"\"" -g -O2 -fdebug-prefix-map=/build/ruby2.5-x7Zsb1/ruby2.5-2.5.1=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC  -g -DXP_UNIX -Wall -Wcast-qual -Wwrite-strings -Wmissing-noreturn -Winline -DNOKOGIRI_USE_PACKAGED_LIBRARIES conftest.c  -L. -L/usr/lib/x86_64-linux-gnu -L/root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxml2/2.9.8/lib -L/root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxslt/1.1.32/lib -L. -Wl,-z,relro -Wl,-z,now -fstack-protector -rdynamic -Wl,-export-dynamic    /root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxslt/1.1.32/lib/libexslt.a -lm -ldl -lz /root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxml2/2.9.8/lib/libxml2.a /root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxslt/1.1.32/lib/libxslt.a -ldl -lm -lz /root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxml2/2.9.8/lib/libxml2.a -lruby-2.5 /root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxslt/1.1.32/lib/libexslt.a -lm -ldl -lz /root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxml2/2.9.8/lib/libxml2.a /root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxslt/1.1.32/lib/libxslt.a -ldl -lm -lz /root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxml2/2.9.8/lib/libxml2.a -lpthread -lgmp -ldl -lcrypt -lm   -lc "
conftest.c: In function ‘t’:
conftest.c:13:57: error: ‘xmlRelaxNGSetParserStructuredErrors’ undeclared (first use in this function)
 int t(void) { void ((*volatile p)()); p = (void ((*)()))xmlRelaxNGSetParserStructuredErrors; return !p; }
                                                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
conftest.c:13:57: note: each undeclared identifier is reported only once for each function it appears in
checked program was:
/* begin */
 1: #include "ruby.h"
 2: 
 3: /*top*/
 4: extern int t(void);
 5: int main(int argc, char **argv)
 6: {
 7:   if (argc > 1000000) {
 8:     printf("%p", &t);
 9:   }
10: 
11:   return 0;
12: }
13: int t(void) { void ((*volatile p)()); p = (void ((*)()))xmlRelaxNGSetParserStructuredErrors; return !p; }
/* end */

"gcc -o conftest -I/usr/include/x86_64-linux-gnu/ruby-2.5.0 -I/usr/include/ruby-2.5.0/ruby/backward -I/usr/include/ruby-2.5.0 -I. -I/root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxslt/1.1.32/include -I/root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxml2/2.9.8/include/libxml2 -I/root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxml2/2.9.8/include/libxml2 -Wdate-time -D_FORTIFY_SOURCE=2   "-DNOKOGIRI_LIBXML2_PATH=\"/root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxml2/2.9.8\"" "-DNOKOGIRI_LIBXML2_PATCHES=\"0001-Revert-Do-not-URI-escape-in-server-side-includes.patch 0002-Fix-nullptr-deref-with-XPath-logic-ops.patch 0003-Fix-infinite-loop-in-LZMA-decompression.patch\"" "-DNOKOGIRI_LIBXSLT_PATH=\"/root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxslt/1.1.32\"" "-DNOKOGIRI_LIBXSLT_PATCHES=\"\"" -g -O2 -fdebug-prefix-map=/build/ruby2.5-x7Zsb1/ruby2.5-2.5.1=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC  -g -DXP_UNIX -Wall -Wcast-qual -Wwrite-strings -Wmissing-noreturn -Winline -DNOKOGIRI_USE_PACKAGED_LIBRARIES conftest.c  -L. -L/usr/lib/x86_64-linux-gnu -L/root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxml2/2.9.8/lib -L/root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxslt/1.1.32/lib -L. -Wl,-z,relro -Wl,-z,now -fstack-protector -rdynamic -Wl,-export-dynamic    /root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxslt/1.1.32/lib/libexslt.a -lm -ldl -lz /root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxml2/2.9.8/lib/libxml2.a /root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxslt/1.1.32/lib/libxslt.a -ldl -lm -lz /root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxml2/2.9.8/lib/libxml2.a -lruby-2.5 /root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxslt/1.1.32/lib/libexslt.a -lm -ldl -lz /root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxml2/2.9.8/lib/libxml2.a /root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxslt/1.1.32/lib/libxslt.a -ldl -lm -lz /root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxml2/2.9.8/lib/libxml2.a -lpthread -lgmp -ldl -lcrypt -lm   -lc "
checked program was:
/* begin */
 1: #include "ruby.h"
 2: 
 3: /*top*/
 4: extern int t(void);
 5: int main(int argc, char **argv)
 6: {
 7:   if (argc > 1000000) {
 8:     printf("%p", &t);
 9:   }
10: 
11:   return 0;
12: }
13: extern void xmlRelaxNGSetParserStructuredErrors();
14: int t(void) { xmlRelaxNGSetParserStructuredErrors(); return 0; }
/* end */

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

have_func: checking for xmlRelaxNGSetValidStructuredErrors()... -------------------- yes

"gcc -o conftest -I/usr/include/x86_64-linux-gnu/ruby-2.5.0 -I/usr/include/ruby-2.5.0/ruby/backward -I/usr/include/ruby-2.5.0 -I. -I/root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxslt/1.1.32/include -I/root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxml2/2.9.8/include/libxml2 -I/root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxml2/2.9.8/include/libxml2 -Wdate-time -D_FORTIFY_SOURCE=2   "-DNOKOGIRI_LIBXML2_PATH=\"/root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxml2/2.9.8\"" "-DNOKOGIRI_LIBXML2_PATCHES=\"0001-Revert-Do-not-URI-escape-in-server-side-includes.patch 0002-Fix-nullptr-deref-with-XPath-logic-ops.patch 0003-Fix-infinite-loop-in-LZMA-decompression.patch\"" "-DNOKOGIRI_LIBXSLT_PATH=\"/root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxslt/1.1.32\"" "-DNOKOGIRI_LIBXSLT_PATCHES=\"\"" -g -O2 -fdebug-prefix-map=/build/ruby2.5-x7Zsb1/ruby2.5-2.5.1=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC  -g -DXP_UNIX -Wall -Wcast-qual -Wwrite-strings -Wmissing-noreturn -Winline -DNOKOGIRI_USE_PACKAGED_LIBRARIES conftest.c  -L. -L/usr/lib/x86_64-linux-gnu -L/root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxml2/2.9.8/lib -L/root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxslt/1.1.32/lib -L. -Wl,-z,relro -Wl,-z,now -fstack-protector -rdynamic -Wl,-export-dynamic    /root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxslt/1.1.32/lib/libexslt.a -lm -ldl -lz /root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxml2/2.9.8/lib/libxml2.a /root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxslt/1.1.32/lib/libxslt.a -ldl -lm -lz /root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxml2/2.9.8/lib/libxml2.a -lruby-2.5 /root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxslt/1.1.32/lib/libexslt.a -lm -ldl -lz /root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxml2/2.9.8/lib/libxml2.a /root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxslt/1.1.32/lib/libxslt.a -ldl -lm -lz /root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxml2/2.9.8/lib/libxml2.a -lpthread -lgmp -ldl -lcrypt -lm   -lc "
conftest.c: In function ‘t’:
conftest.c:13:57: error: ‘xmlRelaxNGSetValidStructuredErrors’ undeclared (first use in this function)
 int t(void) { void ((*volatile p)()); p = (void ((*)()))xmlRelaxNGSetValidStructuredErrors; return !p; }
                                                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
conftest.c:13:57: note: each undeclared identifier is reported only once for each function it appears in
checked program was:
/* begin */
 1: #include "ruby.h"
 2: 
 3: /*top*/
 4: extern int t(void);
 5: int main(int argc, char **argv)
 6: {
 7:   if (argc > 1000000) {
 8:     printf("%p", &t);
 9:   }
10: 
11:   return 0;
12: }
13: int t(void) { void ((*volatile p)()); p = (void ((*)()))xmlRelaxNGSetValidStructuredErrors; return !p; }
/* end */

"gcc -o conftest -I/usr/include/x86_64-linux-gnu/ruby-2.5.0 -I/usr/include/ruby-2.5.0/ruby/backward -I/usr/include/ruby-2.5.0 -I. -I/root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxslt/1.1.32/include -I/root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxml2/2.9.8/include/libxml2 -I/root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxml2/2.9.8/include/libxml2 -Wdate-time -D_FORTIFY_SOURCE=2   "-DNOKOGIRI_LIBXML2_PATH=\"/root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxml2/2.9.8\"" "-DNOKOGIRI_LIBXML2_PATCHES=\"0001-Revert-Do-not-URI-escape-in-server-side-includes.patch 0002-Fix-nullptr-deref-with-XPath-logic-ops.patch 0003-Fix-infinite-loop-in-LZMA-decompression.patch\"" "-DNOKOGIRI_LIBXSLT_PATH=\"/root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxslt/1.1.32\"" "-DNOKOGIRI_LIBXSLT_PATCHES=\"\"" -g -O2 -fdebug-prefix-map=/build/ruby2.5-x7Zsb1/ruby2.5-2.5.1=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC  -g -DXP_UNIX -Wall -Wcast-qual -Wwrite-strings -Wmissing-noreturn -Winline -DNOKOGIRI_USE_PACKAGED_LIBRARIES conftest.c  -L. -L/usr/lib/x86_64-linux-gnu -L/root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxml2/2.9.8/lib -L/root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxslt/1.1.32/lib -L. -Wl,-z,relro -Wl,-z,now -fstack-protector -rdynamic -Wl,-export-dynamic    /root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxslt/1.1.32/lib/libexslt.a -lm -ldl -lz /root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxml2/2.9.8/lib/libxml2.a /root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxslt/1.1.32/lib/libxslt.a -ldl -lm -lz /root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxml2/2.9.8/lib/libxml2.a -lruby-2.5 /root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxslt/1.1.32/lib/libexslt.a -lm -ldl -lz /root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxml2/2.9.8/lib/libxml2.a /root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxslt/1.1.32/lib/libxslt.a -ldl -lm -lz /root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxml2/2.9.8/lib/libxml2.a -lpthread -lgmp -ldl -lcrypt -lm   -lc "
checked program was:
/* begin */
 1: #include "ruby.h"
 2: 
 3: /*top*/
 4: extern int t(void);
 5: int main(int argc, char **argv)
 6: {
 7:   if (argc > 1000000) {
 8:     printf("%p", &t);
 9:   }
10: 
11:   return 0;
12: }
13: extern void xmlRelaxNGSetValidStructuredErrors();
14: int t(void) { xmlRelaxNGSetValidStructuredErrors(); return 0; }
/* end */

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

have_func: checking for xmlSchemaSetValidStructuredErrors()... -------------------- yes

"gcc -o conftest -I/usr/include/x86_64-linux-gnu/ruby-2.5.0 -I/usr/include/ruby-2.5.0/ruby/backward -I/usr/include/ruby-2.5.0 -I. -I/root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxslt/1.1.32/include -I/root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxml2/2.9.8/include/libxml2 -I/root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxml2/2.9.8/include/libxml2 -Wdate-time -D_FORTIFY_SOURCE=2   "-DNOKOGIRI_LIBXML2_PATH=\"/root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxml2/2.9.8\"" "-DNOKOGIRI_LIBXML2_PATCHES=\"0001-Revert-Do-not-URI-escape-in-server-side-includes.patch 0002-Fix-nullptr-deref-with-XPath-logic-ops.patch 0003-Fix-infinite-loop-in-LZMA-decompression.patch\"" "-DNOKOGIRI_LIBXSLT_PATH=\"/root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxslt/1.1.32\"" "-DNOKOGIRI_LIBXSLT_PATCHES=\"\"" -g -O2 -fdebug-prefix-map=/build/ruby2.5-x7Zsb1/ruby2.5-2.5.1=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC  -g -DXP_UNIX -Wall -Wcast-qual -Wwrite-strings -Wmissing-noreturn -Winline -DNOKOGIRI_USE_PACKAGED_LIBRARIES conftest.c  -L. -L/usr/lib/x86_64-linux-gnu -L/root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxml2/2.9.8/lib -L/root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxslt/1.1.32/lib -L. -Wl,-z,relro -Wl,-z,now -fstack-protector -rdynamic -Wl,-export-dynamic    /root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxslt/1.1.32/lib/libexslt.a -lm -ldl -lz /root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxml2/2.9.8/lib/libxml2.a /root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxslt/1.1.32/lib/libxslt.a -ldl -lm -lz /root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxml2/2.9.8/lib/libxml2.a -lruby-2.5 /root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxslt/1.1.32/lib/libexslt.a -lm -ldl -lz /root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxml2/2.9.8/lib/libxml2.a /root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxslt/1.1.32/lib/libxslt.a -ldl -lm -lz /root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxml2/2.9.8/lib/libxml2.a -lpthread -lgmp -ldl -lcrypt -lm   -lc "
conftest.c: In function ‘t’:
conftest.c:13:57: error: ‘xmlSchemaSetValidStructuredErrors’ undeclared (first use in this function)
 int t(void) { void ((*volatile p)()); p = (void ((*)()))xmlSchemaSetValidStructuredErrors; return !p; }
                                                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
conftest.c:13:57: note: each undeclared identifier is reported only once for each function it appears in
checked program was:
/* begin */
 1: #include "ruby.h"
 2: 
 3: /*top*/
 4: extern int t(void);
 5: int main(int argc, char **argv)
 6: {
 7:   if (argc > 1000000) {
 8:     printf("%p", &t);
 9:   }
10: 
11:   return 0;
12: }
13: int t(void) { void ((*volatile p)()); p = (void ((*)()))xmlSchemaSetValidStructuredErrors; return !p; }
/* end */

"gcc -o conftest -I/usr/include/x86_64-linux-gnu/ruby-2.5.0 -I/usr/include/ruby-2.5.0/ruby/backward -I/usr/include/ruby-2.5.0 -I. -I/root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxslt/1.1.32/include -I/root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxml2/2.9.8/include/libxml2 -I/root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxml2/2.9.8/include/libxml2 -Wdate-time -D_FORTIFY_SOURCE=2   "-DNOKOGIRI_LIBXML2_PATH=\"/root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxml2/2.9.8\"" "-DNOKOGIRI_LIBXML2_PATCHES=\"0001-Revert-Do-not-URI-escape-in-server-side-includes.patch 0002-Fix-nullptr-deref-with-XPath-logic-ops.patch 0003-Fix-infinite-loop-in-LZMA-decompression.patch\"" "-DNOKOGIRI_LIBXSLT_PATH=\"/root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxslt/1.1.32\"" "-DNOKOGIRI_LIBXSLT_PATCHES=\"\"" -g -O2 -fdebug-prefix-map=/build/ruby2.5-x7Zsb1/ruby2.5-2.5.1=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC  -g -DXP_UNIX -Wall -Wcast-qual -Wwrite-strings -Wmissing-noreturn -Winline -DNOKOGIRI_USE_PACKAGED_LIBRARIES conftest.c  -L. -L/usr/lib/x86_64-linux-gnu -L/root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxml2/2.9.8/lib -L/root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxslt/1.1.32/lib -L. -Wl,-z,relro -Wl,-z,now -fstack-protector -rdynamic -Wl,-export-dynamic    /root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxslt/1.1.32/lib/libexslt.a -lm -ldl -lz /root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxml2/2.9.8/lib/libxml2.a /root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxslt/1.1.32/lib/libxslt.a -ldl -lm -lz /root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxml2/2.9.8/lib/libxml2.a -lruby-2.5 /root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxslt/1.1.32/lib/libexslt.a -lm -ldl -lz /root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxml2/2.9.8/lib/libxml2.a /root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxslt/1.1.32/lib/libxslt.a -ldl -lm -lz /root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxml2/2.9.8/lib/libxml2.a -lpthread -lgmp -ldl -lcrypt -lm   -lc "
checked program was:
/* begin */
 1: #include "ruby.h"
 2: 
 3: /*top*/
 4: extern int t(void);
 5: int main(int argc, char **argv)
 6: {
 7:   if (argc > 1000000) {
 8:     printf("%p", &t);
 9:   }
10: 
11:   return 0;
12: }
13: extern void xmlSchemaSetValidStructuredErrors();
14: int t(void) { xmlSchemaSetValidStructuredErrors(); return 0; }
/* end */

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

have_func: checking for xmlSchemaSetParserStructuredErrors()... -------------------- yes

"gcc -o conftest -I/usr/include/x86_64-linux-gnu/ruby-2.5.0 -I/usr/include/ruby-2.5.0/ruby/backward -I/usr/include/ruby-2.5.0 -I. -I/root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxslt/1.1.32/include -I/root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxml2/2.9.8/include/libxml2 -I/root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxml2/2.9.8/include/libxml2 -Wdate-time -D_FORTIFY_SOURCE=2   "-DNOKOGIRI_LIBXML2_PATH=\"/root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxml2/2.9.8\"" "-DNOKOGIRI_LIBXML2_PATCHES=\"0001-Revert-Do-not-URI-escape-in-server-side-includes.patch 0002-Fix-nullptr-deref-with-XPath-logic-ops.patch 0003-Fix-infinite-loop-in-LZMA-decompression.patch\"" "-DNOKOGIRI_LIBXSLT_PATH=\"/root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxslt/1.1.32\"" "-DNOKOGIRI_LIBXSLT_PATCHES=\"\"" -g -O2 -fdebug-prefix-map=/build/ruby2.5-x7Zsb1/ruby2.5-2.5.1=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC  -g -DXP_UNIX -Wall -Wcast-qual -Wwrite-strings -Wmissing-noreturn -Winline -DNOKOGIRI_USE_PACKAGED_LIBRARIES conftest.c  -L. -L/usr/lib/x86_64-linux-gnu -L/root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxml2/2.9.8/lib -L/root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxslt/1.1.32/lib -L. -Wl,-z,relro -Wl,-z,now -fstack-protector -rdynamic -Wl,-export-dynamic    /root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxslt/1.1.32/lib/libexslt.a -lm -ldl -lz /root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxml2/2.9.8/lib/libxml2.a /root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxslt/1.1.32/lib/libxslt.a -ldl -lm -lz /root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxml2/2.9.8/lib/libxml2.a -lruby-2.5 /root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxslt/1.1.32/lib/libexslt.a -lm -ldl -lz /root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxml2/2.9.8/lib/libxml2.a /root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxslt/1.1.32/lib/libxslt.a -ldl -lm -lz /root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxml2/2.9.8/lib/libxml2.a -lpthread -lgmp -ldl -lcrypt -lm   -lc "
conftest.c: In function ‘t’:
conftest.c:13:57: error: ‘xmlSchemaSetParserStructuredErrors’ undeclared (first use in this function)
 int t(void) { void ((*volatile p)()); p = (void ((*)()))xmlSchemaSetParserStructuredErrors; return !p; }
                                                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
conftest.c:13:57: note: each undeclared identifier is reported only once for each function it appears in
checked program was:
/* begin */
 1: #include "ruby.h"
 2: 
 3: /*top*/
 4: extern int t(void);
 5: int main(int argc, char **argv)
 6: {
 7:   if (argc > 1000000) {
 8:     printf("%p", &t);
 9:   }
10: 
11:   return 0;
12: }
13: int t(void) { void ((*volatile p)()); p = (void ((*)()))xmlSchemaSetParserStructuredErrors; return !p; }
/* end */

"gcc -o conftest -I/usr/include/x86_64-linux-gnu/ruby-2.5.0 -I/usr/include/ruby-2.5.0/ruby/backward -I/usr/include/ruby-2.5.0 -I. -I/root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxslt/1.1.32/include -I/root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxml2/2.9.8/include/libxml2 -I/root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxml2/2.9.8/include/libxml2 -Wdate-time -D_FORTIFY_SOURCE=2   "-DNOKOGIRI_LIBXML2_PATH=\"/root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxml2/2.9.8\"" "-DNOKOGIRI_LIBXML2_PATCHES=\"0001-Revert-Do-not-URI-escape-in-server-side-includes.patch 0002-Fix-nullptr-deref-with-XPath-logic-ops.patch 0003-Fix-infinite-loop-in-LZMA-decompression.patch\"" "-DNOKOGIRI_LIBXSLT_PATH=\"/root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxslt/1.1.32\"" "-DNOKOGIRI_LIBXSLT_PATCHES=\"\"" -g -O2 -fdebug-prefix-map=/build/ruby2.5-x7Zsb1/ruby2.5-2.5.1=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC  -g -DXP_UNIX -Wall -Wcast-qual -Wwrite-strings -Wmissing-noreturn -Winline -DNOKOGIRI_USE_PACKAGED_LIBRARIES conftest.c  -L. -L/usr/lib/x86_64-linux-gnu -L/root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxml2/2.9.8/lib -L/root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxslt/1.1.32/lib -L. -Wl,-z,relro -Wl,-z,now -fstack-protector -rdynamic -Wl,-export-dynamic    /root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxslt/1.1.32/lib/libexslt.a -lm -ldl -lz /root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxml2/2.9.8/lib/libxml2.a /root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxslt/1.1.32/lib/libxslt.a -ldl -lm -lz /root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxml2/2.9.8/lib/libxml2.a -lruby-2.5 /root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxslt/1.1.32/lib/libexslt.a -lm -ldl -lz /root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxml2/2.9.8/lib/libxml2.a /root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxslt/1.1.32/lib/libxslt.a -ldl -lm -lz /root/dradis-ce/gems/nokogiri-1.8.5/ports/x86_64-pc-linux-gnu/libxml2/2.9.8/lib/libxml2.a -lpthread -lgmp -ldl -lcrypt -lm   -lc "
checked program was:
/* begin */
 1: #include "ruby.h"
 2: 
 3: /*top*/
 4: extern int t(void);
 5: int main(int argc, char **argv)
 6: {
 7:   if (argc > 1000000) {
 8:     printf("%p", &t);
 9:   }
10: 
11:   return 0;
12: }
13: extern void xmlSchemaSetParserStructuredErrors();
14: int t(void) { xmlSchemaSetParserStructuredErrors(); return 0; }
/* end */

--------------------
rubys commented 5 years ago

have_library: checking for -llzma... -------------------- no

Try installing lzma? See http://installion.co.uk/kali/kali/main/l/lzma/install/index.html

banureddy1947 commented 5 years ago

Tried it. Still no luck. :(

banureddy1947 commented 5 years ago

In the gem file, the nokogiri is mentioned as:

gem 'nokogiri', '1.8.5'

Does it have to with anything? Also there is a file called Gemfile.lock in the dradis-ce directory.

rubys commented 5 years ago

The following Dockerfile works for me:

FROM kalilinux/kali-linux-docker
RUN apt-get update; apt-get install -y build-essential zlib1g-dev ruby ruby-dev
RUN gem install nokogumbo
banureddy1947 commented 5 years ago

Nothing works. I tried installing a fresh version of kali linux on a new virtual machine and started the process again. I am getting the same error. However, I noticed one thing. I followed the instructions on the website in the following order:

apt-get install libsqlite3-dev
apt-get install libmariadbclient-dev-compat 
apt-get install mariadb-client-10.1
apt-get install mariadb-server-10.1

And I did:

git clone https://github.com/dradis/dradis-ce.git
cd dradis-ce/
/bin/setup

at this point I got the error:

Fetching nokogiri 1.8.5
Installing nokogiri 1.8.5 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

    current directory: /var/lib/gems/2.5.0/gems/nokogiri-1.8.5/ext/nokogiri
/usr/bin/ruby2.5 -r ./siteconf20190225-2215-qvz5kj.rb extconf.rb
checking if the C compiler accepts ... yes
Building nokogiri using packaged libraries.
Using mini_portile version 2.3.0
checking for gzdopen() in -lz... no
zlib is missing; necessary for building libxml2
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers.  Check the mkmf.log file for more details.  You may
need configuration options.

Provided configuration options:
    --with-opt-dir
    --without-opt-dir
    --with-opt-include
    --without-opt-include=${opt-dir}/include
    --with-opt-lib
    --without-opt-lib=${opt-dir}/lib
    --with-make-prog
    --without-make-prog
    --srcdir=.
    --curdir
    --ruby=/usr/bin/$(RUBY_BASE_NAME)2.5
    --help
    --clean
    --use-system-libraries
    --enable-static
    --disable-static
    --with-zlib-dir
    --without-zlib-dir
    --with-zlib-include
    --without-zlib-include=${zlib-dir}/include
    --with-zlib-lib
    --without-zlib-lib=${zlib-dir}/lib
    --enable-cross-build
    --disable-cross-build

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

  /var/lib/gems/2.5.0/extensions/x86_64-linux/2.5.0/nokogiri-1.8.5/mkmf.log

extconf failed, exit code 1

Gem files will remain installed in /var/lib/gems/2.5.0/gems/nokogiri-1.8.5 for
inspection.
Results logged to
/var/lib/gems/2.5.0/extensions/x86_64-linux/2.5.0/nokogiri-1.8.5/gem_make.out

An error occurred while installing nokogiri (1.8.5), and Bundler cannot
continue.
Make sure that `gem install nokogiri -v '1.8.5'` succeeds before bundling.

In Gemfile:
  dradis-html_export was resolved to 3.11.0, which depends on
    rails_autolink was resolved to 1.1.6, which depends on
      rails was resolved to 5.1.6.1, which depends on
        actioncable was resolved to 5.1.6.1, which depends on
          actionpack was resolved to 5.1.6.1, which depends on
            actionview was resolved to 5.1.6.1, which depends on
              rails-dom-testing was resolved to 2.0.3, which depends on
                nokogiri

== Command ["bundle install"] failed ==

As per the troubeshooting tips mentioned, I tried apt-get update and bundle install --path /root/dradis-ce/ which gives me the same error. This is on a new kali linux virtual machine.

flavorjones commented 5 years ago

@banureddy1947 please follow instructions at https://nokogiri.org/tutorials/installing_nokogiri.html to address the error you mentioned in your post immediately preceding this one. I'd like to avoid conflating easy-to-address nokogiri installation challenges with the original problem stated in this issue.

rubys commented 5 years ago

@banureddy1947 Note that this time you are getting a message that "zlib is missing; necessary for building libxml2". Note also that the instructions that worked for me included:

apt-get install -y build-essential zlib1g-dev ruby ruby-dev

Key is the inclusion of zlib1g-dev.

banureddy1947 commented 5 years ago

Did that. not working. I found an answer on

https://stackoverflow.com/questions/6971290/running-bundle-install-fails-and-asks-me-to-run-bundle-install

which tells me to change directory and install the gems seperately using:

sudo gem install [gem name]

In the fresh kali linux that I installed, I ran that and it worked perfectly. However, I got the error:

== Command ["bin/rails db:create db:migrate db:setup"] failed ==

I tried a couple of solutions, but not resolved.

banureddy1947 commented 5 years ago

@banureddy1947 please follow instructions at https://nokogiri.org/tutorials/installing_nokogiri.html to address the error you mentioned in your post immediately preceding this one. I'd like to avoid conflating easy-to-address nokogiri installation challenges with the original problem stated in this issue.

I did came across this. But no changes in the error.

stevecheckoway commented 5 years ago

@banureddy1947 The directions on the https://dradisframework.com/ce/documentation/install_kali.html page don't actually work for me and the build fails before getting to installing nokogumbo.

Skwerl23 commented 5 years ago

I fixed the issue by force nokogiri 1.10.3 Something is wrong with the install process, as the system level ruby can install nokogumbo 2.0.1 anyhow to do this change directories to dradis-ce from where you git cloned it. then ran this...

sed -i "s|1.10.4|1.10.3|g" Gemfile*

this can be dangerous on future builds as it edits all gem files, the smart thing to do is go into each file (because a future git clone could fix the issue, but until it does, it could edit another ruby gem that is also version 1.10.4 nokogiri is currently the only one) Gemfile and Gemfile.lock and editing any reference to nokogiri 1.10.4 to be 1.10.3

anyhow this took me days to figure out. And now i found out it's not installed as a system program, so i'm off to do that.

FINAL NOTE: this breaks other things, so the real answer is to get it to install nokogiri 1.10.3 and 1.10.4, so if you sed back and forth and re-install the bundle a few times, it works but it's not an ideal solution, unfortunately i don't know ruby well enough to tell it how to install both packages... well it can't i just tried, and it just removes the older version from dependencies...

So the real final way to do it...

cd dradis-ce
bundle install
`sed -i "s|1.10.4|1.10.3|g" Gemfile*`
bundle install

This ONLY WORKS because netsparker is installed with nokogiri 1.10.4... then a switch over to 1.10.3 and then reinstall, it's weird that 1.10.4 breaks nokogumbo, but i don't understand how ruby works. At least this is a fix... (as bad as it is) for now to make it work.

flavorjones commented 3 years ago

Closing, as I don't know that there's anything Nokogumbo or Nokogiri maintainers can do to help at this point. If this is a problem for anyone, please open a new issue and we can help!