From nobody Wed May 10 19:24:06 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 4QGlMC2Tb2z4BJtp for ; Wed, 10 May 2023 19:24:07 +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 4QGlMC0LSrz3Dwj for ; Wed, 10 May 2023 19:24:07 +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=1683746647; 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=SFJsuV8ZZdjIk20zZ+C0jZPpTYzT/ZoBmd/lMtOkgSw=; b=YR0YfBSPjcVC2/7mL/fMBZZbfJSZTAT+3XoWd1XnKOVJXyeVBImkPFtJo+vlHqAjD9y+kB iHECjEMXFuip3zvChyDA9BrsH3cuHJUNdpnNGLj6H22lJYv+2oiSuV6sQ8sYkG+U2l5yhx ZTixyb0qid9gb9pdQDOHo21dSutcUYBrFaO7xucrMZLDOGWAdwWRnttqW0XjwFVim55FCV wdPSbQclDVZVoF3Q/3yTaFuxHN6S7aKItqX4HjzU+TdryFd+95RaBUX0I2ZU5oqGr/qh+t do+RVvd3xY3nejmqVs0xxTVO878UFykm805E1nbZjwwvJJo9KQNRC7/EB/Ujvg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1683746647; a=rsa-sha256; cv=none; b=Eyf62jj7Y+YeYDSzR+uozaXG7psYAPb89dhf2rjlQBvEv8qGJhIssU5SmsbqWWXrUTk7sy vn3Wt9B6eQb8aegzFg1jv7uatXFrJJiz/gxDqmyN+igXeANHl8ZaIWg+yj/opSXJuHYfJg 7GIBNsU+kIHgoDP5mJoCY20ZJ7oTWkso98nbs9yDbUAM3aS8VgKUZbsoP6MR839KHsSlLc rCse+fIsP9Yb1ny2VqTXEN4jSvjKy0ZET7uSOxQ2O+4FzVwxvLDG81DeYA5MjR9yQx7U1X nMhJzCESnRgJT0uKJ/jdzqr14eTgz0LVk7zRC9IEK8qMpcN3lLm//t6zP96icg== 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 4QGlMB6WlBzMwf for ; Wed, 10 May 2023 19:24:06 +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 34AJO6i7088101 for ; Wed, 10 May 2023 19:24:06 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 34AJO6DV088100 for ports-bugs@FreeBSD.org; Wed, 10 May 2023 19:24:06 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 271355] textproc/p5-XML-LibXML: fix build with clang 16 Date: Wed, 10 May 2023 19:24:06 +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: perl@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=3D271355 Bug ID: 271355 Summary: textproc/p5-XML-LibXML: 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: perl@FreeBSD.org Reporter: dim@FreeBSD.org Assignee: perl@FreeBSD.org Flags: maintainer-feedback?(perl@FreeBSD.org) 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 passi= ng 'void (void *, void *, xmlChar *)' (aka 'void (void *, void *, unsigned char *)') to parameter of type 'xmlHashScanner' (aka 'void (*)(void *, void *, c= onst unsigned char *)') [-Wincompatible-function-pointer-types] xmlHashScan(r, PmmRegistryDumpHashScanner, NULL); ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/include/libxml2/libxml/hash.h:213:22: note: passing argument to parameter 'f' here xmlHashScanner f, ^ perl-libxml-mm.c:234:44: error: incompatible function pointer types passi= ng 'void (void *, xmlChar *)' (aka 'void (void *, unsigned char *)') to parame= ter of type 'xmlHashDeallocator' (aka 'void (*)(void *, const unsigned char *)') [-Wincompatible-function-pointer-types] if( xmlHashRemoveEntry(PmmREGISTRY, name, PmmRegistryHashDealloca= tor) ) ^~~~~~~~~~~~~~~~~~~~~~~= ~~~ /usr/local/include/libxml2/libxml/hash.h:160:47: note: passing argument to parameter 'f' here xmlHashDeallocator f); ^ perl-libxml-mm.c:301:38: error: incompatible function pointer types passi= ng '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 argument 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. --=20 You are receiving this mail because: You are the assignee for the bug.=