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 4QGlMC2Zbxz4BJyC for <perl@mlmmj.nyi.freebsd.org>; 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 4QGlMB6D10z3Dwh for <perl@FreeBSD.org>; Wed, 10 May 2023 19:24:06 +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=1683746646; 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=4vtLxA7FN1ndvxYmrms107nap3pjK4chVdtrXlGelBk=; b=wRIowZsYr4YfaZBhFwOfAJ+3GddYjO26UMamTtkk0E+TbkY0mRRMRQp9sP/TwIAI8/kRYV t0almdo4FD39RswppCvK4hNam7DSVB3YhvPN23A+wB3Nksxd+oZ9gpYi4xrZ1G3PfP+0AA uxF/5iLg44YUGkU1Wk16uOshlbaNmltWaoYJxK9V8NBLEFJBA7Sl/+g/1Eg13vrVy2B/nL 6KONSpOIoj1BNB66Q/YV29N+v0RUvCGZVPqbTrb94beJ2jSdPmm6i+4c4qzfKtiH1/4nF7 WP+yiGkv0si+tjkXEinWYXfbxGgc1wbF33KMZ4Sz5OG2KBj7V7USWGxIEr97DQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1683746646; a=rsa-sha256; cv=none; b=Lftin6SjsXnlXg2GIksh7xxxU2DjmdPaPJ1sXjgkV5cEoFkk78t95Ac0JYb3Z+QS9CVQCX VafvOmXA0vXJ+hr4Wen/96svTwvsOgDjKY/vQPswL5C0n0uuhORqbKVUrP8xyXsVJOWZPU OJnMAt2F431lvVJvzVZ3B95PHl9dCcTkgHAnMIQEQUFgevgT4+hjlDjdqPhlzZhJjQrEZs 4cDLj/VLI3JuAWK0DVvliIZAnUN4t2VAT0NMw5aY2PN9TRd4dpEfwh+kxZd1KKLJQoWEUw Powwp08jv8fdOjgAk3JgZcdi6aHW1PVIlmb3C2PvKxoQbssxjgkHzi+vbzqeMA== 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 4QGlMB5J0mzMwd for <perl@FreeBSD.org>; 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 34AJO66s088097 for <perl@FreeBSD.org>; 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 34AJO6cQ088096 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 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" From: bugzilla-noreply@freebsd.org To: perl@FreeBSD.org Subject: maintainer-feedback requested: [Bug 271355] textproc/p5-XML-LibXML: fix build with clang 16 Date: Wed, 10 May 2023 19:24:06 +0000 X-Bugzilla-Type: request 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: X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: perl@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? Message-ID: <bug-271355-14331-VOpgtKxdQO@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-271355-14331@https.bugs.freebsd.org/bugzilla/> References: <bug-271355-14331@https.bugs.freebsd.org/bugzilla/> X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: maintainer of a number of perl-related ports <freebsd-perl.freebsd.org> List-Archive: https://lists.freebsd.org/archives/freebsd-perl List-Help: <mailto:perl+help@freebsd.org> List-Post: <mailto:perl@freebsd.org> List-Subscribe: <mailto:perl+subscribe@freebsd.org> List-Unsubscribe: <mailto:perl+unsubscribe@freebsd.org> Sender: owner-freebsd-perl@freebsd.org X-BeenThere: freebsd-perl@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N Bugzilla Automation <bugzilla@FreeBSD.org> has asked freebsd-perl (Nobody) <perl@FreeBSD.org> for maintainer-feedback: Bug 271355: textproc/p5-XML-LibXML: fix build with clang 16 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D271355 --- Description --- 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, PmmRegistryHashDeallocator) ) ^~~~~~~~~~~~~~~~~~~~~~~~~~ /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.