Closed mexicarne closed 8 years ago
Hmm. Looks like this may be resolved in d55ce40f5e098ac1fa9564623bfe28afa5c9045b. This commit changing the number of arguments to zfs_receive. So, any plans to update FreeBSD port to freshier github revision?
@williambr can you update the port?
If I do that it will break for 10, no?
Maybe we first need a better plan to support multiple versions?
Not sure, I'll test on 10.2 and let you know.
No it should still work on 10 @jceel do you confirm?
Sadly, it doesn't work at least in 10.1 for the same zfs_receive call. So it should be called with variable arguments number conditionally.
libzfs.c:35856:96: error: too many arguments to function call, expected 5, have 6
__pyx_t_2 = ((zfs_receive(__pyx_v_handle, __pyx_t_5, __pyx_t_6, (&__pyx_v_flags), __pyx_t_7, NULL) != 0) != 0);
~~~~~~~~~~~ ^~~~
/usr/include/sys/_null.h:32:14: note: expanded from macro 'NULL'
#define NULL ((void *)0)
^~~~~~~~~~~
/usr/src/cddl/contrib/opensolaris/lib/libzfs/common/libzfs.h:668:1: note: 'zfs_receive' declared here
extern int zfs_receive(libzfs_handle_t *, const char *, recvflags_t *,
Hmm, it works on 10.2 for me. Any ideas what value of uname -K needs to be put in conditional check? :)
It doesn't work on 10.2 for me, same errors as @mexicarne
Committed a fix to 10.2 and then the newer version port to freebsd.
Hi,
looks like something changed in FreeBSD ZFS so libzfs cannot be built on 11-CURRENT anymore:
It's 100% reproducible on svn revision 289655 of FreeBSD source. Would you please add some workaround for this error? Thanks.