[Bug 268233] sysutils/py-psutil: fix build with clang 15
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 07 Dec 2022 17:57:30 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=268233 Bug ID: 268233 Summary: sysutils/py-psutil: fix build with clang 15 Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: Individual Port(s) Assignee: sunpoet@FreeBSD.org Reporter: dim@FreeBSD.org Assignee: sunpoet@FreeBSD.org Flags: maintainer-feedback?(sunpoet@FreeBSD.org) During an exp-run for llvm 15 (see bug 265425), it turned out that sysutils/py-psutil failed to build with clang 15: psutil/arch/freebsd/sys_socks.c:70:25: warning: comparison between pointer and integer ('kvaddr_t' (aka 'unsigned long long') and 'void *') [-Wpointer-integer-compare] if (xf->xf_data == sock) ~~~~~~~~~~~ ^ ~~~~ psutil/arch/freebsd/sys_socks.c:182:40: error: incompatible integer to pointer conversion passing 'kvaddr_t' (aka 'unsigned long long') to parameter of type 'void *' [-Wint-conversion] xf = psutil_get_file_from_sock(so->xso_so); ^~~~~~~~~~ psutil/arch/freebsd/sys_socks.c:65:33: note: passing argument to parameter 'sock' here psutil_get_file_from_sock(void *sock) { ^ psutil/arch/freebsd/sys_socks.c:303:40: error: incompatible integer to pointer conversion passing 'kvaddr_t' (aka 'unsigned long long') to parameter of type 'void *' [-Wint-conversion] xf = psutil_get_file_from_sock(xup->xu_socket.xso_so); ^~~~~~~~~~~~~~~~~~~~~ psutil/arch/freebsd/sys_socks.c:65:33: note: passing argument to parameter 'sock' here psutil_get_file_from_sock(void *sock) { ^ 1 warning and 2 errors generated. This can be fixed by adjusting the psutil_get_file_from_sock() function to take a kvaddr_t instead of a void pointer. -- You are receiving this mail because: You are the assignee for the bug.