[Bug 269833] archivers/py-lzma: fix build on 14.0
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 26 Feb 2023 11:27:30 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=269833 Bug ID: 269833 Summary: archivers/py-lzma: fix build on 14.0 Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: sbz@FreeBSD.org Reporter: pi@FreeBSD.org Assignee: sbz@FreeBSD.org Flags: maintainer-feedback?(sbz@FreeBSD.org) Created attachment 240420 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=240420&action=edit patch Fails to build with error like this: cc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -fPIC -DPY_SSIZE_T_CLEAN=1 -DWITH_COMPAT=1 -DPYLZMA_VERSION=0.5.0 -D_7ZIP_ST=1 -Isrc/sdk/C -I/usr/local/include/python3.9 -c src/pylzma/pylzma_aes.c -o build/temp.freebsd-14.0-CURRENT-amd64-cpython-39/src/pylzma/pylzma_aes.o src/pylzma/pylzma_aes.c:158:5: error: incompatible pointer to integer conversion initializing 'Py_ssize_t' (aka 'long') with an expression of type 'void *' [-Wint-conversion] NULL, /* printfunc tp_print; */ ^~~~ /usr/include/sys/_null.h:34:14: note: expanded from macro 'NULL' #define NULL ((void *)0) ^~~~~~~~~~~ 1 error generated. A small patch seems to fix this. -- You are receiving this mail because: You are the assignee for the bug.