Description of problem: "gem install licensee" fails with an error with mageia's ruby. It succeeds after doing «PATH=/home/shlomif/apps/prog/ruby-2.7.x/bin:"$PATH"» with ruby-2.7.1 built from source. Here is the log: ``` +-zsh:1> gem install licensee NOTE: Gem::Specification#rubyforge_project= is deprecated with no replacement. It will be removed on or after 2019-12-01. Gem::Specification#rubyforge_project= called from /usr/local/share/gems/specifications/childprocess-0.7.0.gemspec:16. NOTE: Gem::Specification#rubyforge_project= is deprecated with no replacement. It will be removed on or after 2019-12-01. Gem::Specification#rubyforge_project= called from /usr/local/share/gems/specifications/highline-1.7.10.gemspec:20. NOTE: Gem::Specification#rubyforge_project= is deprecated with no replacement. It will be removed on or after 2019-12-01. Gem::Specification#rubyforge_project= called from /usr/local/share/gems/specifications/msgpack-1.2.4.gemspec:19. NOTE: Gem::Specification#rubyforge_project= is deprecated with no replacement. It will be removed on or after 2019-12-01. Gem::Specification#rubyforge_project= called from /usr/local/share/gems/specifications/multipart-post-2.0.0.gemspec:17. NOTE: Gem::Specification#rubyforge_project= is deprecated with no replacement. It will be removed on or after 2019-12-01. Gem::Specification#rubyforge_project= called from /usr/local/share/gems/specifications/sass-3.4.25.gemspec:19. NOTE: Gem::Specification#rubyforge_project= is deprecated with no replacement. It will be removed on or after 2019-12-01. Gem::Specification#rubyforge_project= called from /usr/local/share/gems/specifications/multipart-post-2.0.0.gemspec:17. NOTE: Gem::Specification#rubyforge_project= is deprecated with no replacement. It will be removed on or after 2019-12-01. Gem::Specification#rubyforge_project= called from /usr/local/share/gems/specifications/childprocess-0.7.0.gemspec:16. NOTE: Gem::Specification#rubyforge_project= is deprecated with no replacement. It will be removed on or after 2019-12-01. Gem::Specification#rubyforge_project= called from /usr/local/share/gems/specifications/highline-1.7.10.gemspec:20. NOTE: Gem::Specification#rubyforge_project= is deprecated with no replacement. It will be removed on or after 2019-12-01. Gem::Specification#rubyforge_project= called from /usr/local/share/gems/specifications/msgpack-1.2.4.gemspec:19. NOTE: Gem::Specification#rubyforge_project= is deprecated with no replacement. It will be removed on or after 2019-12-01. Gem::Specification#rubyforge_project= called from /usr/local/share/gems/specifications/sass-3.4.25.gemspec:19. NOTE: Gem::Specification#rubyforge_project= is deprecated with no replacement. It will be removed on or after 2019-12-01. Gem::Specification#rubyforge_project= called from /usr/local/share/gems/specifications/childprocess-0.7.0.gemspec:16. NOTE: Gem::Specification#rubyforge_project= is deprecated with no replacement. It will be removed on or after 2019-12-01. Gem::Specification#rubyforge_project= called from /usr/local/share/gems/specifications/highline-1.7.10.gemspec:20. NOTE: Gem::Specification#rubyforge_project= is deprecated with no replacement. It will be removed on or after 2019-12-01. Gem::Specification#rubyforge_project= called from /usr/local/share/gems/specifications/msgpack-1.2.4.gemspec:19. NOTE: Gem::Specification#rubyforge_project= is deprecated with no replacement. It will be removed on or after 2019-12-01. Gem::Specification#rubyforge_project= called from /usr/local/share/gems/specifications/multipart-post-2.0.0.gemspec:17. NOTE: Gem::Specification#rubyforge_project= is deprecated with no replacement. It will be removed on or after 2019-12-01. Gem::Specification#rubyforge_project= called from /usr/local/share/gems/specifications/sass-3.4.25.gemspec:19. NOTE: Gem::Specification#rubyforge_project= is deprecated with no replacement. It will be removed on or after 2019-12-01. Gem::Specification#rubyforge_project= called from /usr/local/share/gems/specifications/childprocess-0.7.0.gemspec:16. NOTE: Gem::Specification#rubyforge_project= is deprecated with no replacement. It will be removed on or after 2019-12-01. Gem::Specification#rubyforge_project= called from /usr/local/share/gems/specifications/highline-1.7.10.gemspec:20. NOTE: Gem::Specification#rubyforge_project= is deprecated with no replacement. It will be removed on or after 2019-12-01. Gem::Specification#rubyforge_project= called from /usr/local/share/gems/specifications/msgpack-1.2.4.gemspec:19. NOTE: Gem::Specification#rubyforge_project= is deprecated with no replacement. It will be removed on or after 2019-12-01. Gem::Specification#rubyforge_project= called from /usr/local/share/gems/specifications/multipart-post-2.0.0.gemspec:17. NOTE: Gem::Specification#rubyforge_project= is deprecated with no replacement. It will be removed on or after 2019-12-01. Gem::Specification#rubyforge_project= called from /usr/local/share/gems/specifications/sass-3.4.25.gemspec:19. NOTE: Gem::Specification#rubyforge_project= is deprecated with no replacement. It will be removed on or after 2019-12-01. Gem::Specification#rubyforge_project= called from /usr/local/share/gems/specifications/childprocess-0.7.0.gemspec:16. NOTE: Gem::Specification#rubyforge_project= is deprecated with no replacement. It will be removed on or after 2019-12-01. Gem::Specification#rubyforge_project= called from /usr/local/share/gems/specifications/highline-1.7.10.gemspec:20. NOTE: Gem::Specification#rubyforge_project= is deprecated with no replacement. It will be removed on or after 2019-12-01. Gem::Specification#rubyforge_project= called from /usr/local/share/gems/specifications/msgpack-1.2.4.gemspec:19. NOTE: Gem::Specification#rubyforge_project= is deprecated with no replacement. It will be removed on or after 2019-12-01. Gem::Specification#rubyforge_project= called from /usr/local/share/gems/specifications/multipart-post-2.0.0.gemspec:17. NOTE: Gem::Specification#rubyforge_project= is deprecated with no replacement. It will be removed on or after 2019-12-01. Gem::Specification#rubyforge_project= called from /usr/local/share/gems/specifications/sass-3.4.25.gemspec:19. NOTE: Gem::Specification#rubyforge_project= is deprecated with no replacement. It will be removed on or after 2019-12-01. Gem::Specification#rubyforge_project= called from /usr/local/share/gems/specifications/childprocess-0.7.0.gemspec:16. NOTE: Gem::Specification#rubyforge_project= is deprecated with no replacement. It will be removed on or after 2019-12-01. Gem::Specification#rubyforge_project= called from /usr/local/share/gems/specifications/highline-1.7.10.gemspec:20. NOTE: Gem::Specification#rubyforge_project= is deprecated with no replacement. It will be removed on or after 2019-12-01. Gem::Specification#rubyforge_project= called from /usr/local/share/gems/specifications/msgpack-1.2.4.gemspec:19. NOTE: Gem::Specification#rubyforge_project= is deprecated with no replacement. It will be removed on or after 2019-12-01. Gem::Specification#rubyforge_project= called from /usr/local/share/gems/specifications/multipart-post-2.0.0.gemspec:17. NOTE: Gem::Specification#rubyforge_project= is deprecated with no replacement. It will be removed on or after 2019-12-01. Gem::Specification#rubyforge_project= called from /usr/local/share/gems/specifications/sass-3.4.25.gemspec:19. Successfully installed dotenv-2.7.6 Successfully installed sawyer-0.8.2 Successfully installed octokit-4.18.0 Successfully installed mini_portile2-2.4.0 Building native extensions. This could take a while... ERROR: Error installing licensee: ERROR: Failed to build gem native extension. current directory: /home/shlomif/.gem/ruby/gems/nokogiri-1.10.10/ext/nokogiri /usr/bin/ruby -I /usr/share/rubygems -r ./siteconf20200727-457015-16ib6dc.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/shlomif/.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/shlomif/.gem/ruby/gems/nokogiri-1.10.10/patches/libxml2/0002-Remove-script-macro-support.patch... OK Running git apply with /home/shlomif/.gem/ruby/gems/nokogiri-1.10.10/patches/libxml2/0003-Update-entities-to-remove-handling-of-ssi.patch... OK Running git apply with /home/shlomif/.gem/ruby/gems/nokogiri-1.10.10/patches/libxml2/0004-libxml2.la-is-in-top_builddir.patch... OK Running git apply with /home/shlomif/.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/shlomif/.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/shlomif/.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/shlomif/.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/shlomif/.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/shlomif/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10/include/libxml2 -I/home/shlomif/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxslt/1.1.34/include -I/home/shlomif/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10/include/libxml2 "-DNOKOGIRI_LIBXML2_PATH=\"/home/shlomif/.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/shlomif/.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/shlomif/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10/include/libxml2 -I/home/shlomif/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxslt/1.1.34/include -I/home/shlomif/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10/include/libxml2 "-DNOKOGIRI_LIBXML2_PATH=\"/home/shlomif/.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/shlomif/.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/shlomif/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10/include/libxml2 -I/home/shlomif/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxslt/1.1.34/include -I/home/shlomif/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10/include/libxml2 "-DNOKOGIRI_LIBXML2_PATH=\"/home/shlomif/.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/shlomif/.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/shlomif/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10/include/libxml2 -I/home/shlomif/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxslt/1.1.34/include -I/home/shlomif/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10/include/libxml2 "-DNOKOGIRI_LIBXML2_PATH=\"/home/shlomif/.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/shlomif/.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/shlomif/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10/include/libxml2 -I/home/shlomif/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxslt/1.1.34/include -I/home/shlomif/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10/include/libxml2 "-DNOKOGIRI_LIBXML2_PATH=\"/home/shlomif/.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/shlomif/.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/shlomif/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10/include/libxml2 -I/home/shlomif/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxslt/1.1.34/include -I/home/shlomif/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10/include/libxml2 "-DNOKOGIRI_LIBXML2_PATH=\"/home/shlomif/.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/shlomif/.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/shlomif/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10/include/libxml2 -I/home/shlomif/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxslt/1.1.34/include -I/home/shlomif/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10/include/libxml2 "-DNOKOGIRI_LIBXML2_PATH=\"/home/shlomif/.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/shlomif/.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/shlomif/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10/include/libxml2 -I/home/shlomif/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxslt/1.1.34/include -I/home/shlomif/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10/include/libxml2 "-DNOKOGIRI_LIBXML2_PATH=\"/home/shlomif/.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/shlomif/.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/shlomif/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10/include/libxml2 -I/home/shlomif/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxslt/1.1.34/include -I/home/shlomif/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10/include/libxml2 "-DNOKOGIRI_LIBXML2_PATH=\"/home/shlomif/.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/shlomif/.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/shlomif/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10/include/libxml2 -I/home/shlomif/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxslt/1.1.34/include -I/home/shlomif/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10/include/libxml2 "-DNOKOGIRI_LIBXML2_PATH=\"/home/shlomif/.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/shlomif/.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/shlomif/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10/include/libxml2 -I/home/shlomif/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxslt/1.1.34/include -I/home/shlomif/.gem/ruby/gems/nokogiri-1.10.10/ports/x86_64-mageia-linux-gnu/libxml2/2.9.10/include/libxml2 "-DNOKOGIRI_LIBXML2_PATH=\"/home/shlomif/.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/shlomif/.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/shlomif/.gem/ruby/gems/nokogiri-1.10.10 for inspection. Results logged to /home/shlomif/.gem/ruby/extensions/x86_64-linux/2.7.0/nokogiri-1.10.10/gem_make.out ```
Thank you Shlomi for the report; I am unsure how much of the voluminous log above is relevant to the bug, which I am assigning to Pascal as the Ruby maintainer.
Assignee: bugsquad => pterjan
Created attachment 11804 [details] An attempt to fix the bug , but it still exhibits the same problem I also deleted /usr/local/share/gems/ as root which reduced the amount of warnings, but the nokogiri build still fails when using /usr/bin/gem .
Yes ruby-nokogiri package is also broken which is why I haven't updated to 1.10.10 It broke 1 or 2 months ago with that error http://pkgsubmit.mageia.org/autobuild/history.php?package=ruby-nokogiri My first guess is gcc as it is complaining that a static function is complaining with one defined in some shared headers and both seem to have existed before. If you are saying it builds with another build of ruby this is very strange. I have a trivial patch to fix the build (renaming the function to _canonicalize) but I don't understand what changed.
This was fixed upstream but no new version has been released yet https://github.com/sparklemotion/nokogiri/commit/b061bba3059e29b92921cf40bf729a0222150d30
(In reply to Pascal Terjan from comment #4) > This was fixed upstream but no new version has been released yet > https://github.com/sparklemotion/nokogiri/commit/ > b061bba3059e29b92921cf40bf729a0222150d30 Thanks, Pascal! Seems like a fairly simple change to apply to the mageia package as few lines were changed.
The patch was added on 2020-11-04, closing this old bug.
Resolution: (none) => FIXEDStatus: NEW => RESOLVED