From nobody Thu May 04 18:18:48 2023 X-Original-To: ports-bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4QC2Bc6LZxz49NRS for ; Thu, 4 May 2023 18:18:48 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4QC2Bc5M51z4Fbf for ; Thu, 4 May 2023 18:18:48 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1683224328; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=n+iHWXA3F5r/bCNNItjfnZVyGoT3v9jg3n6QxTJpk8U=; b=lMKokW79fzEOOdMhFpKkxaJtXsnNToyflkMJgMMkbM4kKmQ+b609SU/tucnsOhq8WFIDR8 vvJ+/zyTXG8vrhfq1PEFh+k1RINlEkiS0F7Z8MHXXynKzfdPxBBeMBVGrWU67toY+zHJRF 5gLo/6lNC2nTAiNxhf/57hVXVLDSIfyVM4xIJQ544tZrNEgNQ8xd+kaO3/80S05iQt9UjJ a0n2XX6RsZNIGFZPwLR/O1js3HATS+BlYfThn92nXyaDBCwRPnt0QTUS5TP2IfYY5BQDhm WoCXzP1YdRfxQ7jprZQoEz28SW6vzym1EkKezHtNqvOgo65VTK3c2gkDkVWG+Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1683224328; a=rsa-sha256; cv=none; b=S8UKm5de9gMoCpmJIVgN3Apz7ZosdByx56qZBbOBiyu0Jo4rHZfUQKkEtam8mvZceYw4zN VZc1Si+35LJmAX7ginrCL9afclpuJRAGMugmslkIjrLiQfxsvSUTDRGYn+ogY+XtH8D7Pl NdcD49AiRmgavQypvNanSYI8Kc/Oc7toXBYO5Z0TjMluzARB9KAcsvUHPH3xc2weWg9fxq b8Fc3hMh34nL1u/NjDhX5G2vjEWiCH4vp00tfAWi+44hsSPhGn+H1G7Tpha0EYFPzuSENg 3kLqQiXYQb5WC4MZNgzAl/ebCxYa6Ohn0zbyl25gWbdEb9kVAhrv6SdqY5hOjg== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4QC2Bc4L1ZzMh9 for ; Thu, 4 May 2023 18:18:48 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 344IIm6f060951 for ; Thu, 4 May 2023 18:18:48 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 344IImu2060950 for ports-bugs@FreeBSD.org; Thu, 4 May 2023 18:18:48 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 271245] www/rubygem-hpricot: fix build with clang 16 Date: Thu, 04 May 2023 18:18:48 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: dim@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: ruby@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter flagtypes.name Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Ports bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-ports-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports-bugs@freebsd.org X-BeenThere: freebsd-ports-bugs@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D271245 Bug ID: 271245 Summary: www/rubygem-hpricot: fix build with clang 16 Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: Individual Port(s) Assignee: ruby@FreeBSD.org Reporter: dim@FreeBSD.org Assignee: ruby@FreeBSD.org Flags: maintainer-feedback?(ruby@FreeBSD.org) Clang 16 has a new error about incompatible function types, which shows up = when building www/rubygem-hpricot: fast_xs.c:165:39: error: incompatible function pointer types passing 'VAL= UE (VALUE)' (aka 'unsigned long (unsigned long)') to parameter of type 'VALUE (*)(VALUE, VALUE)' (aka 'unsigned long (*)(unsigned long, unsigned long)') [-Wincompatible-function-pointer-types] array =3D rb_rescue(unpack_utf8, self, unpack_uchar, self); ^~~~~~~~~~~~ /usr/local/include/ruby-3.1/ruby/internal/iterator.h:364:62: note: passing argument to parameter 'r_proc' here VALUE rb_rescue(VALUE (*b_proc)(VALUE), VALUE data1, VALUE (*r_proc)(VALU= E, VALUE), VALUE data2); ^ This is because the r_proc parameter of rb_rescue() should be a pointer to a function taking two VALUE parameters, not one (the second parameter can con= tain an exception to be handled). Another similar error occurs later in hpricot_scan.c, which was generated f= rom hpricot_scan.rl: hpricot_scan.rl:855:3: error: incompatible function pointer types passing 'VALUE (VALUE, VALUE, VALUE, VALUE, VALUE)' (aka 'unsigned long (unsigned l= ong, unsigned long, unsigned long, unsigned long, unsigned long)') to parameter = of type 'VALUE (*)(VALUE, VALUE, VALUE, VALUE)' (aka 'unsigned long (*)(unsign= ed long, unsigned long, unsigned long, unsigned long)') [-Wincompatible-function-pointer-types] rb_define_singleton_method(mHpricot, "css", hpricot_css, 3); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/ruby-3.1/ruby/internal/anyargs.h:307:143: note: expand= ed from macro 'rb_define_singleton_method' #define rb_define_singleton_method(obj, mid, func, arity)=20=20 RBIMPL_ANYARGS_DISPATCH_rb_define_singleton_method((arity), (func))((obj), (mid), (func), (arity)) =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20 ^~~~~~ /usr/local/include/ruby-3.1/ruby/internal/anyargs.h:270:1: note: passing argument to parameter here RBIMPL_ANYARGS_DECL(rb_define_singleton_method, VALUE, const char *) ^ This is because the func parameter of rb_define_singleton_method() should b= e a pointer to a function taking four VALUE parameters, not five. --=20 You are receiving this mail because: You are the assignee for the bug.=