Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 29 Sep 2017 09:58:05 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 222679] devel/py-libzfs: Build fails on FreeBSD 12-CURRENT after r323355
Message-ID:  <bug-222679-13@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D222679

            Bug ID: 222679
           Summary: devel/py-libzfs: Build fails on FreeBSD 12-CURRENT
                    after r323355
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: wg@FreeBSD.org
          Reporter: woodsb02@freebsd.org
             Flags: maintainer-feedback?(wg@FreeBSD.org)
          Assignee: wg@FreeBSD.org

Building the port devel/py-libzfs on FreeBSD 12-CURRENT after r323355 fails
with the following errors:

=3D=3D=3D>  Building for py36-libzfs-1.0.20170814
WARNING: '' not a valid package name; please use only .-separated package n=
ames
in setup.py
running build
running build_py
running build_ext
cythoning libzfs.pyx to libzfs.c
building 'libzfs' extension
creating build
creating build/temp.freebsd-12.0-CURRENT-amd64-3.6
cc -DNDEBUG -O2 -pipe -fstack-protector -fno-strict-aliasing -fPIC
-I/usr/src/cddl/lib/libumem -I/usr/src/sys/cddl/compat/opensolaris/
-I/usr/src/sys/cddl/compat/opensolaris
-I/usr/src/cddl/compat/opensolaris/include
-I/usr/src/cddl/compat/opensolaris/lib/libumem
-I/usr/src/cddl/contrib/opensolaris/lib/libzpool/common
-I/usr/src/sys/cddl/contrib/opensolaris/common/zfs
-I/usr/src/sys/cddl/contrib/opensolaris/uts/common/fs/zfs
-I/usr/src/sys/cddl/contrib/opensolaris/uts/common/sys
-I/usr/src/cddl/contrib/opensolaris/head
-I/usr/src/sys/cddl/contrib/opensolaris/uts/common
-I/usr/src/cddl/contrib/opensolaris/lib/libnvpair
-I/usr/src/cddl/contrib/opensolaris/lib/libuutil/common
-I/usr/src/cddl/contrib/opensolaris/lib/libzfs/common
-I/usr/src/cddl/contrib/opensolaris/lib/libzfs_core/common
-I/usr/local/include/python3.6m -c libzfs.c -o
build/temp.freebsd-12.0-CURRENT-amd64-3.6/libzfs.o -DNEED_SOLARIS_BOOLEAN
-D_XPG6 -g -O0
libzfs.c:20069:73: warning: incompatible pointer to integer conversion pass=
ing
'PyObject *' (aka 'struct _object *') to parameter of type 'zfs_type_t'
[-Wint-conversion]
  __pyx_v_handle =3D zfs_path_to_zhandle(__pyx_v_self->handle, __pyx_t_1,
__pyx_t_2);
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20
^~~~~~~~~
/usr/src/cddl/contrib/opensolaris/lib/libzfs/common/libzfs.h:706:79: note:
passing argument to parameter here
extern zfs_handle_t *zfs_path_to_zhandle(libzfs_handle_t *, char *,
zfs_type_t);
                                                                           =
   ^
libzfs.c:44866:71: error: too few arguments to function call, expected 3, h=
ave
2
        __pyx_v_ret =3D zpool_scan(__pyx_v_self->handle, POOL_SCAN_SCRUB);
                      ~~~~~~~~~~                                      ^
/usr/src/cddl/contrib/opensolaris/lib/libzfs/common/libzfs.h:246:1: note:
'zpool_scan' declared here
extern int zpool_scan(zpool_handle_t *, pool_scan_func_t, pool_scrub_cmd_t);
^
libzfs.c:45061:70: error: too few arguments to function call, expected 3, h=
ave
2
        __pyx_v_ret =3D zpool_scan(__pyx_v_self->handle, POOL_SCAN_NONE);
                      ~~~~~~~~~~                                     ^
/usr/src/cddl/contrib/opensolaris/lib/libzfs/common/libzfs.h:246:1: note:
'zpool_scan' declared here
extern int zpool_scan(zpool_handle_t *, pool_scan_func_t, pool_scrub_cmd_t);
^


This is because the ability to pause a zpool scrub was added in r323355 whi=
ch
changed the libzfs API, as can be seen here:
https://svnweb.freebsd.org/base/head/cddl/contrib/opensolaris/lib/libzfs/co=
mmon/libzfs.h?r1=3D323355&r2=3D323354&pathrev=3D323355
https://svnweb.freebsd.org/base/head/sys/cddl/contrib/opensolaris/uts/commo=
n/sys/fs/zfs.h?r1=3D323355&r2=3D323354&pathrev=3D323355

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-222679-13>