fancycode / pylzma

Python bindings for the LZMA library

Home Page:http://www.joachim-bauch.de/projects/pylzma/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Building FreeBSD port archivers/py-lzma fails with error

opsec opened this issue · comments

commented

This is the error:

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 patch can be found here:

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=269833