[Bug 265868] devel/py-libzfs: does not build on 12.3

From: <bugzilla-noreply_at_freebsd.org>
Date: Mon, 15 Aug 2022 23:52:40 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=265868

            Bug ID: 265868
           Summary: devel/py-libzfs: does not build on 12.3
           Product: Ports & Packages
           Version: Latest
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: freqlabs@FreeBSD.org
          Reporter: vas@sibptus.ru
          Assignee: freqlabs@FreeBSD.org
             Flags: maintainer-feedback?(freqlabs@FreeBSD.org)

devel/py-libzfs (a requirement for iocage) does not build with the following
error. A complete poudriere log is attached.

                                                   ^
libzfs.c:83690:5: warning: code will never be executed [-Wunreachable-code]
    PyErr_Format(PyExc_ValueError, "Assignment to slice of wrong length,
expected %" CYTHON_FORMAT_SSIZE_T "d, got %" CYTHON_FORMAT_SSIZE_T "d",
(Py_ssize_t)((ZFS_MAXPROPLEN + 1)), (Py_ssize_t)((ZFS_MAXPROPLEN + 1)));
    ^~~~~~~~~~~~
libzfs.c:83677:5: warning: code will never be executed [-Wunreachable-code]
    PyErr_Format(PyExc_ValueError, "Assignment to slice of wrong length,
expected %" CYTHON_FORMAT_SSIZE_T "d, got %" CYTHON_FORMAT_SSIZE_T "d",
(Py_ssize_t)((__pyx_e_6libzfs_MAX_DATASET_NAME_LEN + 1)),
(Py_ssize_t)((__pyx_e_6libzfs_MAX_DATASET_NAME_LEN + 1)));
    ^~~~~~~~~~~~
libzfs.c:83655:5: warning: code will never be executed [-Wunreachable-code]
    PyErr_Format(PyExc_ValueError, "Assignment to slice of wrong length,
expected %" CYTHON_FORMAT_SSIZE_T "d, got %" CYTHON_FORMAT_SSIZE_T "d",
(Py_ssize_t)((ZFS_MAXPROPLEN + 1)), (Py_ssize_t)((ZFS_MAXPROPLEN + 1)));
    ^~~~~~~~~~~~
libzfs.c:84163:5: warning: code will never be executed [-Wunreachable-code]
    PyErr_Format(PyExc_ValueError, "Assignment to slice of wrong length,
expected %" CYTHON_FORMAT_SSIZE_T "d, got %" CYTHON_FORMAT_SSIZE_T "d",
(Py_ssize_t)((ZFS_MAXPROPLEN + 1)), (Py_ssize_t)((ZFS_MAXPROPLEN + 1)));
    ^~~~~~~~~~~~
libzfs.c:84150:5: warning: code will never be executed [-Wunreachable-code]
    PyErr_Format(PyExc_ValueError, "Assignment to slice of wrong length,
expected %" CYTHON_FORMAT_SSIZE_T "d, got %" CYTHON_FORMAT_SSIZE_T "d",
(Py_ssize_t)((__pyx_e_6libzfs_MAX_DATASET_NAME_LEN + 1)),
(Py_ssize_t)((__pyx_e_6libzfs_MAX_DATASET_NAME_LEN + 1)));
    ^~~~~~~~~~~~
libzfs.c:84128:5: warning: code will never be executed [-Wunreachable-code]
    PyErr_Format(PyExc_ValueError, "Assignment to slice of wrong length,
expected %" CYTHON_FORMAT_SSIZE_T "d, got %" CYTHON_FORMAT_SSIZE_T "d",
(Py_ssize_t)((ZFS_MAXPROPLEN + 1)), (Py_ssize_t)((ZFS_MAXPROPLEN + 1)));
    ^~~~~~~~~~~~
libzfs.c:98209:47: error: use of undeclared identifier 'ZPOOL_STATUS_ERRATA';
did you mean 'ZPOOL_STATUS_OK'?
  __pyx_t_1 = __Pyx_PyInt_From_zpool_status_t(ZPOOL_STATUS_ERRATA); if
(unlikely(!__pyx_t_1)) __PYX_ERR(1, 193, __pyx_L1_error)
                                              ^~~~~~~~~~~~~~~~~~~
                                              ZPOOL_STATUS_OK
/usr/src/cddl/contrib/opensolaris/lib/libzfs/common/libzfs.h:374:2: note:
'ZPOOL_STATUS_OK' declared here
        ZPOOL_STATUS_OK
        ^
libzfs.c:98329:47: error: use of undeclared identifier
'ZPOOL_STATUS_REBUILDING'; did you mean 'ZPOOL_STATUS_RESILVERING'?
  __pyx_t_1 = __Pyx_PyInt_From_zpool_status_t(ZPOOL_STATUS_REBUILDING); if
(unlikely(!__pyx_t_1)) __PYX_ERR(1, 203, __pyx_L1_error)
                                              ^~~~~~~~~~~~~~~~~~~~~~~
                                              ZPOOL_STATUS_RESILVERING
/usr/src/cddl/contrib/opensolaris/lib/libzfs/common/libzfs.h:366:2: note:
'ZPOOL_STATUS_RESILVERING' declared here
        ZPOOL_STATUS_RESILVERING,       /* device being resilvered */
        ^
libzfs.c:98341:47: error: use of undeclared identifier
'ZPOOL_STATUS_REBUILD_SCRUB'
  __pyx_t_1 = __Pyx_PyInt_From_zpool_status_t(ZPOOL_STATUS_REBUILD_SCRUB); if
(unlikely(!__pyx_t_1)) __PYX_ERR(1, 204, __pyx_L1_error)
                                              ^
libzfs.c:98365:47: error: use of undeclared identifier
'ZPOOL_STATUS_COMPATIBILITY_ERR'
  __pyx_t_1 = __Pyx_PyInt_From_zpool_status_t(ZPOOL_STATUS_COMPATIBILITY_ERR);
if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 206, __pyx_L1_error)
                                              ^
libzfs.c:98377:47: error: use of undeclared identifier
'ZPOOL_STATUS_INCOMPATIBLE_FEAT'
  __pyx_t_1 = __Pyx_PyInt_From_zpool_status_t(ZPOOL_STATUS_INCOMPATIBLE_FEAT);
if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 207, __pyx_L1_error)
                                              ^
11 warnings and 5 errors generated.
error: command '/usr/bin/cc' failed with exit code 1
*** Error code 1

Stop.
make: stopped in /usr/ports/devel/py-libzfs
=>> Cleaning up wrkdir
===>  Cleaning for py39-libzfs-1.1.2022071900
build of devel/py-libzfs | py39-libzfs-1.1.2022071900 ended at Tue Aug 16
04:57:24 +07 2022
build time: 00:00:51
!!! build failure encountered !!!

-- 
You are receiving this mail because:
You are the assignee for the bug.