From nobody Sat Jun 17 12:31:54 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 4QjwQ32VX4z4f4Gl for ; Sat, 17 Jun 2023 12:31:55 +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 4QjwQ24NhHz4PCD for ; Sat, 17 Jun 2023 12:31:54 +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=1687005114; 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=z1In9GZztzg7wMVO5QT1qh/SYK0Y96KTXx1TMNiIN90=; b=wM7oPVyyFRbY8Eldngnk8RsRgvaLbqQ8Ab28lxypjaGQUdnYOkJXg8gignbsezEP4T7PCC mZh6hDrsL984qRMgBQyTorecmdWk4vED21K2s9CTr+gsx+Av+V8Z6qWBEHgUFyDLMfG5hi OR/wFh/3Ffzfocw5F+vyW9XrGbN4ALuw8zO9H7frENuJSDkIA1B069iCNIJ2xO1OawKQMQ FAHGWISvppbjR+bJM+PZUaCXdLQvFSQDDRH7ZgHDmE39FSiKG1q5Y+eQZg4F7HqS8uOX9C orEjmjov+5YaqRSU6cmfJChus6h7qxBfUuL4WVltk6QMmDEd5AUTHt14ljAaHw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1687005114; a=rsa-sha256; cv=none; b=CNYsZudw16RtpV3PgVMVWDIm2zFUv/Lrg5CI2TfQ+txHXTfhUQXXLVG/xNXDoQpR+zsn9P 88Y7Y/hppX2/vBO6m5bFDbhwvUJbBvGZdSgEdp07q+gbcxcuyn7yIs9DpuDUx80KROf3vb idzwd7aYHmw8gqfzUqg1QkWESzZCq1BrYDYVfKyX4BZ30WLehsLLbxiSl5AWQDoXM6cs9P auZtxO6qHHHEz/tHeAxGw0T/W6622fDY3cwu69ZeCgD5zdSzMmS5KP9U19gjLuswfxpEpC bWAlRkji13V6orOsvLy29Dwde3g36w7Tv8sUHnp84IqnYhpLpRAuOoZ5pQqQeA== 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 4QjwQ23Vw7z18kh for ; Sat, 17 Jun 2023 12:31:54 +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 35HCVsGh050362 for ; Sat, 17 Jun 2023 12:31:54 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 35HCVsAG050361 for ports-bugs@FreeBSD.org; Sat, 17 Jun 2023 12:31:54 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 272037] math/vtk9: fix build with clang 16 Date: Sat, 17 Jun 2023 12:31:54 +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: yuri@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=3D272037 Bug ID: 272037 Summary: math/vtk9: 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: yuri@freebsd.org Reporter: dim@FreeBSD.org Assignee: yuri@freebsd.org Flags: maintainer-feedback?(yuri@freebsd.org) Clang 16 has a new error about incompatible function types, which shows up when building math/vtk9: =20 /wrkdirs/usr/ports/math/vtk9/work/VTK-9.2.2/ThirdParty/cgns/vtkcgns/src/adf= h/ADFH.c:1274:93: error: incompatible function pointer types passing 'herr_t (hid_t, const ch= ar *, const H5L_info1_t *, void *)' (aka 'int (long, const char *, const H5L_info1_t *, void *)') to parameter of type 'H5L_iterate2_t' (aka 'int (*)(long, const char *, const H5L_info2_t *, void *)') [-Wincompatible-function-pointer-types] if (! is_link(id)) H5Literate_by_name2(id, name, H5_INDEX_CRT_ORDER, H5_ITER_INC, NULL, delete_children, data, H5P_DEFAULT); =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/H5Lpublic.h:992:87: note: passing argument to parameter 'op' here H5_iter_order_t order, hsize_t *idx, H5L_iterate2_t op, void *op_data, =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 ^ =20 /wrkdirs/usr/ports/math/vtk9/work/VTK-9.2.2/ThirdParty/cgns/vtkcgns/src/adf= h/ADFH.c:1434:64: error: incompatible function pointer types passing 'herr_t (hid_t, const ch= ar *, const H5L_info1_t *, void *)' (aka 'int (long, const char *, const H5L_info1_t *, void *)') to parameter of type 'H5L_iterate2_t' (aka 'int (*)(long, const char *, const H5L_info2_t *, void *)') [-Wincompatible-function-pointer-types] H5Literate2(gid, H5_INDEX_CRT_ORDER, H5_ITER_NATIVE, NULL, fix_dimensions, NULL); ^~~~~~~~~~= ~~~~ /usr/local/include/H5Lpublic.h:926:42: note: passing argument to parameter 'op' here H5L_iterate2_t op, void *op_data); ^ and a bunch more of these. The problem is that the H5Literate_by_name2() function (from /usr/local/include/H5Lpublic.h) is being called with an incorrect argument for the "op" parameter, which should be of type "H5L_iterate2_t" instead. In turn, "H5L_iterate2_t" is a function type, and requires the function's "info" parameter to be of type "const H5L_info2_t *". Redefine "H5L_info_t" to mean "H5L_info2_t" to work around this problem, otherwise a lot of function definitions would have to be adjusted. --=20 You are receiving this mail because: You are the assignee for the bug.=