Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 923107

Summary: dev-ruby/nokogiri-1.15.5 - html4_document.c: error: passing argument 2 of xmlSetStructuredErrorFunc from incompatible pointer type [-Wincompatible-poi
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Gentoo Ruby Team <ruby>
Status: CONFIRMED ---    
Severity: normal CC: jy6x2b32pie9
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on: 927159    
Bug Blocks: 870412, 917537    
Attachments: emerge-info.txt
dev-ruby:nokogiri-1.15.5:20240127-231747.log
emerge-history.txt
environment
etc.clang.tar.xz
etc.portage.tar.xz
logs.tar.xz
qlist-info.txt

Description Toralf Förster gentoo-dev 2024-01-28 09:51:56 UTC
too long lines were shrinked:

make: Entering directory '/var/tmp/portage/dev-ruby/nokogiri-1.15.5/work/ruby31/nokogiri-1.15.5/ext/nokogiri'
x86_64-pc-linux-gnu-gcc -I. -I/usr/include/ruby-3.1.0/x86_64-linux -I/usr/include/ruby-3.1.0/ruby/backward -I/usr/include/ruby-3.1.0 -I. -DHAVE_GUMBO_PARSE_WITH_OPTIONS -DHAVE_XMLHASFEATURE -DHAVE_XMLFIRSTELEMENTCHILD -DHAVE_XMLRELAXNGSETPARSERSTRUCTUREDERRORS -DHAVE_XMLRELAXNGSETVALIDSTRUCTUREDERRO
x86_64-pc-linux-gnu-gcc -I. -I/usr/include/ruby-3.1.0/x86_64-linux -I/usr/include/ruby-3.1.0/ruby/backward -I/usr/include/ruby-3.1.0 -I. -DHAVE_GUMBO_PARSE_WITH_OPTIONS -DHAVE_XMLHASFEATURE -DHAVE_XMLFIRSTELEMENTCHILD -DHAVE_XMLRELAXNGSETPARSERSTRUCTUREDERRORS -DHAVE_XMLRELAXNGSETVALIDSTRUCTUREDERRO
x86_64-pc-linux-gnu-gcc -I. -I/usr/include/ruby-3.1.0/x86_64-linux -I/usr/include/ruby-3.1.0/ruby/backward -I/usr/include/ruby-3.1.0 -I. -DHAVE_GUMBO_PARSE_WITH_OPTIONS -DHAVE_XMLHASFEATURE -DHAVE_XMLFIRSTELEMENTCHILD -DHAVE_XMLRELAXNGSETPARSERSTRUCTUREDERRORS -DHAVE_XMLRELAXNGSETVALIDSTRUCTUREDERRO
x86_64-pc-linux-gnu-gcc -I. -I/usr/include/ruby-3.1.0/x86_64-linux -I/usr/include/ruby-3.1.0/ruby/backward -I/usr/include/ruby-3.1.0 -I. -DHAVE_GUMBO_PARSE_WITH_OPTIONS -DHAVE_XMLHASFEATURE -DHAVE_XMLFIRSTELEMENTCHILD -DHAVE_XMLRELAXNGSETPARSERSTRUCTUREDERRORS -DHAVE_XMLRELAXNGSETVALIDSTRUCTUREDERRO
html4_document.c: In function 'rb_html_document_s_read_io':
html4_document.c:49:52: error: passing argument 2 of 'xmlSetStructuredErrorFunc' from incompatible pointer type [-Wincompatible-pointer-types]
   49 |   xmlSetStructuredErrorFunc((void *)rb_error_list, Nokogiri_error_array_pusher);
      |                                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_desktop_gnome-20240127-051003

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-14 *
clang/llvm (if any):
clang version 17.0.6
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/17/bin
Configuration file: /etc/clang/x86_64-pc-linux-gnu-clang.cfg
/usr/lib/llvm/17
17.0.6
Python 3.11.7
Available Ruby profiles:
  [1]   ruby31 (with Rubygems)
  [2]   ruby32 (with Rubygems)
  [3]   ruby33 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.74.1 *
The following VMs are available for generation-2:
*)	Eclipse Temurin JDK 21.0.1_p12 [openjdk-bin-21]
Available Java Virtual Machines:
  [1]   openjdk-bin-21  system-vm

The Glorious Glasgow Haskell Compilation System, version 9.2.8
php cli (if any):
go version go1.21.6 linux/amd64

  HEAD of ::gentoo
commit f2c4ce5f26b48678253a798ddaabf99d01297b86
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Sat Jan 27 23:03:19 2024 +0000

    2024-01-27 23:03:18 UTC

emerge -qpvO dev-ruby/nokogiri
[ebuild  N    ] dev-ruby/nokogiri-1.15.5  USE="-doc -test" RUBY_TARGETS="ruby31 ruby32 ruby33"
Comment 1 Toralf Förster gentoo-dev 2024-01-28 09:51:57 UTC
Created attachment 883382 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2024-01-28 09:51:58 UTC
Created attachment 883383 [details]
dev-ruby:nokogiri-1.15.5:20240127-231747.log
Comment 3 Toralf Förster gentoo-dev 2024-01-28 09:51:59 UTC
Created attachment 883384 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2024-01-28 09:52:00 UTC
Created attachment 883385 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2024-01-28 09:52:01 UTC
Created attachment 883386 [details]
etc.clang.tar.xz
Comment 6 Toralf Förster gentoo-dev 2024-01-28 09:52:02 UTC
Created attachment 883387 [details]
etc.portage.tar.xz
Comment 7 Toralf Förster gentoo-dev 2024-01-28 09:52:03 UTC
Created attachment 883388 [details]
logs.tar.xz
Comment 8 Toralf Förster gentoo-dev 2024-01-28 09:52:04 UTC
Created attachment 883389 [details]
qlist-info.txt
Comment 9 NHO 2024-04-25 13:18:23 UTC
Upstream issues:
https://github.com/sparklemotion/nokogiri/issues/3071
Patch that appear to be fix:
https://github.com/sparklemotion/nokogiri/commit/cdc2150ce847dec14f54d7602667867f1e6702ab

We don't appear to have packages depending on nokogiri version being less than 1.16 and 1.16.2 is unmasked. Drop whole 1.15?
Comment 10 Hans de Graaff gentoo-dev Security 2024-04-28 06:03:12 UTC
(In reply to jy6x2b32pie9 from comment #9)
> Upstream issues:
> https://github.com/sparklemotion/nokogiri/issues/3071
> Patch that appear to be fix:
> https://github.com/sparklemotion/nokogiri/commit/
> cdc2150ce847dec14f54d7602667867f1e6702ab
> 
> We don't appear to have packages depending on nokogiri version being less
> than 1.16 and 1.16.2 is unmasked. Drop whole 1.15?

We can do that once 1.16.2 is stable on all arches.