From nobody Wed May 10 19:24:06 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 4QGlMC2Zf0z4BJx4 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 4QGlMC12gvz3DfS 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=bD0gC+e2ggsVN6tF3IhKz8rgAFC/qMWkK1uu8w8rBaoCgulkfP5/Npmy+CetU7Yf6PW+xV AkPrzf2ew+7jGS+2dmjYYt33tgHN4tu8UdF/Drmxo/oSMJHkpxIMB4sFx++tIYLwpBrxPY MSgk1uQpPciacXY9v8uC3hrfaCyUhSS0eLdTzqN0eupnZmNUH24wP1TBKg41g7/PgaghOx 6a7lQDXvABp4wZhvw9dSgIUiGZ3ma/Ee07o4QhBzxAyeHCZaCnQvvlbxjiOIk4nBGrgXzE 25ySgvvZmy0+CEF6a4Zj7CJCn2YgkHDgBvGeJJw1TXucQUpvGTdnYRb+ofsALQ== 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=wJmNygmGDZprTvxkVQEHlM1Q82e1H5PXqMiBYpsC2i1/tanqWsi6d1o/N6d5bzprD5byeY x0C/kAoRkcKroGK+TF6WQKZy1EOgPKPDj1jvgib65UkTU0fLOxi9Tl8SH7Z8F6hqmLx8GM /oj0Pk+gKaK7x+GvzQFAqwJ3wAVzGg2O/t3uRkcPmN3eSlM72aqXAi35zvSkWwfht3fDu5 LokjIVvI11ms7CDQSaeOvfJjzEo/L0PLCXssuzt5nj11Grhmy1aq6z7ONRgz/EA8rWxI4V dHfnT4iFGj5TdZtlGZooOirURnHoDXCmZQWeu7Jy+zIUplT77oqJdsx7bShSSg== 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 4QGlMC05jPzN7b for ; Wed, 10 May 2023 19:24:07 +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 34AJO6Wf088105 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 34AJO6sn088104 for perl@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: perl@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: 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 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.=