Date: Sat, 17 Jun 2023 12:31:54 +0000 From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 272037] math/vtk9: fix build with clang 16 Message-ID: <bug-272037-7788@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
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.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-272037-7788>