Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[install] canonicalize already defined by glibc #2105

Closed
1 task done
pterjan opened this issue Oct 28, 2020 · 3 comments · Fixed by #2106
Closed
1 task done

[install] canonicalize already defined by glibc #2105

pterjan opened this issue Oct 28, 2020 · 3 comments · Fixed by #2106
Labels
topic/installation Installation difficulties
Milestone

Comments

@pterjan
Copy link

pterjan commented Oct 28, 2020

Have you read and followed the installation tutorial at http://www.nokogiri.org/tutorials/installing_nokogiri.html?

  • Yes!

What is the complete output of gem install or bundle install?

$ gem install nokogiri
Fetching mini_portile2-2.4.0.gem
Fetching nokogiri-1.10.10.gem
Successfully installed mini_portile2-2.4.0
Building native extensions. This could take a while...
ERROR:  Error installing nokogiri:
	ERROR: Failed to build gem native extension.

    current directory: /home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ext/nokogiri
/usr/bin/ruby -I /usr/share/rubygems -r ./siteconf20201028-7232-11zk3m2.rb extconf.rb
checking if the C compiler accepts ... yes
Building nokogiri using packaged libraries.
Using mini_portile version 2.4.0
checking for gzdopen() in -lz... yes
checking for iconv... yes
************************************************************************
IMPORTANT NOTICE:

Building Nokogiri with a packaged version of libxml2-2.9.10
with the following patches applied:
	- 0001-Revert-Do-not-URI-escape-in-server-side-includes.patch
	- 0002-Remove-script-macro-support.patch
	- 0003-Update-entities-to-remove-handling-of-ssi.patch
	- 0004-libxml2.la-is-in-top_builddir.patch
	- 0005-Fix-infinite-loop-in-xmlStringLenDecodeEntities.patch

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

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

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

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

Note, however, that nokogiri is not fully compatible with arbitrary
versions of libxml2 provided by OS/package vendors.
************************************************************************
Extracting libxml2-2.9.10.tar.gz into tmp/x86_64-mageia-linux-gnu/ports/libxml2/2.9.10... OK
Running git apply with /home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/patches/libxml2/0001-Revert-Do-not-URI-escape-in-server-side-includes.patch... OK
Running git apply with /home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/patches/libxml2/0002-Remove-script-macro-support.patch... OK
Running git apply with /home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/patches/libxml2/0003-Update-entities-to-remove-handling-of-ssi.patch... OK
Running git apply with /home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/patches/libxml2/0004-libxml2.la-is-in-top_builddir.patch... OK
Running git apply with /home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/patches/libxml2/0005-Fix-infinite-loop-in-xmlStringLenDecodeEntities.patch... OK
Running 'configure' for libxml2 2.9.10... OK
Running 'compile' for libxml2 2.9.10... OK
Running 'install' for libxml2 2.9.10... OK
Activating libxml2 2.9.10 (from /home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10)...
************************************************************************
IMPORTANT NOTICE:

Building Nokogiri with a packaged version of libxslt-1.1.34.

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

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

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

    bundle config build.nokogiri --use-system-libraries
    bundle install
************************************************************************
Extracting libxslt-1.1.34.tar.gz into tmp/x86_64-mageia-linux-gnu/ports/libxslt/1.1.34... OK
Running 'configure' for libxslt 1.1.34... OK
Running 'compile' for libxslt 1.1.34... OK
Running 'install' for libxslt 1.1.34... OK
Activating libxslt 1.1.34 (from /home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxslt/1.1.34)...
checking for -llzma... yes
checking for xmlParseDoc() in libxml/parser.h... yes
checking for xsltParseStylesheetDoc() in libxslt/xslt.h... yes
checking for exsltFuncRegister() in libexslt/exslt.h... yes
checking for xmlHasFeature()... yes
checking for xmlFirstElementChild()... yes
checking for xmlRelaxNGSetParserStructuredErrors()... yes
checking for xmlRelaxNGSetParserStructuredErrors()... yes
checking for xmlRelaxNGSetValidStructuredErrors()... yes
checking for xmlSchemaSetValidStructuredErrors()... yes
checking for xmlSchemaSetParserStructuredErrors()... yes
creating Makefile

current directory: /home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ext/nokogiri
make "DESTDIR=" clean
rm -f 
rm -f nokogiri.so  *.o  *.bak mkmf.log .*.time

current directory: /home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ext/nokogiri
make "DESTDIR="
x86_64-mageia-linux-gnu-gcc -I. -I/usr/include -I/usr/include/ruby/backward -I/usr/include -I. -DHAVE_XMLPARSEDOC -DHAVE_XSLTPARSESTYLESHEETDOC -DHAVE_EXSLTFUNCREGISTER -DHAVE_XMLHASFEATURE -DHAVE_XMLFIRSTELEMENTCHILD -DHAVE_XMLRELAXNGSETPARSERSTRUCTUREDERRORS -DHAVE_XMLRELAXNGSETPARSERSTRUCTUREDERRORS -DHAVE_XMLRELAXNGSETVALIDSTRUCTUREDERRORS -DHAVE_XMLSCHEMASETVALIDSTRUCTUREDERRORS -DHAVE_XMLSCHEMASETPARSERSTRUCTUREDERRORS -I/home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10/include/libxml2 -I/home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxslt/1.1.34/include -I/home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10/include/libxml2    "-DNOKOGIRI_LIBXML2_PATH=\"/home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10\"" "-DNOKOGIRI_LIBXML2_PATCHES=\"0001-Revert-Do-not-URI-escape-in-server-side-includes.patch 0002-Remove-script-macro-support.patch 0003-Update-entities-to-remove-handling-of-ssi.patch 0004-libxml2.la-is-in-top_builddir.patch 0005-Fix-infinite-loop-in-xmlStringLenDecodeEntities.patch\"" "-DNOKOGIRI_LIBXSLT_PATH=\"/home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxslt/1.1.34\"" "-DNOKOGIRI_LIBXSLT_PATCHES=\"\"" -fPIC -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -fPIC  -g -DXP_UNIX -Wall -Wcast-qual -Wwrite-strings -Wmissing-noreturn -Winline -DNOKOGIRI_USE_PACKAGED_LIBRARIES  -o html_document.o -c html_document.c
x86_64-mageia-linux-gnu-gcc -I. -I/usr/include -I/usr/include/ruby/backward -I/usr/include -I. -DHAVE_XMLPARSEDOC -DHAVE_XSLTPARSESTYLESHEETDOC -DHAVE_EXSLTFUNCREGISTER -DHAVE_XMLHASFEATURE -DHAVE_XMLFIRSTELEMENTCHILD -DHAVE_XMLRELAXNGSETPARSERSTRUCTUREDERRORS -DHAVE_XMLRELAXNGSETPARSERSTRUCTUREDERRORS -DHAVE_XMLRELAXNGSETVALIDSTRUCTUREDERRORS -DHAVE_XMLSCHEMASETVALIDSTRUCTUREDERRORS -DHAVE_XMLSCHEMASETPARSERSTRUCTUREDERRORS -I/home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10/include/libxml2 -I/home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxslt/1.1.34/include -I/home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10/include/libxml2    "-DNOKOGIRI_LIBXML2_PATH=\"/home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10\"" "-DNOKOGIRI_LIBXML2_PATCHES=\"0001-Revert-Do-not-URI-escape-in-server-side-includes.patch 0002-Remove-script-macro-support.patch 0003-Update-entities-to-remove-handling-of-ssi.patch 0004-libxml2.la-is-in-top_builddir.patch 0005-Fix-infinite-loop-in-xmlStringLenDecodeEntities.patch\"" "-DNOKOGIRI_LIBXSLT_PATH=\"/home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxslt/1.1.34\"" "-DNOKOGIRI_LIBXSLT_PATCHES=\"\"" -fPIC -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -fPIC  -g -DXP_UNIX -Wall -Wcast-qual -Wwrite-strings -Wmissing-noreturn -Winline -DNOKOGIRI_USE_PACKAGED_LIBRARIES  -o html_element_description.o -c html_element_description.c
x86_64-mageia-linux-gnu-gcc -I. -I/usr/include -I/usr/include/ruby/backward -I/usr/include -I. -DHAVE_XMLPARSEDOC -DHAVE_XSLTPARSESTYLESHEETDOC -DHAVE_EXSLTFUNCREGISTER -DHAVE_XMLHASFEATURE -DHAVE_XMLFIRSTELEMENTCHILD -DHAVE_XMLRELAXNGSETPARSERSTRUCTUREDERRORS -DHAVE_XMLRELAXNGSETPARSERSTRUCTUREDERRORS -DHAVE_XMLRELAXNGSETVALIDSTRUCTUREDERRORS -DHAVE_XMLSCHEMASETVALIDSTRUCTUREDERRORS -DHAVE_XMLSCHEMASETPARSERSTRUCTUREDERRORS -I/home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10/include/libxml2 -I/home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxslt/1.1.34/include -I/home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10/include/libxml2    "-DNOKOGIRI_LIBXML2_PATH=\"/home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10\"" "-DNOKOGIRI_LIBXML2_PATCHES=\"0001-Revert-Do-not-URI-escape-in-server-side-includes.patch 0002-Remove-script-macro-support.patch 0003-Update-entities-to-remove-handling-of-ssi.patch 0004-libxml2.la-is-in-top_builddir.patch 0005-Fix-infinite-loop-in-xmlStringLenDecodeEntities.patch\"" "-DNOKOGIRI_LIBXSLT_PATH=\"/home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxslt/1.1.34\"" "-DNOKOGIRI_LIBXSLT_PATCHES=\"\"" -fPIC -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -fPIC  -g -DXP_UNIX -Wall -Wcast-qual -Wwrite-strings -Wmissing-noreturn -Winline -DNOKOGIRI_USE_PACKAGED_LIBRARIES  -o html_entity_lookup.o -c html_entity_lookup.c
x86_64-mageia-linux-gnu-gcc -I. -I/usr/include -I/usr/include/ruby/backward -I/usr/include -I. -DHAVE_XMLPARSEDOC -DHAVE_XSLTPARSESTYLESHEETDOC -DHAVE_EXSLTFUNCREGISTER -DHAVE_XMLHASFEATURE -DHAVE_XMLFIRSTELEMENTCHILD -DHAVE_XMLRELAXNGSETPARSERSTRUCTUREDERRORS -DHAVE_XMLRELAXNGSETPARSERSTRUCTUREDERRORS -DHAVE_XMLRELAXNGSETVALIDSTRUCTUREDERRORS -DHAVE_XMLSCHEMASETVALIDSTRUCTUREDERRORS -DHAVE_XMLSCHEMASETPARSERSTRUCTUREDERRORS -I/home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10/include/libxml2 -I/home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxslt/1.1.34/include -I/home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10/include/libxml2    "-DNOKOGIRI_LIBXML2_PATH=\"/home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10\"" "-DNOKOGIRI_LIBXML2_PATCHES=\"0001-Revert-Do-not-URI-escape-in-server-side-includes.patch 0002-Remove-script-macro-support.patch 0003-Update-entities-to-remove-handling-of-ssi.patch 0004-libxml2.la-is-in-top_builddir.patch 0005-Fix-infinite-loop-in-xmlStringLenDecodeEntities.patch\"" "-DNOKOGIRI_LIBXSLT_PATH=\"/home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxslt/1.1.34\"" "-DNOKOGIRI_LIBXSLT_PATCHES=\"\"" -fPIC -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -fPIC  -g -DXP_UNIX -Wall -Wcast-qual -Wwrite-strings -Wmissing-noreturn -Winline -DNOKOGIRI_USE_PACKAGED_LIBRARIES  -o html_sax_parser_context.o -c html_sax_parser_context.c
x86_64-mageia-linux-gnu-gcc -I. -I/usr/include -I/usr/include/ruby/backward -I/usr/include -I. -DHAVE_XMLPARSEDOC -DHAVE_XSLTPARSESTYLESHEETDOC -DHAVE_EXSLTFUNCREGISTER -DHAVE_XMLHASFEATURE -DHAVE_XMLFIRSTELEMENTCHILD -DHAVE_XMLRELAXNGSETPARSERSTRUCTUREDERRORS -DHAVE_XMLRELAXNGSETPARSERSTRUCTUREDERRORS -DHAVE_XMLRELAXNGSETVALIDSTRUCTUREDERRORS -DHAVE_XMLSCHEMASETVALIDSTRUCTUREDERRORS -DHAVE_XMLSCHEMASETPARSERSTRUCTUREDERRORS -I/home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10/include/libxml2 -I/home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxslt/1.1.34/include -I/home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10/include/libxml2    "-DNOKOGIRI_LIBXML2_PATH=\"/home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10\"" "-DNOKOGIRI_LIBXML2_PATCHES=\"0001-Revert-Do-not-URI-escape-in-server-side-includes.patch 0002-Remove-script-macro-support.patch 0003-Update-entities-to-remove-handling-of-ssi.patch 0004-libxml2.la-is-in-top_builddir.patch 0005-Fix-infinite-loop-in-xmlStringLenDecodeEntities.patch\"" "-DNOKOGIRI_LIBXSLT_PATH=\"/home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxslt/1.1.34\"" "-DNOKOGIRI_LIBXSLT_PATCHES=\"\"" -fPIC -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -fPIC  -g -DXP_UNIX -Wall -Wcast-qual -Wwrite-strings -Wmissing-noreturn -Winline -DNOKOGIRI_USE_PACKAGED_LIBRARIES  -o html_sax_push_parser.o -c html_sax_push_parser.c
x86_64-mageia-linux-gnu-gcc -I. -I/usr/include -I/usr/include/ruby/backward -I/usr/include -I. -DHAVE_XMLPARSEDOC -DHAVE_XSLTPARSESTYLESHEETDOC -DHAVE_EXSLTFUNCREGISTER -DHAVE_XMLHASFEATURE -DHAVE_XMLFIRSTELEMENTCHILD -DHAVE_XMLRELAXNGSETPARSERSTRUCTUREDERRORS -DHAVE_XMLRELAXNGSETPARSERSTRUCTUREDERRORS -DHAVE_XMLRELAXNGSETVALIDSTRUCTUREDERRORS -DHAVE_XMLSCHEMASETVALIDSTRUCTUREDERRORS -DHAVE_XMLSCHEMASETPARSERSTRUCTUREDERRORS -I/home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10/include/libxml2 -I/home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxslt/1.1.34/include -I/home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10/include/libxml2    "-DNOKOGIRI_LIBXML2_PATH=\"/home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10\"" "-DNOKOGIRI_LIBXML2_PATCHES=\"0001-Revert-Do-not-URI-escape-in-server-side-includes.patch 0002-Remove-script-macro-support.patch 0003-Update-entities-to-remove-handling-of-ssi.patch 0004-libxml2.la-is-in-top_builddir.patch 0005-Fix-infinite-loop-in-xmlStringLenDecodeEntities.patch\"" "-DNOKOGIRI_LIBXSLT_PATH=\"/home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxslt/1.1.34\"" "-DNOKOGIRI_LIBXSLT_PATCHES=\"\"" -fPIC -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -fPIC  -g -DXP_UNIX -Wall -Wcast-qual -Wwrite-strings -Wmissing-noreturn -Winline -DNOKOGIRI_USE_PACKAGED_LIBRARIES  -o nokogiri.o -c nokogiri.c
x86_64-mageia-linux-gnu-gcc -I. -I/usr/include -I/usr/include/ruby/backward -I/usr/include -I. -DHAVE_XMLPARSEDOC -DHAVE_XSLTPARSESTYLESHEETDOC -DHAVE_EXSLTFUNCREGISTER -DHAVE_XMLHASFEATURE -DHAVE_XMLFIRSTELEMENTCHILD -DHAVE_XMLRELAXNGSETPARSERSTRUCTUREDERRORS -DHAVE_XMLRELAXNGSETPARSERSTRUCTUREDERRORS -DHAVE_XMLRELAXNGSETVALIDSTRUCTUREDERRORS -DHAVE_XMLSCHEMASETVALIDSTRUCTUREDERRORS -DHAVE_XMLSCHEMASETPARSERSTRUCTUREDERRORS -I/home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10/include/libxml2 -I/home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxslt/1.1.34/include -I/home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10/include/libxml2    "-DNOKOGIRI_LIBXML2_PATH=\"/home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10\"" "-DNOKOGIRI_LIBXML2_PATCHES=\"0001-Revert-Do-not-URI-escape-in-server-side-includes.patch 0002-Remove-script-macro-support.patch 0003-Update-entities-to-remove-handling-of-ssi.patch 0004-libxml2.la-is-in-top_builddir.patch 0005-Fix-infinite-loop-in-xmlStringLenDecodeEntities.patch\"" "-DNOKOGIRI_LIBXSLT_PATH=\"/home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxslt/1.1.34\"" "-DNOKOGIRI_LIBXSLT_PATCHES=\"\"" -fPIC -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -fPIC  -g -DXP_UNIX -Wall -Wcast-qual -Wwrite-strings -Wmissing-noreturn -Winline -DNOKOGIRI_USE_PACKAGED_LIBRARIES  -o xml_attr.o -c xml_attr.c
x86_64-mageia-linux-gnu-gcc -I. -I/usr/include -I/usr/include/ruby/backward -I/usr/include -I. -DHAVE_XMLPARSEDOC -DHAVE_XSLTPARSESTYLESHEETDOC -DHAVE_EXSLTFUNCREGISTER -DHAVE_XMLHASFEATURE -DHAVE_XMLFIRSTELEMENTCHILD -DHAVE_XMLRELAXNGSETPARSERSTRUCTUREDERRORS -DHAVE_XMLRELAXNGSETPARSERSTRUCTUREDERRORS -DHAVE_XMLRELAXNGSETVALIDSTRUCTUREDERRORS -DHAVE_XMLSCHEMASETVALIDSTRUCTUREDERRORS -DHAVE_XMLSCHEMASETPARSERSTRUCTUREDERRORS -I/home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10/include/libxml2 -I/home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxslt/1.1.34/include -I/home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10/include/libxml2    "-DNOKOGIRI_LIBXML2_PATH=\"/home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10\"" "-DNOKOGIRI_LIBXML2_PATCHES=\"0001-Revert-Do-not-URI-escape-in-server-side-includes.patch 0002-Remove-script-macro-support.patch 0003-Update-entities-to-remove-handling-of-ssi.patch 0004-libxml2.la-is-in-top_builddir.patch 0005-Fix-infinite-loop-in-xmlStringLenDecodeEntities.patch\"" "-DNOKOGIRI_LIBXSLT_PATH=\"/home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxslt/1.1.34\"" "-DNOKOGIRI_LIBXSLT_PATCHES=\"\"" -fPIC -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -fPIC  -g -DXP_UNIX -Wall -Wcast-qual -Wwrite-strings -Wmissing-noreturn -Winline -DNOKOGIRI_USE_PACKAGED_LIBRARIES  -o xml_attribute_decl.o -c xml_attribute_decl.c
x86_64-mageia-linux-gnu-gcc -I. -I/usr/include -I/usr/include/ruby/backward -I/usr/include -I. -DHAVE_XMLPARSEDOC -DHAVE_XSLTPARSESTYLESHEETDOC -DHAVE_EXSLTFUNCREGISTER -DHAVE_XMLHASFEATURE -DHAVE_XMLFIRSTELEMENTCHILD -DHAVE_XMLRELAXNGSETPARSERSTRUCTUREDERRORS -DHAVE_XMLRELAXNGSETPARSERSTRUCTUREDERRORS -DHAVE_XMLRELAXNGSETVALIDSTRUCTUREDERRORS -DHAVE_XMLSCHEMASETVALIDSTRUCTUREDERRORS -DHAVE_XMLSCHEMASETPARSERSTRUCTUREDERRORS -I/home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10/include/libxml2 -I/home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxslt/1.1.34/include -I/home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10/include/libxml2    "-DNOKOGIRI_LIBXML2_PATH=\"/home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10\"" "-DNOKOGIRI_LIBXML2_PATCHES=\"0001-Revert-Do-not-URI-escape-in-server-side-includes.patch 0002-Remove-script-macro-support.patch 0003-Update-entities-to-remove-handling-of-ssi.patch 0004-libxml2.la-is-in-top_builddir.patch 0005-Fix-infinite-loop-in-xmlStringLenDecodeEntities.patch\"" "-DNOKOGIRI_LIBXSLT_PATH=\"/home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxslt/1.1.34\"" "-DNOKOGIRI_LIBXSLT_PATCHES=\"\"" -fPIC -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -fPIC  -g -DXP_UNIX -Wall -Wcast-qual -Wwrite-strings -Wmissing-noreturn -Winline -DNOKOGIRI_USE_PACKAGED_LIBRARIES  -o xml_cdata.o -c xml_cdata.c
x86_64-mageia-linux-gnu-gcc -I. -I/usr/include -I/usr/include/ruby/backward -I/usr/include -I. -DHAVE_XMLPARSEDOC -DHAVE_XSLTPARSESTYLESHEETDOC -DHAVE_EXSLTFUNCREGISTER -DHAVE_XMLHASFEATURE -DHAVE_XMLFIRSTELEMENTCHILD -DHAVE_XMLRELAXNGSETPARSERSTRUCTUREDERRORS -DHAVE_XMLRELAXNGSETPARSERSTRUCTUREDERRORS -DHAVE_XMLRELAXNGSETVALIDSTRUCTUREDERRORS -DHAVE_XMLSCHEMASETVALIDSTRUCTUREDERRORS -DHAVE_XMLSCHEMASETPARSERSTRUCTUREDERRORS -I/home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10/include/libxml2 -I/home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxslt/1.1.34/include -I/home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10/include/libxml2    "-DNOKOGIRI_LIBXML2_PATH=\"/home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10\"" "-DNOKOGIRI_LIBXML2_PATCHES=\"0001-Revert-Do-not-URI-escape-in-server-side-includes.patch 0002-Remove-script-macro-support.patch 0003-Update-entities-to-remove-handling-of-ssi.patch 0004-libxml2.la-is-in-top_builddir.patch 0005-Fix-infinite-loop-in-xmlStringLenDecodeEntities.patch\"" "-DNOKOGIRI_LIBXSLT_PATH=\"/home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxslt/1.1.34\"" "-DNOKOGIRI_LIBXSLT_PATCHES=\"\"" -fPIC -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -fPIC  -g -DXP_UNIX -Wall -Wcast-qual -Wwrite-strings -Wmissing-noreturn -Winline -DNOKOGIRI_USE_PACKAGED_LIBRARIES  -o xml_comment.o -c xml_comment.c
x86_64-mageia-linux-gnu-gcc -I. -I/usr/include -I/usr/include/ruby/backward -I/usr/include -I. -DHAVE_XMLPARSEDOC -DHAVE_XSLTPARSESTYLESHEETDOC -DHAVE_EXSLTFUNCREGISTER -DHAVE_XMLHASFEATURE -DHAVE_XMLFIRSTELEMENTCHILD -DHAVE_XMLRELAXNGSETPARSERSTRUCTUREDERRORS -DHAVE_XMLRELAXNGSETPARSERSTRUCTUREDERRORS -DHAVE_XMLRELAXNGSETVALIDSTRUCTUREDERRORS -DHAVE_XMLSCHEMASETVALIDSTRUCTUREDERRORS -DHAVE_XMLSCHEMASETPARSERSTRUCTUREDERRORS -I/home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10/include/libxml2 -I/home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxslt/1.1.34/include -I/home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10/include/libxml2    "-DNOKOGIRI_LIBXML2_PATH=\"/home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10\"" "-DNOKOGIRI_LIBXML2_PATCHES=\"0001-Revert-Do-not-URI-escape-in-server-side-includes.patch 0002-Remove-script-macro-support.patch 0003-Update-entities-to-remove-handling-of-ssi.patch 0004-libxml2.la-is-in-top_builddir.patch 0005-Fix-infinite-loop-in-xmlStringLenDecodeEntities.patch\"" "-DNOKOGIRI_LIBXSLT_PATH=\"/home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxslt/1.1.34\"" "-DNOKOGIRI_LIBXSLT_PATCHES=\"\"" -fPIC -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -fPIC  -g -DXP_UNIX -Wall -Wcast-qual -Wwrite-strings -Wmissing-noreturn -Winline -DNOKOGIRI_USE_PACKAGED_LIBRARIES  -o xml_document.o -c xml_document.c
xml_document.c: In function ‘dealloc’:
xml_document.c:49:25: warning: passing argument 2 of ‘rb_st_foreach’ from incompatible pointer type [-Wincompatible-pointer-types]
   49 |   st_foreach(node_hash, dealloc_node_i, (st_data_t)doc);
      |                         ^~~~~~~~~~~~~~
      |                         |
      |                         int (*)(xmlNode *, xmlNode *, xmlDoc *) {aka int (*)(struct _xmlNode *, struct _xmlNode *, struct _xmlDoc *)}
In file included from /usr/include/ruby/intern.h:39,
                 from /usr/include/ruby/ruby.h:2148,
                 from /usr/include/ruby.h:33,
                 from ./nokogiri.h:33,
                 from ./xml_document.h:4,
                 from xml_document.c:1:
/usr/include/ruby/st.h:141:31: note: expected ‘int (*)(st_data_t,  st_data_t,  st_data_t)’ {aka ‘int (*)(long unsigned int,  long unsigned int,  long unsigned int)’} but argument is of type ‘int (*)(xmlNode *, xmlNode *, xmlDoc *)’ {aka ‘int (*)(struct _xmlNode *, struct _xmlNode *, struct _xmlDoc *)’}
  141 | int rb_st_foreach(st_table *, st_foreach_callback_func *, st_data_t);
      |                               ^~~~~~~~~~~~~~~~~~~~~~~~~~
xml_document.c: At top level:
xml_document.c:495:14: error: conflicting types for ‘canonicalize’
  495 | static VALUE canonicalize(int argc, VALUE* argv, VALUE self)
      |              ^~~~~~~~~~~~
In file included from /usr/include/features.h:465,
                 from /usr/include/bits/libc-header-start.h:33,
                 from /usr/include/stdlib.h:25,
                 from ./nokogiri.h:4,
                 from ./xml_document.h:4,
                 from xml_document.c:1:
/usr/include/bits/mathcalls.h:371:1: note: previous declaration of ‘canonicalize’ was here
  371 | __MATHDECL_1 (int, canonicalize,, (_Mdouble_ *__cx, const _Mdouble_ *__x));
      | ^~~~~~~~~~~~
make: *** [Makefile:246: xml_document.o] Error 1

make failed, exit code 2

Gem files will remain installed in /home/pterjan/.gem/ruby/gems/nokogiri-1.10.10 for inspection.
Results logged to /home/pterjan/.gem/ruby/extensions/x86_64-linux/2.7.0/nokogiri-1.10.10/gem_make.out

What are the complete contents of the mkmf.log file generated during the failed installation?

"x86_64-mageia-linux-gnu-gcc -o conftest -I/usr/include -I/usr/include/ruby/backward -I/usr/include -I.    -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -fPIC  conftest.c  -L. -L/usr/lib64 -L.  -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-O1 -Wl,--build-id -Wl,--enable-new-dtags -fstack-protector-strong -rdynamic -Wl,-export-dynamic     -lruby  -lm   -lc "
checked program was:
/* begin */
1: #include "ruby.h"
2: 
3: int main(int argc, char **argv)
4: {
5:   return !!argv[argc];
6: }
/* end */

"x86_64-mageia-linux-gnu-gcc -I/usr/include -I/usr/include/ruby/backward -I/usr/include -I.    -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -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

"x86_64-mageia-linux-gnu-gcc -o conftest -I/usr/include -I/usr/include/ruby/backward -I/usr/include -I.    -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -fPIC  -g -DXP_UNIX -Wall -Wcast-qual -Wwrite-strings -Wmissing-noreturn -Winline conftest.c  -L. -L/usr/lib64 -L.  -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-O1 -Wl,--build-id -Wl,--enable-new-dtags -fstack-protector-strong -rdynamic -Wl,-export-dynamic     -lruby -lz  -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:     int (* volatile tp)(void)=(int (*)(void))&t;
11:     printf("%d", (*tp)());
12:   }
13: 
14:   return !!argv[argc];
15: }
16: int t(void) { void ((*volatile p)()); p = (void ((*)()))gzdopen; return !p; }
/* end */

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

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

"x86_64-mageia-linux-gnu-gcc -o conftest -I/usr/include -I/usr/include/ruby/backward -I/usr/include -I.    -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -fPIC  -g -DXP_UNIX -Wall -Wcast-qual -Wwrite-strings -Wmissing-noreturn -Winline conftest.c  -L. -L/usr/lib64 -L.  -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-O1 -Wl,--build-id -Wl,--enable-new-dtags -fstack-protector-strong -rdynamic -Wl,-export-dynamic     -lruby  -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... -------------------- yes

"x86_64-mageia-linux-gnu-gcc -o conftest -I/usr/include -I/usr/include/ruby/backward -I/usr/include -I.    -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -fPIC  -g -DXP_UNIX -Wall -Wcast-qual -Wwrite-strings -Wmissing-noreturn -Winline -DNOKOGIRI_USE_PACKAGED_LIBRARIES conftest.c  -L. -L/usr/lib64 -L.  -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-O1 -Wl,--build-id -Wl,--enable-new-dtags -fstack-protector-strong -rdynamic -Wl,-export-dynamic     -lruby -llzma  -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:     int (* volatile tp)(void)=(int (*)(void))&t;
 9:     printf("%d", (*tp)());
10:   }
11: 
12:   return !!argv[argc];
13: }
14: 
15: int t(void) { ; return 0; }
/* end */

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

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

"x86_64-mageia-linux-gnu-gcc -o conftest -I/usr/include -I/usr/include/ruby/backward -I/usr/include -I. -I/home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10/include/libxml2 -I/home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxslt/1.1.34/include -I/home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10/include/libxml2    "-DNOKOGIRI_LIBXML2_PATH=\"/home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10\"" "-DNOKOGIRI_LIBXML2_PATCHES=\"0001-Revert-Do-not-URI-escape-in-server-side-includes.patch 0002-Remove-script-macro-support.patch 0003-Update-entities-to-remove-handling-of-ssi.patch 0004-libxml2.la-is-in-top_builddir.patch 0005-Fix-infinite-loop-in-xmlStringLenDecodeEntities.patch\"" "-DNOKOGIRI_LIBXSLT_PATH=\"/home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxslt/1.1.34\"" "-DNOKOGIRI_LIBXSLT_PATCHES=\"\"" -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -fPIC  -g -DXP_UNIX -Wall -Wcast-qual -Wwrite-strings -Wmissing-noreturn -Winline -DNOKOGIRI_USE_PACKAGED_LIBRARIES conftest.c  -L. -L/usr/lib64 -L/home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10/lib -L/home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxslt/1.1.34/lib -L.  -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-O1 -Wl,--build-id -Wl,--enable-new-dtags -fstack-protector-strong -rdynamic -Wl,-export-dynamic    /home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxslt/1.1.34/lib/libexslt.a -lm -ldl -llzma -lz /home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10/lib/libxml2.a /home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxslt/1.1.34/lib/libxslt.a -ldl -lm -llzma -lz /home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10/lib/libxml2.a -llzma -lruby /home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxslt/1.1.34/lib/libexslt.a -lm -ldl -llzma -lz /home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10/lib/libxml2.a /home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxslt/1.1.34/lib/libxslt.a -ldl -lm -llzma -lz /home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10/lib/libxml2.a -llzma -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:     int (* volatile tp)(void)=(int (*)(void))&t;
11:     printf("%d", (*tp)());
12:   }
13: 
14:   return !!argv[argc];
15: }
16: int t(void) { void ((*volatile p)()); p = (void ((*)()))xmlParseDoc; return !p; }
/* end */

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

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

"x86_64-mageia-linux-gnu-gcc -o conftest -I/usr/include -I/usr/include/ruby/backward -I/usr/include -I. -I/home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10/include/libxml2 -I/home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxslt/1.1.34/include -I/home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10/include/libxml2    "-DNOKOGIRI_LIBXML2_PATH=\"/home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10\"" "-DNOKOGIRI_LIBXML2_PATCHES=\"0001-Revert-Do-not-URI-escape-in-server-side-includes.patch 0002-Remove-script-macro-support.patch 0003-Update-entities-to-remove-handling-of-ssi.patch 0004-libxml2.la-is-in-top_builddir.patch 0005-Fix-infinite-loop-in-xmlStringLenDecodeEntities.patch\"" "-DNOKOGIRI_LIBXSLT_PATH=\"/home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxslt/1.1.34\"" "-DNOKOGIRI_LIBXSLT_PATCHES=\"\"" -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -fPIC  -g -DXP_UNIX -Wall -Wcast-qual -Wwrite-strings -Wmissing-noreturn -Winline -DNOKOGIRI_USE_PACKAGED_LIBRARIES conftest.c  -L. -L/usr/lib64 -L/home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10/lib -L/home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxslt/1.1.34/lib -L.  -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-O1 -Wl,--build-id -Wl,--enable-new-dtags -fstack-protector-strong -rdynamic -Wl,-export-dynamic    /home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxslt/1.1.34/lib/libexslt.a -lm -ldl -llzma -lz /home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10/lib/libxml2.a /home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxslt/1.1.34/lib/libxslt.a -ldl -lm -llzma -lz /home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10/lib/libxml2.a -llzma -lruby /home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxslt/1.1.34/lib/libexslt.a -lm -ldl -llzma -lz /home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10/lib/libxml2.a /home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxslt/1.1.34/lib/libxslt.a -ldl -lm -llzma -lz /home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10/lib/libxml2.a -llzma -lm   -lc "
conftest.c: In function ‘t’:
conftest.c:16:57: error: ‘xsltParseStylesheetDoc’ undeclared (first use in this function)
   16 | int t(void) { void ((*volatile p)()); p = (void ((*)()))xsltParseStylesheetDoc; return !p; }
      |                                                         ^~~~~~~~~~~~~~~~~~~~~~
conftest.c:16: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:     int (* volatile tp)(void)=(int (*)(void))&t;
11:     printf("%d", (*tp)());
12:   }
13: 
14:   return !!argv[argc];
15: }
16: int t(void) { void ((*volatile p)()); p = (void ((*)()))xsltParseStylesheetDoc; return !p; }
/* end */

"x86_64-mageia-linux-gnu-gcc -o conftest -I/usr/include -I/usr/include/ruby/backward -I/usr/include -I. -I/home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10/include/libxml2 -I/home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxslt/1.1.34/include -I/home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10/include/libxml2    "-DNOKOGIRI_LIBXML2_PATH=\"/home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10\"" "-DNOKOGIRI_LIBXML2_PATCHES=\"0001-Revert-Do-not-URI-escape-in-server-side-includes.patch 0002-Remove-script-macro-support.patch 0003-Update-entities-to-remove-handling-of-ssi.patch 0004-libxml2.la-is-in-top_builddir.patch 0005-Fix-infinite-loop-in-xmlStringLenDecodeEntities.patch\"" "-DNOKOGIRI_LIBXSLT_PATH=\"/home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxslt/1.1.34\"" "-DNOKOGIRI_LIBXSLT_PATCHES=\"\"" -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -fPIC  -g -DXP_UNIX -Wall -Wcast-qual -Wwrite-strings -Wmissing-noreturn -Winline -DNOKOGIRI_USE_PACKAGED_LIBRARIES conftest.c  -L. -L/usr/lib64 -L/home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10/lib -L/home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxslt/1.1.34/lib -L.  -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-O1 -Wl,--build-id -Wl,--enable-new-dtags -fstack-protector-strong -rdynamic -Wl,-export-dynamic    /home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxslt/1.1.34/lib/libexslt.a -lm -ldl -llzma -lz /home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10/lib/libxml2.a /home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxslt/1.1.34/lib/libxslt.a -ldl -lm -llzma -lz /home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10/lib/libxml2.a -llzma -lruby /home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxslt/1.1.34/lib/libexslt.a -lm -ldl -llzma -lz /home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10/lib/libxml2.a /home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxslt/1.1.34/lib/libxslt.a -ldl -lm -llzma -lz /home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10/lib/libxml2.a -llzma -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:     int (* volatile tp)(void)=(int (*)(void))&t;
11:     printf("%d", (*tp)());
12:   }
13: 
14:   return !!argv[argc];
15: }
16: extern void xsltParseStylesheetDoc();
17: int t(void) { xsltParseStylesheetDoc(); return 0; }
/* end */

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

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

"x86_64-mageia-linux-gnu-gcc -o conftest -I/usr/include -I/usr/include/ruby/backward -I/usr/include -I. -I/home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10/include/libxml2 -I/home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxslt/1.1.34/include -I/home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10/include/libxml2    "-DNOKOGIRI_LIBXML2_PATH=\"/home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10\"" "-DNOKOGIRI_LIBXML2_PATCHES=\"0001-Revert-Do-not-URI-escape-in-server-side-includes.patch 0002-Remove-script-macro-support.patch 0003-Update-entities-to-remove-handling-of-ssi.patch 0004-libxml2.la-is-in-top_builddir.patch 0005-Fix-infinite-loop-in-xmlStringLenDecodeEntities.patch\"" "-DNOKOGIRI_LIBXSLT_PATH=\"/home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxslt/1.1.34\"" "-DNOKOGIRI_LIBXSLT_PATCHES=\"\"" -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -fPIC  -g -DXP_UNIX -Wall -Wcast-qual -Wwrite-strings -Wmissing-noreturn -Winline -DNOKOGIRI_USE_PACKAGED_LIBRARIES conftest.c  -L. -L/usr/lib64 -L/home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10/lib -L/home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxslt/1.1.34/lib -L.  -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-O1 -Wl,--build-id -Wl,--enable-new-dtags -fstack-protector-strong -rdynamic -Wl,-export-dynamic    /home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxslt/1.1.34/lib/libexslt.a -lm -ldl -llzma -lz /home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10/lib/libxml2.a /home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxslt/1.1.34/lib/libxslt.a -ldl -lm -llzma -lz /home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10/lib/libxml2.a -llzma -lruby /home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxslt/1.1.34/lib/libexslt.a -lm -ldl -llzma -lz /home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10/lib/libxml2.a /home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxslt/1.1.34/lib/libxslt.a -ldl -lm -llzma -lz /home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10/lib/libxml2.a -llzma -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:     int (* volatile tp)(void)=(int (*)(void))&t;
11:     printf("%d", (*tp)());
12:   }
13: 
14:   return !!argv[argc];
15: }
16: int t(void) { void ((*volatile p)()); p = (void ((*)()))exsltFuncRegister; return !p; }
/* end */

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

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

"x86_64-mageia-linux-gnu-gcc -o conftest -I/usr/include -I/usr/include/ruby/backward -I/usr/include -I. -I/home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10/include/libxml2 -I/home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxslt/1.1.34/include -I/home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10/include/libxml2    "-DNOKOGIRI_LIBXML2_PATH=\"/home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10\"" "-DNOKOGIRI_LIBXML2_PATCHES=\"0001-Revert-Do-not-URI-escape-in-server-side-includes.patch 0002-Remove-script-macro-support.patch 0003-Update-entities-to-remove-handling-of-ssi.patch 0004-libxml2.la-is-in-top_builddir.patch 0005-Fix-infinite-loop-in-xmlStringLenDecodeEntities.patch\"" "-DNOKOGIRI_LIBXSLT_PATH=\"/home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxslt/1.1.34\"" "-DNOKOGIRI_LIBXSLT_PATCHES=\"\"" -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -fPIC  -g -DXP_UNIX -Wall -Wcast-qual -Wwrite-strings -Wmissing-noreturn -Winline -DNOKOGIRI_USE_PACKAGED_LIBRARIES conftest.c  -L. -L/usr/lib64 -L/home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10/lib -L/home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxslt/1.1.34/lib -L.  -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-O1 -Wl,--build-id -Wl,--enable-new-dtags -fstack-protector-strong -rdynamic -Wl,-export-dynamic    /home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxslt/1.1.34/lib/libexslt.a -lm -ldl -llzma -lz /home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10/lib/libxml2.a /home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxslt/1.1.34/lib/libxslt.a -ldl -lm -llzma -lz /home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10/lib/libxml2.a -llzma -lruby /home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxslt/1.1.34/lib/libexslt.a -lm -ldl -llzma -lz /home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10/lib/libxml2.a /home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxslt/1.1.34/lib/libxslt.a -ldl -lm -llzma -lz /home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10/lib/libxml2.a -llzma -lm   -lc "
conftest.c: In function ‘t’:
conftest.c:14:57: error: ‘xmlHasFeature’ undeclared (first use in this function)
   14 | int t(void) { void ((*volatile p)()); p = (void ((*)()))xmlHasFeature; return !p; }
      |                                                         ^~~~~~~~~~~~~
conftest.c:14: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:     int (* volatile tp)(void)=(int (*)(void))&t;
 9:     printf("%d", (*tp)());
10:   }
11: 
12:   return !!argv[argc];
13: }
14: int t(void) { void ((*volatile p)()); p = (void ((*)()))xmlHasFeature; return !p; }
/* end */

"x86_64-mageia-linux-gnu-gcc -o conftest -I/usr/include -I/usr/include/ruby/backward -I/usr/include -I. -I/home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10/include/libxml2 -I/home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxslt/1.1.34/include -I/home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10/include/libxml2    "-DNOKOGIRI_LIBXML2_PATH=\"/home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10\"" "-DNOKOGIRI_LIBXML2_PATCHES=\"0001-Revert-Do-not-URI-escape-in-server-side-includes.patch 0002-Remove-script-macro-support.patch 0003-Update-entities-to-remove-handling-of-ssi.patch 0004-libxml2.la-is-in-top_builddir.patch 0005-Fix-infinite-loop-in-xmlStringLenDecodeEntities.patch\"" "-DNOKOGIRI_LIBXSLT_PATH=\"/home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxslt/1.1.34\"" "-DNOKOGIRI_LIBXSLT_PATCHES=\"\"" -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -fPIC  -g -DXP_UNIX -Wall -Wcast-qual -Wwrite-strings -Wmissing-noreturn -Winline -DNOKOGIRI_USE_PACKAGED_LIBRARIES conftest.c  -L. -L/usr/lib64 -L/home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10/lib -L/home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxslt/1.1.34/lib -L.  -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-O1 -Wl,--build-id -Wl,--enable-new-dtags -fstack-protector-strong -rdynamic -Wl,-export-dynamic    /home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxslt/1.1.34/lib/libexslt.a -lm -ldl -llzma -lz /home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10/lib/libxml2.a /home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxslt/1.1.34/lib/libxslt.a -ldl -lm -llzma -lz /home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10/lib/libxml2.a -llzma -lruby /home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxslt/1.1.34/lib/libexslt.a -lm -ldl -llzma -lz /home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10/lib/libxml2.a /home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxslt/1.1.34/lib/libxslt.a -ldl -lm -llzma -lz /home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10/lib/libxml2.a -llzma -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:     int (* volatile tp)(void)=(int (*)(void))&t;
 9:     printf("%d", (*tp)());
10:   }
11: 
12:   return !!argv[argc];
13: }
14: extern void xmlHasFeature();
15: int t(void) { xmlHasFeature(); return 0; }
/* end */

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

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

"x86_64-mageia-linux-gnu-gcc -o conftest -I/usr/include -I/usr/include/ruby/backward -I/usr/include -I. -I/home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10/include/libxml2 -I/home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxslt/1.1.34/include -I/home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10/include/libxml2    "-DNOKOGIRI_LIBXML2_PATH=\"/home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10\"" "-DNOKOGIRI_LIBXML2_PATCHES=\"0001-Revert-Do-not-URI-escape-in-server-side-includes.patch 0002-Remove-script-macro-support.patch 0003-Update-entities-to-remove-handling-of-ssi.patch 0004-libxml2.la-is-in-top_builddir.patch 0005-Fix-infinite-loop-in-xmlStringLenDecodeEntities.patch\"" "-DNOKOGIRI_LIBXSLT_PATH=\"/home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxslt/1.1.34\"" "-DNOKOGIRI_LIBXSLT_PATCHES=\"\"" -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -fPIC  -g -DXP_UNIX -Wall -Wcast-qual -Wwrite-strings -Wmissing-noreturn -Winline -DNOKOGIRI_USE_PACKAGED_LIBRARIES conftest.c  -L. -L/usr/lib64 -L/home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10/lib -L/home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxslt/1.1.34/lib -L.  -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-O1 -Wl,--build-id -Wl,--enable-new-dtags -fstack-protector-strong -rdynamic -Wl,-export-dynamic    /home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxslt/1.1.34/lib/libexslt.a -lm -ldl -llzma -lz /home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10/lib/libxml2.a /home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxslt/1.1.34/lib/libxslt.a -ldl -lm -llzma -lz /home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10/lib/libxml2.a -llzma -lruby /home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxslt/1.1.34/lib/libexslt.a -lm -ldl -llzma -lz /home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10/lib/libxml2.a /home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxslt/1.1.34/lib/libxslt.a -ldl -lm -llzma -lz /home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10/lib/libxml2.a -llzma -lm   -lc "
conftest.c: In function ‘t’:
conftest.c:14:57: error: ‘xmlFirstElementChild’ undeclared (first use in this function)
   14 | int t(void) { void ((*volatile p)()); p = (void ((*)()))xmlFirstElementChild; return !p; }
      |                                                         ^~~~~~~~~~~~~~~~~~~~
conftest.c:14: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:     int (* volatile tp)(void)=(int (*)(void))&t;
 9:     printf("%d", (*tp)());
10:   }
11: 
12:   return !!argv[argc];
13: }
14: int t(void) { void ((*volatile p)()); p = (void ((*)()))xmlFirstElementChild; return !p; }
/* end */

"x86_64-mageia-linux-gnu-gcc -o conftest -I/usr/include -I/usr/include/ruby/backward -I/usr/include -I. -I/home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10/include/libxml2 -I/home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxslt/1.1.34/include -I/home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10/include/libxml2    "-DNOKOGIRI_LIBXML2_PATH=\"/home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10\"" "-DNOKOGIRI_LIBXML2_PATCHES=\"0001-Revert-Do-not-URI-escape-in-server-side-includes.patch 0002-Remove-script-macro-support.patch 0003-Update-entities-to-remove-handling-of-ssi.patch 0004-libxml2.la-is-in-top_builddir.patch 0005-Fix-infinite-loop-in-xmlStringLenDecodeEntities.patch\"" "-DNOKOGIRI_LIBXSLT_PATH=\"/home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxslt/1.1.34\"" "-DNOKOGIRI_LIBXSLT_PATCHES=\"\"" -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -fPIC  -g -DXP_UNIX -Wall -Wcast-qual -Wwrite-strings -Wmissing-noreturn -Winline -DNOKOGIRI_USE_PACKAGED_LIBRARIES conftest.c  -L. -L/usr/lib64 -L/home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10/lib -L/home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxslt/1.1.34/lib -L.  -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-O1 -Wl,--build-id -Wl,--enable-new-dtags -fstack-protector-strong -rdynamic -Wl,-export-dynamic    /home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxslt/1.1.34/lib/libexslt.a -lm -ldl -llzma -lz /home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10/lib/libxml2.a /home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxslt/1.1.34/lib/libxslt.a -ldl -lm -llzma -lz /home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10/lib/libxml2.a -llzma -lruby /home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxslt/1.1.34/lib/libexslt.a -lm -ldl -llzma -lz /home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10/lib/libxml2.a /home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxslt/1.1.34/lib/libxslt.a -ldl -lm -llzma -lz /home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10/lib/libxml2.a -llzma -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:     int (* volatile tp)(void)=(int (*)(void))&t;
 9:     printf("%d", (*tp)());
10:   }
11: 
12:   return !!argv[argc];
13: }
14: extern void xmlFirstElementChild();
15: int t(void) { xmlFirstElementChild(); return 0; }
/* end */

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

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

"x86_64-mageia-linux-gnu-gcc -o conftest -I/usr/include -I/usr/include/ruby/backward -I/usr/include -I. -I/home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10/include/libxml2 -I/home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxslt/1.1.34/include -I/home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10/include/libxml2    "-DNOKOGIRI_LIBXML2_PATH=\"/home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10\"" "-DNOKOGIRI_LIBXML2_PATCHES=\"0001-Revert-Do-not-URI-escape-in-server-side-includes.patch 0002-Remove-script-macro-support.patch 0003-Update-entities-to-remove-handling-of-ssi.patch 0004-libxml2.la-is-in-top_builddir.patch 0005-Fix-infinite-loop-in-xmlStringLenDecodeEntities.patch\"" "-DNOKOGIRI_LIBXSLT_PATH=\"/home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxslt/1.1.34\"" "-DNOKOGIRI_LIBXSLT_PATCHES=\"\"" -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -fPIC  -g -DXP_UNIX -Wall -Wcast-qual -Wwrite-strings -Wmissing-noreturn -Winline -DNOKOGIRI_USE_PACKAGED_LIBRARIES conftest.c  -L. -L/usr/lib64 -L/home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10/lib -L/home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxslt/1.1.34/lib -L.  -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-O1 -Wl,--build-id -Wl,--enable-new-dtags -fstack-protector-strong -rdynamic -Wl,-export-dynamic    /home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxslt/1.1.34/lib/libexslt.a -lm -ldl -llzma -lz /home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10/lib/libxml2.a /home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxslt/1.1.34/lib/libxslt.a -ldl -lm -llzma -lz /home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10/lib/libxml2.a -llzma -lruby /home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxslt/1.1.34/lib/libexslt.a -lm -ldl -llzma -lz /home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10/lib/libxml2.a /home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxslt/1.1.34/lib/libxslt.a -ldl -lm -llzma -lz /home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10/lib/libxml2.a -llzma -lm   -lc "
conftest.c: In function ‘t’:
conftest.c:14:57: error: ‘xmlRelaxNGSetParserStructuredErrors’ undeclared (first use in this function)
   14 | int t(void) { void ((*volatile p)()); p = (void ((*)()))xmlRelaxNGSetParserStructuredErrors; return !p; }
      |                                                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
conftest.c:14: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:     int (* volatile tp)(void)=(int (*)(void))&t;
 9:     printf("%d", (*tp)());
10:   }
11: 
12:   return !!argv[argc];
13: }
14: int t(void) { void ((*volatile p)()); p = (void ((*)()))xmlRelaxNGSetParserStructuredErrors; return !p; }
/* end */

"x86_64-mageia-linux-gnu-gcc -o conftest -I/usr/include -I/usr/include/ruby/backward -I/usr/include -I. -I/home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10/include/libxml2 -I/home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxslt/1.1.34/include -I/home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10/include/libxml2    "-DNOKOGIRI_LIBXML2_PATH=\"/home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10\"" "-DNOKOGIRI_LIBXML2_PATCHES=\"0001-Revert-Do-not-URI-escape-in-server-side-includes.patch 0002-Remove-script-macro-support.patch 0003-Update-entities-to-remove-handling-of-ssi.patch 0004-libxml2.la-is-in-top_builddir.patch 0005-Fix-infinite-loop-in-xmlStringLenDecodeEntities.patch\"" "-DNOKOGIRI_LIBXSLT_PATH=\"/home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxslt/1.1.34\"" "-DNOKOGIRI_LIBXSLT_PATCHES=\"\"" -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -fPIC  -g -DXP_UNIX -Wall -Wcast-qual -Wwrite-strings -Wmissing-noreturn -Winline -DNOKOGIRI_USE_PACKAGED_LIBRARIES conftest.c  -L. -L/usr/lib64 -L/home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10/lib -L/home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxslt/1.1.34/lib -L.  -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-O1 -Wl,--build-id -Wl,--enable-new-dtags -fstack-protector-strong -rdynamic -Wl,-export-dynamic    /home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxslt/1.1.34/lib/libexslt.a -lm -ldl -llzma -lz /home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10/lib/libxml2.a /home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxslt/1.1.34/lib/libxslt.a -ldl -lm -llzma -lz /home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10/lib/libxml2.a -llzma -lruby /home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxslt/1.1.34/lib/libexslt.a -lm -ldl -llzma -lz /home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10/lib/libxml2.a /home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxslt/1.1.34/lib/libxslt.a -ldl -lm -llzma -lz /home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10/lib/libxml2.a -llzma -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:     int (* volatile tp)(void)=(int (*)(void))&t;
 9:     printf("%d", (*tp)());
10:   }
11: 
12:   return !!argv[argc];
13: }
14: extern void xmlRelaxNGSetParserStructuredErrors();
15: int t(void) { xmlRelaxNGSetParserStructuredErrors(); return 0; }
/* end */

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

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

"x86_64-mageia-linux-gnu-gcc -o conftest -I/usr/include -I/usr/include/ruby/backward -I/usr/include -I. -I/home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10/include/libxml2 -I/home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxslt/1.1.34/include -I/home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10/include/libxml2    "-DNOKOGIRI_LIBXML2_PATH=\"/home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10\"" "-DNOKOGIRI_LIBXML2_PATCHES=\"0001-Revert-Do-not-URI-escape-in-server-side-includes.patch 0002-Remove-script-macro-support.patch 0003-Update-entities-to-remove-handling-of-ssi.patch 0004-libxml2.la-is-in-top_builddir.patch 0005-Fix-infinite-loop-in-xmlStringLenDecodeEntities.patch\"" "-DNOKOGIRI_LIBXSLT_PATH=\"/home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxslt/1.1.34\"" "-DNOKOGIRI_LIBXSLT_PATCHES=\"\"" -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -fPIC  -g -DXP_UNIX -Wall -Wcast-qual -Wwrite-strings -Wmissing-noreturn -Winline -DNOKOGIRI_USE_PACKAGED_LIBRARIES conftest.c  -L. -L/usr/lib64 -L/home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10/lib -L/home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxslt/1.1.34/lib -L.  -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-O1 -Wl,--build-id -Wl,--enable-new-dtags -fstack-protector-strong -rdynamic -Wl,-export-dynamic    /home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxslt/1.1.34/lib/libexslt.a -lm -ldl -llzma -lz /home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10/lib/libxml2.a /home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxslt/1.1.34/lib/libxslt.a -ldl -lm -llzma -lz /home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10/lib/libxml2.a -llzma -lruby /home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxslt/1.1.34/lib/libexslt.a -lm -ldl -llzma -lz /home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10/lib/libxml2.a /home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxslt/1.1.34/lib/libxslt.a -ldl -lm -llzma -lz /home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10/lib/libxml2.a -llzma -lm   -lc "
conftest.c: In function ‘t’:
conftest.c:14:57: error: ‘xmlRelaxNGSetParserStructuredErrors’ undeclared (first use in this function)
   14 | int t(void) { void ((*volatile p)()); p = (void ((*)()))xmlRelaxNGSetParserStructuredErrors; return !p; }
      |                                                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
conftest.c:14: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:     int (* volatile tp)(void)=(int (*)(void))&t;
 9:     printf("%d", (*tp)());
10:   }
11: 
12:   return !!argv[argc];
13: }
14: int t(void) { void ((*volatile p)()); p = (void ((*)()))xmlRelaxNGSetParserStructuredErrors; return !p; }
/* end */

"x86_64-mageia-linux-gnu-gcc -o conftest -I/usr/include -I/usr/include/ruby/backward -I/usr/include -I. -I/home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10/include/libxml2 -I/home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxslt/1.1.34/include -I/home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10/include/libxml2    "-DNOKOGIRI_LIBXML2_PATH=\"/home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10\"" "-DNOKOGIRI_LIBXML2_PATCHES=\"0001-Revert-Do-not-URI-escape-in-server-side-includes.patch 0002-Remove-script-macro-support.patch 0003-Update-entities-to-remove-handling-of-ssi.patch 0004-libxml2.la-is-in-top_builddir.patch 0005-Fix-infinite-loop-in-xmlStringLenDecodeEntities.patch\"" "-DNOKOGIRI_LIBXSLT_PATH=\"/home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxslt/1.1.34\"" "-DNOKOGIRI_LIBXSLT_PATCHES=\"\"" -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -fPIC  -g -DXP_UNIX -Wall -Wcast-qual -Wwrite-strings -Wmissing-noreturn -Winline -DNOKOGIRI_USE_PACKAGED_LIBRARIES conftest.c  -L. -L/usr/lib64 -L/home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10/lib -L/home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxslt/1.1.34/lib -L.  -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-O1 -Wl,--build-id -Wl,--enable-new-dtags -fstack-protector-strong -rdynamic -Wl,-export-dynamic    /home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxslt/1.1.34/lib/libexslt.a -lm -ldl -llzma -lz /home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10/lib/libxml2.a /home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxslt/1.1.34/lib/libxslt.a -ldl -lm -llzma -lz /home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10/lib/libxml2.a -llzma -lruby /home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxslt/1.1.34/lib/libexslt.a -lm -ldl -llzma -lz /home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10/lib/libxml2.a /home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxslt/1.1.34/lib/libxslt.a -ldl -lm -llzma -lz /home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10/lib/libxml2.a -llzma -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:     int (* volatile tp)(void)=(int (*)(void))&t;
 9:     printf("%d", (*tp)());
10:   }
11: 
12:   return !!argv[argc];
13: }
14: extern void xmlRelaxNGSetParserStructuredErrors();
15: int t(void) { xmlRelaxNGSetParserStructuredErrors(); return 0; }
/* end */

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

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

"x86_64-mageia-linux-gnu-gcc -o conftest -I/usr/include -I/usr/include/ruby/backward -I/usr/include -I. -I/home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10/include/libxml2 -I/home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxslt/1.1.34/include -I/home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10/include/libxml2    "-DNOKOGIRI_LIBXML2_PATH=\"/home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10\"" "-DNOKOGIRI_LIBXML2_PATCHES=\"0001-Revert-Do-not-URI-escape-in-server-side-includes.patch 0002-Remove-script-macro-support.patch 0003-Update-entities-to-remove-handling-of-ssi.patch 0004-libxml2.la-is-in-top_builddir.patch 0005-Fix-infinite-loop-in-xmlStringLenDecodeEntities.patch\"" "-DNOKOGIRI_LIBXSLT_PATH=\"/home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxslt/1.1.34\"" "-DNOKOGIRI_LIBXSLT_PATCHES=\"\"" -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -fPIC  -g -DXP_UNIX -Wall -Wcast-qual -Wwrite-strings -Wmissing-noreturn -Winline -DNOKOGIRI_USE_PACKAGED_LIBRARIES conftest.c  -L. -L/usr/lib64 -L/home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10/lib -L/home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxslt/1.1.34/lib -L.  -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-O1 -Wl,--build-id -Wl,--enable-new-dtags -fstack-protector-strong -rdynamic -Wl,-export-dynamic    /home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxslt/1.1.34/lib/libexslt.a -lm -ldl -llzma -lz /home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10/lib/libxml2.a /home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxslt/1.1.34/lib/libxslt.a -ldl -lm -llzma -lz /home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10/lib/libxml2.a -llzma -lruby /home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxslt/1.1.34/lib/libexslt.a -lm -ldl -llzma -lz /home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10/lib/libxml2.a /home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxslt/1.1.34/lib/libxslt.a -ldl -lm -llzma -lz /home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10/lib/libxml2.a -llzma -lm   -lc "
conftest.c: In function ‘t’:
conftest.c:14:57: error: ‘xmlRelaxNGSetValidStructuredErrors’ undeclared (first use in this function)
   14 | int t(void) { void ((*volatile p)()); p = (void ((*)()))xmlRelaxNGSetValidStructuredErrors; return !p; }
      |                                                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
conftest.c:14: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:     int (* volatile tp)(void)=(int (*)(void))&t;
 9:     printf("%d", (*tp)());
10:   }
11: 
12:   return !!argv[argc];
13: }
14: int t(void) { void ((*volatile p)()); p = (void ((*)()))xmlRelaxNGSetValidStructuredErrors; return !p; }
/* end */

"x86_64-mageia-linux-gnu-gcc -o conftest -I/usr/include -I/usr/include/ruby/backward -I/usr/include -I. -I/home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10/include/libxml2 -I/home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxslt/1.1.34/include -I/home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10/include/libxml2    "-DNOKOGIRI_LIBXML2_PATH=\"/home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10\"" "-DNOKOGIRI_LIBXML2_PATCHES=\"0001-Revert-Do-not-URI-escape-in-server-side-includes.patch 0002-Remove-script-macro-support.patch 0003-Update-entities-to-remove-handling-of-ssi.patch 0004-libxml2.la-is-in-top_builddir.patch 0005-Fix-infinite-loop-in-xmlStringLenDecodeEntities.patch\"" "-DNOKOGIRI_LIBXSLT_PATH=\"/home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxslt/1.1.34\"" "-DNOKOGIRI_LIBXSLT_PATCHES=\"\"" -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -fPIC  -g -DXP_UNIX -Wall -Wcast-qual -Wwrite-strings -Wmissing-noreturn -Winline -DNOKOGIRI_USE_PACKAGED_LIBRARIES conftest.c  -L. -L/usr/lib64 -L/home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10/lib -L/home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxslt/1.1.34/lib -L.  -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-O1 -Wl,--build-id -Wl,--enable-new-dtags -fstack-protector-strong -rdynamic -Wl,-export-dynamic    /home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxslt/1.1.34/lib/libexslt.a -lm -ldl -llzma -lz /home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10/lib/libxml2.a /home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxslt/1.1.34/lib/libxslt.a -ldl -lm -llzma -lz /home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10/lib/libxml2.a -llzma -lruby /home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxslt/1.1.34/lib/libexslt.a -lm -ldl -llzma -lz /home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10/lib/libxml2.a /home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxslt/1.1.34/lib/libxslt.a -ldl -lm -llzma -lz /home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10/lib/libxml2.a -llzma -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:     int (* volatile tp)(void)=(int (*)(void))&t;
 9:     printf("%d", (*tp)());
10:   }
11: 
12:   return !!argv[argc];
13: }
14: extern void xmlRelaxNGSetValidStructuredErrors();
15: int t(void) { xmlRelaxNGSetValidStructuredErrors(); return 0; }
/* end */

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

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

"x86_64-mageia-linux-gnu-gcc -o conftest -I/usr/include -I/usr/include/ruby/backward -I/usr/include -I. -I/home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10/include/libxml2 -I/home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxslt/1.1.34/include -I/home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10/include/libxml2    "-DNOKOGIRI_LIBXML2_PATH=\"/home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10\"" "-DNOKOGIRI_LIBXML2_PATCHES=\"0001-Revert-Do-not-URI-escape-in-server-side-includes.patch 0002-Remove-script-macro-support.patch 0003-Update-entities-to-remove-handling-of-ssi.patch 0004-libxml2.la-is-in-top_builddir.patch 0005-Fix-infinite-loop-in-xmlStringLenDecodeEntities.patch\"" "-DNOKOGIRI_LIBXSLT_PATH=\"/home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxslt/1.1.34\"" "-DNOKOGIRI_LIBXSLT_PATCHES=\"\"" -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -fPIC  -g -DXP_UNIX -Wall -Wcast-qual -Wwrite-strings -Wmissing-noreturn -Winline -DNOKOGIRI_USE_PACKAGED_LIBRARIES conftest.c  -L. -L/usr/lib64 -L/home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10/lib -L/home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxslt/1.1.34/lib -L.  -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-O1 -Wl,--build-id -Wl,--enable-new-dtags -fstack-protector-strong -rdynamic -Wl,-export-dynamic    /home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxslt/1.1.34/lib/libexslt.a -lm -ldl -llzma -lz /home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10/lib/libxml2.a /home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxslt/1.1.34/lib/libxslt.a -ldl -lm -llzma -lz /home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10/lib/libxml2.a -llzma -lruby /home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxslt/1.1.34/lib/libexslt.a -lm -ldl -llzma -lz /home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10/lib/libxml2.a /home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxslt/1.1.34/lib/libxslt.a -ldl -lm -llzma -lz /home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10/lib/libxml2.a -llzma -lm   -lc "
conftest.c: In function ‘t’:
conftest.c:14:57: error: ‘xmlSchemaSetValidStructuredErrors’ undeclared (first use in this function)
   14 | int t(void) { void ((*volatile p)()); p = (void ((*)()))xmlSchemaSetValidStructuredErrors; return !p; }
      |                                                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
conftest.c:14: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:     int (* volatile tp)(void)=(int (*)(void))&t;
 9:     printf("%d", (*tp)());
10:   }
11: 
12:   return !!argv[argc];
13: }
14: int t(void) { void ((*volatile p)()); p = (void ((*)()))xmlSchemaSetValidStructuredErrors; return !p; }
/* end */

"x86_64-mageia-linux-gnu-gcc -o conftest -I/usr/include -I/usr/include/ruby/backward -I/usr/include -I. -I/home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10/include/libxml2 -I/home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxslt/1.1.34/include -I/home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10/include/libxml2    "-DNOKOGIRI_LIBXML2_PATH=\"/home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10\"" "-DNOKOGIRI_LIBXML2_PATCHES=\"0001-Revert-Do-not-URI-escape-in-server-side-includes.patch 0002-Remove-script-macro-support.patch 0003-Update-entities-to-remove-handling-of-ssi.patch 0004-libxml2.la-is-in-top_builddir.patch 0005-Fix-infinite-loop-in-xmlStringLenDecodeEntities.patch\"" "-DNOKOGIRI_LIBXSLT_PATH=\"/home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxslt/1.1.34\"" "-DNOKOGIRI_LIBXSLT_PATCHES=\"\"" -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -fPIC  -g -DXP_UNIX -Wall -Wcast-qual -Wwrite-strings -Wmissing-noreturn -Winline -DNOKOGIRI_USE_PACKAGED_LIBRARIES conftest.c  -L. -L/usr/lib64 -L/home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10/lib -L/home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxslt/1.1.34/lib -L.  -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-O1 -Wl,--build-id -Wl,--enable-new-dtags -fstack-protector-strong -rdynamic -Wl,-export-dynamic    /home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxslt/1.1.34/lib/libexslt.a -lm -ldl -llzma -lz /home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10/lib/libxml2.a /home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxslt/1.1.34/lib/libxslt.a -ldl -lm -llzma -lz /home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10/lib/libxml2.a -llzma -lruby /home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxslt/1.1.34/lib/libexslt.a -lm -ldl -llzma -lz /home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10/lib/libxml2.a /home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxslt/1.1.34/lib/libxslt.a -ldl -lm -llzma -lz /home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10/lib/libxml2.a -llzma -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:     int (* volatile tp)(void)=(int (*)(void))&t;
 9:     printf("%d", (*tp)());
10:   }
11: 
12:   return !!argv[argc];
13: }
14: extern void xmlSchemaSetValidStructuredErrors();
15: int t(void) { xmlSchemaSetValidStructuredErrors(); return 0; }
/* end */

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

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

"x86_64-mageia-linux-gnu-gcc -o conftest -I/usr/include -I/usr/include/ruby/backward -I/usr/include -I. -I/home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10/include/libxml2 -I/home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxslt/1.1.34/include -I/home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10/include/libxml2    "-DNOKOGIRI_LIBXML2_PATH=\"/home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10\"" "-DNOKOGIRI_LIBXML2_PATCHES=\"0001-Revert-Do-not-URI-escape-in-server-side-includes.patch 0002-Remove-script-macro-support.patch 0003-Update-entities-to-remove-handling-of-ssi.patch 0004-libxml2.la-is-in-top_builddir.patch 0005-Fix-infinite-loop-in-xmlStringLenDecodeEntities.patch\"" "-DNOKOGIRI_LIBXSLT_PATH=\"/home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxslt/1.1.34\"" "-DNOKOGIRI_LIBXSLT_PATCHES=\"\"" -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -fPIC  -g -DXP_UNIX -Wall -Wcast-qual -Wwrite-strings -Wmissing-noreturn -Winline -DNOKOGIRI_USE_PACKAGED_LIBRARIES conftest.c  -L. -L/usr/lib64 -L/home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10/lib -L/home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxslt/1.1.34/lib -L.  -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-O1 -Wl,--build-id -Wl,--enable-new-dtags -fstack-protector-strong -rdynamic -Wl,-export-dynamic    /home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxslt/1.1.34/lib/libexslt.a -lm -ldl -llzma -lz /home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10/lib/libxml2.a /home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxslt/1.1.34/lib/libxslt.a -ldl -lm -llzma -lz /home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10/lib/libxml2.a -llzma -lruby /home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxslt/1.1.34/lib/libexslt.a -lm -ldl -llzma -lz /home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10/lib/libxml2.a /home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxslt/1.1.34/lib/libxslt.a -ldl -lm -llzma -lz /home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10/lib/libxml2.a -llzma -lm   -lc "
conftest.c: In function ‘t’:
conftest.c:14:57: error: ‘xmlSchemaSetParserStructuredErrors’ undeclared (first use in this function)
   14 | int t(void) { void ((*volatile p)()); p = (void ((*)()))xmlSchemaSetParserStructuredErrors; return !p; }
      |                                                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
conftest.c:14: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:     int (* volatile tp)(void)=(int (*)(void))&t;
 9:     printf("%d", (*tp)());
10:   }
11: 
12:   return !!argv[argc];
13: }
14: int t(void) { void ((*volatile p)()); p = (void ((*)()))xmlSchemaSetParserStructuredErrors; return !p; }
/* end */

"x86_64-mageia-linux-gnu-gcc -o conftest -I/usr/include -I/usr/include/ruby/backward -I/usr/include -I. -I/home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10/include/libxml2 -I/home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxslt/1.1.34/include -I/home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10/include/libxml2    "-DNOKOGIRI_LIBXML2_PATH=\"/home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10\"" "-DNOKOGIRI_LIBXML2_PATCHES=\"0001-Revert-Do-not-URI-escape-in-server-side-includes.patch 0002-Remove-script-macro-support.patch 0003-Update-entities-to-remove-handling-of-ssi.patch 0004-libxml2.la-is-in-top_builddir.patch 0005-Fix-infinite-loop-in-xmlStringLenDecodeEntities.patch\"" "-DNOKOGIRI_LIBXSLT_PATH=\"/home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxslt/1.1.34\"" "-DNOKOGIRI_LIBXSLT_PATCHES=\"\"" -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -fPIC  -g -DXP_UNIX -Wall -Wcast-qual -Wwrite-strings -Wmissing-noreturn -Winline -DNOKOGIRI_USE_PACKAGED_LIBRARIES conftest.c  -L. -L/usr/lib64 -L/home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10/lib -L/home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxslt/1.1.34/lib -L.  -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-O1 -Wl,--build-id -Wl,--enable-new-dtags -fstack-protector-strong -rdynamic -Wl,-export-dynamic    /home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxslt/1.1.34/lib/libexslt.a -lm -ldl -llzma -lz /home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10/lib/libxml2.a /home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxslt/1.1.34/lib/libxslt.a -ldl -lm -llzma -lz /home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10/lib/libxml2.a -llzma -lruby /home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxslt/1.1.34/lib/libexslt.a -lm -ldl -llzma -lz /home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10/lib/libxml2.a /home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxslt/1.1.34/lib/libxslt.a -ldl -lm -llzma -lz /home/pterjan/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10/lib/libxml2.a -llzma -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:     int (* volatile tp)(void)=(int (*)(void))&t;
 9:     printf("%d", (*tp)());
10:   }
11: 
12:   return !!argv[argc];
13: }
14: extern void xmlSchemaSetParserStructuredErrors();
15: int t(void) { xmlSchemaSetParserStructuredErrors(); return 0; }
/* end */

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

Tell us about your system!

What is the output from ruby -v?

ruby 2.7.2p137 (2020-10-01 revision 5445e04352) [x86_64-linux]

What is the output from gem -v?

3.1.4

What is the output from gem env?

RubyGems Environment:
  - RUBYGEMS VERSION: 3.1.4
  - RUBY VERSION: 2.7.2 (2020-10-01 patchlevel 137) [x86_64-linux]
  - INSTALLATION DIRECTORY: /usr/share/gems
  - USER INSTALLATION DIRECTORY: /home/pterjan/.gem/ruby
  - RUBY EXECUTABLE: /usr/bin/ruby
  - GIT EXECUTABLE: /usr/bin/git
  - EXECUTABLE DIRECTORY: /usr/bin
  - SPEC CACHE DIRECTORY: /home/pterjan/.gem/specs
  - SYSTEM CONFIGURATION DIRECTORY: /etc
  - RUBYGEMS PLATFORMS:
    - ruby
    - x86_64-linux
  - GEM PATHS:
     - /usr/share/gems
     - /home/pterjan/.gem/ruby
     - /usr/local/share/gems
  - GEM CONFIGURATION:
     - :update_sources => true
     - :verbose => true
     - :backtrace => false
     - :bulk_threshold => 1000
     - "gem" => "--user-install --bindir /home/pterjan/bin"
  - REMOTE SOURCES:
     - https://rubygems.org/
  - SHELL PATH:
     - /usr/local/bin
     - /usr/bin
     - /usr/local/sbin
     - /usr/sbin
     - /usr/lib64/qt5/bin
     - /usr/lib64/qt4/bin
     - /home/pterjan/bin

If Linux or a BSD variant, please note:

  • the distro you're using

Mageia Cauldron

  • the output of uname -a

Linux mageia 5.8.5-server-2.mga8 #1 SMP Fri Aug 28 18:54:09 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

  • the contents of /etc/lsb-release.
LSB_VERSION=
DISTRIB_ID="Mageia"
DISTRIB_RELEASE=8
DISTRIB_CODENAME=mga8
DISTRIB_DESCRIPTION="Mageia 8"
@pterjan pterjan added the topic/installation Installation difficulties label Oct 28, 2020
@flavorjones
Copy link
Member

Thanks for the report. I'll take a look in the morning!

@flavorjones flavorjones changed the title ["install"] canonicalize already defined by glibc [install] canonicalize already defined by glibc Oct 29, 2020
@flavorjones
Copy link
Member

@pterjan Hey there! I'm trying to reproduce what you're seeing and having problems. I'm wondering if you can help. Here's what I've tried:

First, I tried to spin up Mageia 8. I can't find anything on hub.docker.com or on app.vagranup.com

So, I spun up a docker container running mageia:latest which is:

[root@e21ac4f69054 /]# cat /etc/lsb-release
LSB_VERSION=
DISTRIB_ID="Mageia"
DISTRIB_RELEASE=7
DISTRIB_CODENAME=mga7
DISTRIB_DESCRIPTION="Mageia 7"

Here's how I configured the system:

urpmi.update -a
urpmi gcc make patch ruby-devel zlib-devel

And then I'm able to gem install nokogiri successfully.

Can you help me to set up a Mageia 8 container? I'd prefer not to have to download the installation ISO and create my own virtual machine.

@flavorjones
Copy link
Member

@pterjan Actually, I've pushed a branch 2105-canonicalize-predefined-by-glibc which you can see at PR #2106. Would you mind checking out that branch on your system and giving it a whirl?

You should only need to run:

bundle update
bundle rake compile
bundle rake test

Please give it a look and let us know whether it addresses the issue you're seeing.

flavorjones added a commit that referenced this issue Oct 29, 2020
@flavorjones flavorjones added this to the v1.11.0 milestone Oct 29, 2020
swaseybridge pushed a commit to swaseybridge/nokogiri that referenced this issue Jan 13, 2023
swaseybridge pushed a commit to swaseybridge/nokogiri that referenced this issue Jan 13, 2023
mfrischknecht added a commit to mfrischknecht/nixpkgs that referenced this issue Nov 29, 2023
`nokogiri` defines a C function called `canonicalize` which conflicts
with another function defined in glibc. Upstream has fixed this
issue [1], but in a much newer version. And because the affected
file has changed since the merged patch [2], it isn't directly
applicable to the old gem version `mpdcron` depends on.

[1]: sparklemotion/nokogiri#2105
[2]: sparklemotion/nokogiri@7a74cdb
github-actions bot pushed a commit to NixOS/nixpkgs that referenced this issue Dec 2, 2023
`nokogiri` defines a C function called `canonicalize` which conflicts
with another function defined in glibc. Upstream has fixed this
issue [1], but in a much newer version. And because the affected
file has changed since the merged patch [2], it isn't directly
applicable to the old gem version `mpdcron` depends on.

[1]: sparklemotion/nokogiri#2105
[2]: sparklemotion/nokogiri@7a74cdb

(cherry picked from commit 37517db)
ivoanjo added a commit to DataDog/dd-trace-rb that referenced this issue Mar 20, 2024
…a base

**What does this PR do?**

This PR changes our Ruby 2.3 docker image to use Debian 11 "bullseye"
as a base instead of Debian 12 "buster".

In #3534 we updated this
image but this broke system-tests
(https://github.com/DataDog/dd-trace-rb/actions/runs/8346827939/job/22845592152)
because they use an old nokogiri version that fails to build on
modern systems (sparklemotion/nokogiri#2105):

```
$ gem install nokogiri -v '= 1.10.10'

xml_document.c:495:14: error: conflicting types for 'canonicalize'; have 'VALUE(int,  VALUE *, VALUE)' {aka 'long unsigned int(int,  long unsigned int *, long unsigned int)'}
  495 | static VALUE canonicalize(int argc, VALUE* argv, VALUE self)
      |              ^~~~~~~~~~~~
In file included from /usr/include/features.h:489,
                 from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33,
                 from /usr/include/stdlib.h:26,
                 from ./nokogiri.h:4,
                 from ./xml_document.h:4,
                 from xml_document.c:1:
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:370:1: note: previous declaration of 'canonicalize' with type 'int(double *, const double *)'
  370 | __MATHDECL_1 (int, canonicalize,, (_Mdouble_ *__cx, const _Mdouble_ *__x));
      | ^~~~~~~~~~~~
make: *** [Makefile:240: xml_document.o] Error 1

make failed, exit code 2

Gem files will remain installed in /usr/local/bundle/gems/nokogiri-1.10.10 for inspection.
Results logged to /usr/local/bundle/extensions/x86_64-linux/2.3.0/nokogiri-1.10.10/gem_make.out
```

Rather than fighting nokogiri or the system-tests app, let's instead
gently step back from Debian 12 to 11, which should still buy us plenty
of time until we deprecate Ruby 2.3.

**Motivation:**

Fix CI/system-tests for Ruby 2.3.

**Additional Notes:**

N/A

**How to test the change?**

I've locally built the image with

```bash
$ docker build . -f Dockerfile-2.3.8 -t some-testing-name
```

and confirmed that nokogiri sucessfully installs.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic/installation Installation difficulties
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants