Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 923107 - dev-ruby/nokogiri-1.15.5 - html4_document.c: error: passing argument 2 of xmlSetStructuredErrorFunc from incompatible pointer type [-Wincompatible-poi
Summary: dev-ruby/nokogiri-1.15.5 - html4_document.c: error: passing argument 2 of xml...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Ruby Team
URL:
Whiteboard: fixed in 1.16.5
Keywords:
Depends on: 927159 936378
Blocks: c99-porting libxml2-2.12
  Show dependency tree
 
Reported: 2024-01-28 09:51 UTC by Toralf Förster
Modified: 2024-10-31 22:32 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,18.24 KB, text/plain)
2024-01-28 09:51 UTC, Toralf Förster
Details
dev-ruby:nokogiri-1.15.5:20240127-231747.log (dev-ruby:nokogiri-1.15.5:20240127-231747.log,14.34 KB, text/plain)
2024-01-28 09:51 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,46.79 KB, text/plain)
2024-01-28 09:51 UTC, Toralf Förster
Details
environment (environment,91.93 KB, text/plain)
2024-01-28 09:52 UTC, Toralf Förster
Details
etc.clang.tar.xz (etc.clang.tar.xz,1.19 KB, application/x-xz)
2024-01-28 09:52 UTC, Toralf Förster
Details
etc.portage.tar.xz (etc.portage.tar.xz,28.05 KB, application/x-xz)
2024-01-28 09:52 UTC, Toralf Förster
Details
logs.tar.xz (logs.tar.xz,2.44 KB, application/x-xz)
2024-01-28 09:52 UTC, Toralf Förster
Details
qlist-info.txt (qlist-info.txt,110.18 KB, text/plain)
2024-01-28 09:52 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
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.
Comment 11 Andreas K. Hüttel archtester gentoo-dev 2024-10-23 20:33:29 UTC
Fixed in 1.16.5, now stable
Comment 12 Larry the Git Cow gentoo-dev 2024-10-31 22:32:49 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=07abb3782449f2942d8e93e5203f5b103c50741a

commit 07abb3782449f2942d8e93e5203f5b103c50741a
Author:     Andreas K. Hüttel <dilfridge@gentoo.org>
AuthorDate: 2024-10-31 22:31:58 +0000
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: 2024-10-31 22:31:58 +0000

    dev-ruby/nokogiri: drop 1.15.3, 1.16.2
    
    Bug: https://bugs.gentoo.org/923107
    Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>

 dev-ruby/nokogiri/Manifest               |  2 -
 dev-ruby/nokogiri/nokogiri-1.15.3.ebuild | 95 -------------------------------
 dev-ruby/nokogiri/nokogiri-1.16.2.ebuild | 96 --------------------------------
 3 files changed, 193 deletions(-)