From nobody Thu May 18 11:41:59 2023 X-Original-To: perl@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 4QMSkH4Mv6z4BT8n for ; Thu, 18 May 2023 11:41:59 +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 4QMSkH201zz3xLL for ; Thu, 18 May 2023 11:41:59 +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=1684410119; 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: in-reply-to:in-reply-to:references:references; bh=zkf1Er9nfcXXeX9asQhdfVzfoBBoJWPI9QlcgSGoDak=; b=OOl/jVONorYY4t8E2eKvKTwScEd3/zAlSp84/MvpcxByWx18Iv1jts7JUYuzTf1W5zbPej dvefGWEbz0xbrYm0UUsLH+z5YI8POMpozP8Q/mdIz/1PIj9y7aXLxzfR6itof7e3e4xVeR VaHe/UpzF9gtyuBt54eHubwCJImzFa7i94FXvplDlVzPVzgFXj0n9Jr+X4DP8cftIF8p70 59NEowUxrRSpAD/BxOlHwgMBWESgpCqpxo1tf1XmyDmnEEPkGkPKXpDs4coSJs/vgJS7Uf gCxEYK01oiEIn5lT5wx3ugUFdurfsLoQ9u2JD4xoM5OFP8dRjCGN/HhlvFbvLA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1684410119; a=rsa-sha256; cv=none; b=scl45tJF+y7bdnW406MeWlHSUQODu1QDrAejP/7g06L7kdezbnFQzksQBQYQP261lMtUr5 rA22uA6/emnTxxM6BDzCdsF0AMXZeCbO5ayEV+ll+Q9xlTpCWIdE9xfVPqn2KcQ1TYDbrj ig32PLkZqoC5FURS2nJrk/I47FdGl8AZO0RzNkEoTWrf3V8GSFVOfJbwZQTLm6X/rnqytP Ko9f+tkWyxMfywga4lyLQW9V49f62uB5PzcIv+akiPHdEgNZlDtR1DiiQVpcsrUcKbaD7N Y2hYsPMF/NC8xUJ269KTkKIetas7GUBRMyHQt/riSQ7oFNmySZAlcM/hi9aUQg== 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 4QMSkH15trzknh for ; Thu, 18 May 2023 11:41:59 +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 34IBfxLG041433 for ; Thu, 18 May 2023 11:41:59 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 34IBfxsx041431 for perl@FreeBSD.org; Thu, 18 May 2023 11:41:59 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: bugzilla set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: perl@FreeBSD.org Subject: [Bug 271355] textproc/p5-XML-LibXML: fix build with clang 16 Date: Thu, 18 May 2023 11:41:59 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed 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: commit-hook@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: perl@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: 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: maintainer of a number of perl-related ports List-Archive: https://lists.freebsd.org/archives/freebsd-perl List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-perl@freebsd.org X-BeenThere: freebsd-perl@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D271355 --- Comment #2 from commit-hook@FreeBSD.org --- A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=3Dea9006c8e8ff30532f8ebd66d850cc6= b2b8701b7 commit ea9006c8e8ff30532f8ebd66d850cc6b2b8701b7 Author: Dimitry Andric AuthorDate: 2023-05-10 19:19:33 +0000 Commit: Dimitry Andric CommitDate: 2023-05-18 11:36:36 +0000 textproc/p5-XML-LibXML: fix build with clang 16 Clang 16 has a new error about incompatible function types, which shows up when building textproc/p5-XML-LibXML: perl-libxml-mm.c:142:18: error: incompatible function pointer types passing 'void (void *, void *, xmlChar *)' (aka 'void (void *, void *, unsi= gned char *)') to parameter of type 'xmlHashScanner' (aka 'void (*)(void *, void= *, const unsigned char *)') [-Wincompatible-function-pointer-types] xmlHashScan(r, PmmRegistryDumpHashScanner, NULL); ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/libxml2/libxml/hash.h:213:22: note: passing argume= nt to parameter 'f' here xmlHashScanner f, ^ perl-libxml-mm.c:234:44: error: incompatible function pointer types passing 'void (void *, xmlChar *)' (aka 'void (void *, unsigned char *)') to parameter of type 'xmlHashDeallocator' (aka 'void (*)(void *, const unsigned char *)') [-Wincompatible-function-pointer-types] if( xmlHashRemoveEntry(PmmREGISTRY, name, PmmRegistryHashDeallocator) ) =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/libxml2/libxml/hash.h:160:47: note: passing argume= nt to parameter 'f' here xmlHashDeallocator f); ^ perl-libxml-mm.c:301:38: error: incompatible function pointer types passing 'void *(void *, xmlChar *)' (aka 'void *(void *, unsigned char *)')= to parameter of type 'xmlHashCopier' (aka 'void *(*)(void *, const unsigned ch= ar *)') [-Wincompatible-function-pointer-types] reg_copy =3D xmlHashCopy(PmmREGISTRY, PmmRegistryHashCopier); ^~~~~~~~~~~~~~~~~~~~~ /usr/local/include/libxml2/libxml/hash.h:208:21: note: passing argume= nt to parameter 'f' here xmlHashCopier f); ^ In all three cases, the libxml2 callback functions require const xmlChar pointers, so fix the parameters in their definitions. PR: 271355 Approved by: portmgr (build fix blanket) MFH: 2023Q2 textproc/p5-XML-LibXML/Makefile | 1 + .../files/patch-perl-libxml-mm.c (new) | 29 ++++++++++++++++++= ++++ 2 files changed, 30 insertions(+) --=20 You are receiving this mail because: You are the assignee for the bug.=