Skip to content

Building FreeBSD port archivers/py-lzma fails with error #78

Open
@opsec

Description

@opsec

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions