Unable to build zectl
sonicaj opened this issue · 1 comments
Hi. I have been researching a good boot environments manager for ZoL and have narrowed it down to zectl. We think it's the most close we have comparing with beadm
.
I wanted to build zectl to try it out and see where we are at but I have been unable to build it.
I have been following the steps laid out in BUILDING doc.
I think there might be an issue with zfs version as well. Does zectl
support following zfs version ?
zfs-0.8.3-2
zfs-kmod-0.8.3-2
I had installed zfs headers via libzfslinux-dev
package, and my OS is debian with linux kernel at 5.6.0-1-amd64
.
Can you please let me know if I am possibly doing it wrong ? Looking forward to hearing from you. Thank you
Following is the complete output from the cmake command.
root@waqar:~/zectl/build# cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DPLUGINS_DIRECTORY=/usr/share/zectl/libze_plugin
Searching for required ZFS include directories
-- Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE)
Found zfs include dir in /usr/include/libzfs
Found zfs include directories in /usr/include/libzfs
Searching for ZFS libraries
libzfs library found at: /usr/lib/libzfs.so
libzpool library found at: /usr/lib/libzpool.so
libzfs_core library found at: /usr/lib/libzfs_core.so
libnvpair library found at: /usr/lib/libnvpair.so
libuutil library found at: /usr/lib/libuutil.so
PLUGINS_DIRECTORY=/usr/share/zectl/libze_plugin
PLUGINS_DIRECTORY=/usr/share/zectl/libze_plugin
-- Configuring done
-- Generating done
-- Build files have been written to: /root/zectl/build
root@truenas:~/zectl/build# make
Searching for required ZFS include directories
-- Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE)
Found zfs include dir in /usr/include/libzfs
Found zfs include directories in /usr/include/libzfs
Searching for ZFS libraries
libzfs library found at: /usr/lib/libzfs.so
libzpool library found at: /usr/lib/libzpool.so
libzfs_core library found at: /usr/lib/libzfs_core.so
libnvpair library found at: /usr/lib/libnvpair.so
libuutil library found at: /usr/lib/libuutil.so
PLUGINS_DIRECTORY=/root/zectl/build/lib/libze/../libze_plugin
PLUGINS_DIRECTORY=/root/zectl/build/lib/libze_plugin/../libze_plugin
-- Configuring done
-- Generating done
-- Build files have been written to: /root/zectl/build
Scanning dependencies of target libze
make[2]: Warning: File '../lib/libze/libze.c' has modification time 18252 s in the future
[ 4%] Building C object lib/libze/CMakeFiles/libze.dir/libze.c.o
In file included from /usr/include/libzfs/libnvpair.h:29,
from /usr/include/libzfs/libzfs.h:37,
from /root/zectl/include/libze/libze.h:4,
from /root/zectl/lib/libze/libze.c:6:
/usr/include/libzfs/sys/nvpair.h:87:2: error: unknown type name 'uint32_t'
87 | uint32_t nvl_nvflag; /* persistent flags */
| ^~~~~~~~
/usr/include/libzfs/sys/nvpair.h:88:2: error: unknown type name 'uint64_t'
88 | uint64_t nvl_priv; /* ptr to private data if not packed */
| ^~~~~~~~
/usr/include/libzfs/sys/nvpair.h:89:2: error: unknown type name 'uint32_t'
89 | uint32_t nvl_flag;
| ^~~~~~~~
/usr/include/libzfs/sys/nvpair.h:131:34: error: unknown type name 'va_list'
131 | int (*nv_ao_init)(nv_alloc_t *, va_list);
| ^~~~~~~
/usr/include/libzfs/sys/nvpair.h:32:1: note: 'va_list' is defined in header '<stdarg.h>'; did you forget to '#include <stdarg.h>'?
31 | #include <sys/errno.h>
+++ |+#include <stdarg.h>
32 |
/usr/include/libzfs/sys/nvpair.h:151:31: error: unknown type name 'uint_t'; did you mean 'u_int8_t'?
151 | int nvlist_alloc(nvlist_t **, uint_t, int);
| ^~~~~~
| u_int8_t
/usr/include/libzfs/sys/nvpair.h:159:1: error: unknown type name 'uint_t'; did you mean 'u_int8_t'?
159 | uint_t nvlist_nvflag(nvlist_t *);
| ^~~~~~
| u_int8_t
/usr/include/libzfs/sys/nvpair.h:161:32: error: unknown type name 'uint_t'; did you mean 'u_int8_t'?
161 | int nvlist_xalloc(nvlist_t **, uint_t, nv_alloc_t *);
| ^~~~~~
| u_int8_t
/usr/include/libzfs/sys/nvpair.h:169:56: error: unknown type name 'boolean_t'
169 | int nvlist_add_boolean_value(nvlist_t *, const char *, boolean_t);
| ^~~~~~~~~
/usr/include/libzfs/sys/nvpair.h:170:47: error: unknown type name 'uchar_t'
170 | int nvlist_add_byte(nvlist_t *, const char *, uchar_t);
| ^~~~~~~
/usr/include/libzfs/sys/nvpair.h:172:48: error: unknown type name 'uint8_t'; did you mean 'u_int8_t'?
172 | int nvlist_add_uint8(nvlist_t *, const char *, uint8_t);
| ^~~~~~~
| u_int8_t
/usr/include/libzfs/sys/nvpair.h:174:49: error: unknown type name 'uint16_t'; did you mean 'u_int16_t'?
174 | int nvlist_add_uint16(nvlist_t *, const char *, uint16_t);
| ^~~~~~~~
| u_int16_t
/usr/include/libzfs/sys/nvpair.h:176:49: error: unknown type name 'uint32_t'; did you mean 'u_int32_t'?
176 | int nvlist_add_uint32(nvlist_t *, const char *, uint32_t);
| ^~~~~~~~
| u_int32_t
/usr/include/libzfs/sys/nvpair.h:178:49: error: unknown type name 'uint64_t'; did you mean 'u_int64_t'?
178 | int nvlist_add_uint64(nvlist_t *, const char *, uint64_t);
| ^~~~~~~~
| u_int64_t
/usr/include/libzfs/sys/nvpair.h:181:56: error: unknown type name 'boolean_t'
181 | int nvlist_add_boolean_array(nvlist_t *, const char *, boolean_t *, uint_t);
| ^~~~~~~~~
/usr/include/libzfs/sys/nvpair.h:181:69: error: unknown type name 'uint_t'; did you mean 'u_int8_t'?
181 | int nvlist_add_boolean_array(nvlist_t *, const char *, boolean_t *, uint_t);
| ^~~~~~
| u_int8_t
/usr/include/libzfs/sys/nvpair.h:182:53: error: unknown type name 'uchar_t'
182 | int nvlist_add_byte_array(nvlist_t *, const char *, uchar_t *, uint_t);
| ^~~~~~~
/usr/include/libzfs/sys/nvpair.h:182:64: error: unknown type name 'uint_t'; did you mean 'u_int8_t'?
182 | int nvlist_add_byte_array(nvlist_t *, const char *, uchar_t *, uint_t);
| ^~~~~~
| u_int8_t
/usr/include/libzfs/sys/nvpair.h:183:63: error: unknown type name 'uint_t'; did you mean 'u_int8_t'?
183 | int nvlist_add_int8_array(nvlist_t *, const char *, int8_t *, uint_t);
| ^~~~~~
| u_int8_t
/usr/include/libzfs/sys/nvpair.h:184:54: error: unknown type name 'uint8_t'; did you mean 'u_int8_t'?
184 | int nvlist_add_uint8_array(nvlist_t *, const char *, uint8_t *, uint_t);
| ^~~~~~~
| u_int8_t
/usr/include/libzfs/sys/nvpair.h:184:65: error: unknown type name 'uint_t'; did you mean 'u_int8_t'?
184 | int nvlist_add_uint8_array(nvlist_t *, const char *, uint8_t *, uint_t);
| ^~~~~~
| u_int8_t
/usr/include/libzfs/sys/nvpair.h:185:65: error: unknown type name 'uint_t'; did you mean 'u_int8_t'?
185 | int nvlist_add_int16_array(nvlist_t *, const char *, int16_t *, uint_t);
| ^~~~~~
| u_int8_t
/usr/include/libzfs/sys/nvpair.h:186:55: error: unknown type name 'uint16_t'; did you mean 'u_int16_t'?
186 | int nvlist_add_uint16_array(nvlist_t *, const char *, uint16_t *, uint_t);
| ^~~~~~~~
| u_int16_t
/usr/include/libzfs/sys/nvpair.h:186:67: error: unknown type name 'uint_t'; did you mean 'u_int8_t'?
186 | int nvlist_add_uint16_array(nvlist_t *, const char *, uint16_t *, uint_t);
| ^~~~~~
| u_int8_t
/usr/include/libzfs/sys/nvpair.h:187:65: error: unknown type name 'uint_t'; did you mean 'u_int8_t'?
187 | int nvlist_add_int32_array(nvlist_t *, const char *, int32_t *, uint_t);
| ^~~~~~
| u_int8_t
/usr/include/libzfs/sys/nvpair.h:188:55: error: unknown type name 'uint32_t'; did you mean 'u_int32_t'?
188 | int nvlist_add_uint32_array(nvlist_t *, const char *, uint32_t *, uint_t);
| ^~~~~~~~
| u_int32_t
/usr/include/libzfs/sys/nvpair.h:188:67: error: unknown type name 'uint_t'; did you mean 'u_int8_t'?
188 | int nvlist_add_uint32_array(nvlist_t *, const char *, uint32_t *, uint_t);
| ^~~~~~
| u_int8_t
/usr/include/libzfs/sys/nvpair.h:189:65: error: unknown type name 'uint_t'; did you mean 'u_int8_t'?
189 | int nvlist_add_int64_array(nvlist_t *, const char *, int64_t *, uint_t);
| ^~~~~~
| u_int8_t
/usr/include/libzfs/sys/nvpair.h:190:55: error: unknown type name 'uint64_t'; did you mean 'u_int64_t'?
190 | int nvlist_add_uint64_array(nvlist_t *, const char *, uint64_t *, uint_t);
| ^~~~~~~~
| u_int64_t
/usr/include/libzfs/sys/nvpair.h:190:67: error: unknown type name 'uint_t'; did you mean 'u_int8_t'?
190 | int nvlist_add_uint64_array(nvlist_t *, const char *, uint64_t *, uint_t);
| ^~~~~~
| u_int8_t
/usr/include/libzfs/sys/nvpair.h:191:70: error: unknown type name 'uint_t'; did you mean 'u_int8_t'?
191 | int nvlist_add_string_array(nvlist_t *, const char *, char *const *, uint_t);
| ^~~~~~
| u_int8_t
/usr/include/libzfs/sys/nvpair.h:192:68: error: unknown type name 'uint_t'; did you mean 'u_int8_t'?
192 | int nvlist_add_nvlist_array(nvlist_t *, const char *, nvlist_t **, uint_t);
| ^~~~~~
| u_int8_t
/usr/include/libzfs/sys/nvpair.h:193:49: error: unknown type name 'hrtime_t'; did you mean 'time_t'?
193 | int nvlist_add_hrtime(nvlist_t *, const char *, hrtime_t);
| ^~~~~~~~
| time_t
/usr/include/libzfs/sys/nvpair.h:203:59: error: unknown type name 'boolean_t'
203 | int nvlist_lookup_boolean_value(nvlist_t *, const char *, boolean_t *);
| ^~~~~~~~~
/usr/include/libzfs/sys/nvpair.h:204:50: error: unknown type name 'uchar_t'
204 | int nvlist_lookup_byte(nvlist_t *, const char *, uchar_t *);
| ^~~~~~~
/usr/include/libzfs/sys/nvpair.h:206:51: error: unknown type name 'uint8_t'; did you mean 'u_int8_t'?
206 | int nvlist_lookup_uint8(nvlist_t *, const char *, uint8_t *);
| ^~~~~~~
| u_int8_t
/usr/include/libzfs/sys/nvpair.h:208:52: error: unknown type name 'uint16_t'; did you mean 'u_int16_t'?
208 | int nvlist_lookup_uint16(nvlist_t *, const char *, uint16_t *);
| ^~~~~~~~
| u_int16_t
/usr/include/libzfs/sys/nvpair.h:210:52: error: unknown type name 'uint32_t'; did you mean 'u_int32_t'?
210 | int nvlist_lookup_uint32(nvlist_t *, const char *, uint32_t *);
| ^~~~~~~~
| u_int32_t
/usr/include/libzfs/sys/nvpair.h:212:52: error: unknown type name 'uint64_t'; did you mean 'u_int64_t'?
212 | int nvlist_lookup_uint64(nvlist_t *, const char *, uint64_t *);
| ^~~~~~~~
| u_int64_t
/usr/include/libzfs/sys/nvpair.h:216:5: error: unknown type name 'boolean_t'
216 | boolean_t **, uint_t *);
| ^~~~~~~~~
/usr/include/libzfs/sys/nvpair.h:216:19: error: unknown type name 'uint_t'; did you mean 'u_int8_t'?
216 | boolean_t **, uint_t *);
| ^~~~~~
| u_int8_t
/usr/include/libzfs/sys/nvpair.h:217:56: error: unknown type name 'uchar_t'
217 | int nvlist_lookup_byte_array(nvlist_t *, const char *, uchar_t **, uint_t *);
| ^~~~~~~
/usr/include/libzfs/sys/nvpair.h:217:68: error: unknown type name 'uint_t'; did you mean 'u_int8_t'?
217 | int nvlist_lookup_byte_array(nvlist_t *, const char *, uchar_t **, uint_t *);
| ^~~~~~
| u_int8_t
/usr/include/libzfs/sys/nvpair.h:218:67: error: unknown type name 'uint_t'; did you mean 'u_int8_t'?
218 | int nvlist_lookup_int8_array(nvlist_t *, const char *, int8_t **, uint_t *);
| ^~~~~~
| u_int8_t
/usr/include/libzfs/sys/nvpair.h:219:57: error: unknown type name 'uint8_t'; did you mean 'u_int8_t'?
219 | int nvlist_lookup_uint8_array(nvlist_t *, const char *, uint8_t **, uint_t *);
| ^~~~~~~
| u_int8_t
/usr/include/libzfs/sys/nvpair.h:219:69: error: unknown type name 'uint_t'; did you mean 'u_int8_t'?
219 | int nvlist_lookup_uint8_array(nvlist_t *, const char *, uint8_t **, uint_t *);
| ^~~~~~
| u_int8_t
/usr/include/libzfs/sys/nvpair.h:220:69: error: unknown type name 'uint_t'; did you mean 'u_int8_t'?
220 | int nvlist_lookup_int16_array(nvlist_t *, const char *, int16_t **, uint_t *);
| ^~~~~~
| u_int8_t
/usr/include/libzfs/sys/nvpair.h:221:58: error: unknown type name 'uint16_t'; did you mean 'u_int16_t'?
221 | int nvlist_lookup_uint16_array(nvlist_t *, const char *, uint16_t **, uint_t *);
| ^~~~~~~~
| u_int16_t
/usr/include/libzfs/sys/nvpair.h:221:71: error: unknown type name 'uint_t'; did you mean 'u_int8_t'?
221 | int nvlist_lookup_uint16_array(nvlist_t *, const char *, uint16_t **, uint_t *);
| ^~~~~~
| u_int8_t
/usr/include/libzfs/sys/nvpair.h:222:69: error: unknown type name 'uint_t'; did you mean 'u_int8_t'?
222 | int nvlist_lookup_int32_array(nvlist_t *, const char *, int32_t **, uint_t *);
| ^~~~~~
| u_int8_t
/usr/include/libzfs/sys/nvpair.h:223:58: error: unknown type name 'uint32_t'; did you mean 'u_int32_t'?
223 | int nvlist_lookup_uint32_array(nvlist_t *, const char *, uint32_t **, uint_t *);
| ^~~~~~~~
| u_int32_t
/usr/include/libzfs/sys/nvpair.h:223:71: error: unknown type name 'uint_t'; did you mean 'u_int8_t'?
223 | int nvlist_lookup_uint32_array(nvlist_t *, const char *, uint32_t **, uint_t *);
| ^~~~~~
| u_int8_t
/usr/include/libzfs/sys/nvpair.h:224:69: error: unknown type name 'uint_t'; did you mean 'u_int8_t'?
224 | int nvlist_lookup_int64_array(nvlist_t *, const char *, int64_t **, uint_t *);
| ^~~~~~
| u_int8_t
/usr/include/libzfs/sys/nvpair.h:225:58: error: unknown type name 'uint64_t'; did you mean 'u_int64_t'?
225 | int nvlist_lookup_uint64_array(nvlist_t *, const char *, uint64_t **, uint_t *);
| ^~~~~~~~
| u_int64_t
/usr/include/libzfs/sys/nvpair.h:225:71: error: unknown type name 'uint_t'; did you mean 'u_int8_t'?
225 | int nvlist_lookup_uint64_array(nvlist_t *, const char *, uint64_t **, uint_t *);
| ^~~~~~
| u_int8_t
/usr/include/libzfs/sys/nvpair.h:226:68: error: unknown type name 'uint_t'; did you mean 'u_int8_t'?
226 | int nvlist_lookup_string_array(nvlist_t *, const char *, char ***, uint_t *);
| ^~~~~~
| u_int8_t
/usr/include/libzfs/sys/nvpair.h:228:19: error: unknown type name 'uint_t'; did you mean 'u_int8_t'?
228 | nvlist_t ***, uint_t *);
| ^~~~~~
| u_int8_t
/usr/include/libzfs/sys/nvpair.h:229:52: error: unknown type name 'hrtime_t'; did you mean 'time_t'?
229 | int nvlist_lookup_hrtime(nvlist_t *, const char *, hrtime_t *);
| ^~~~~~~~
| time_t
/usr/include/libzfs/sys/nvpair.h:238:1: error: unknown type name 'boolean_t'
238 | boolean_t nvlist_exists(nvlist_t *, const char *);
| ^~~~~~~~~
/usr/include/libzfs/sys/nvpair.h:239:1: error: unknown type name 'boolean_t'
239 | boolean_t nvlist_empty(nvlist_t *);
| ^~~~~~~~~
/usr/include/libzfs/sys/nvpair.h:247:44: error: unknown type name 'boolean_t'
247 | int nvpair_value_boolean_value(nvpair_t *, boolean_t *);
| ^~~~~~~~~
/usr/include/libzfs/sys/nvpair.h:248:35: error: unknown type name 'uchar_t'
248 | int nvpair_value_byte(nvpair_t *, uchar_t *);
| ^~~~~~~
/usr/include/libzfs/sys/nvpair.h:250:36: error: unknown type name 'uint8_t'; did you mean 'u_int8_t'?
250 | int nvpair_value_uint8(nvpair_t *, uint8_t *);
| ^~~~~~~
| u_int8_t
/usr/include/libzfs/sys/nvpair.h:252:37: error: unknown type name 'uint16_t'; did you mean 'u_int16_t'?
252 | int nvpair_value_uint16(nvpair_t *, uint16_t *);
| ^~~~~~~~
| u_int16_t
/usr/include/libzfs/sys/nvpair.h:254:37: error: unknown type name 'uint32_t'; did you mean 'u_int32_t'?
254 | int nvpair_value_uint32(nvpair_t *, uint32_t *);
| ^~~~~~~~
| u_int32_t
/usr/include/libzfs/sys/nvpair.h:256:37: error: unknown type name 'uint64_t'; did you mean 'u_int64_t'?
256 | int nvpair_value_uint64(nvpair_t *, uint64_t *);
| ^~~~~~~~
| u_int64_t
/usr/include/libzfs/sys/nvpair.h:259:44: error: unknown type name 'boolean_t'
259 | int nvpair_value_boolean_array(nvpair_t *, boolean_t **, uint_t *);
| ^~~~~~~~~
/usr/include/libzfs/sys/nvpair.h:259:58: error: unknown type name 'uint_t'; did you mean 'u_int8_t'?
259 | int nvpair_value_boolean_array(nvpair_t *, boolean_t **, uint_t *);
| ^~~~~~
| u_int8_t
/usr/include/libzfs/sys/nvpair.h:260:41: error: unknown type name 'uchar_t'
260 | int nvpair_value_byte_array(nvpair_t *, uchar_t **, uint_t *);
| ^~~~~~~
/usr/include/libzfs/sys/nvpair.h:260:53: error: unknown type name 'uint_t'; did you mean 'u_int8_t'?
260 | int nvpair_value_byte_array(nvpair_t *, uchar_t **, uint_t *);
| ^~~~~~
| u_int8_t
/usr/include/libzfs/sys/nvpair.h:261:52: error: unknown type name 'uint_t'; did you mean 'u_int8_t'?
261 | int nvpair_value_int8_array(nvpair_t *, int8_t **, uint_t *);
| ^~~~~~
| u_int8_t
/usr/include/libzfs/sys/nvpair.h:262:42: error: unknown type name 'uint8_t'; did you mean 'u_int8_t'?
262 | int nvpair_value_uint8_array(nvpair_t *, uint8_t **, uint_t *);
| ^~~~~~~
| u_int8_t
/usr/include/libzfs/sys/nvpair.h:262:54: error: unknown type name 'uint_t'; did you mean 'u_int8_t'?
262 | int nvpair_value_uint8_array(nvpair_t *, uint8_t **, uint_t *);
| ^~~~~~
| u_int8_t
/usr/include/libzfs/sys/nvpair.h:263:54: error: unknown type name 'uint_t'; did you mean 'u_int8_t'?
263 | int nvpair_value_int16_array(nvpair_t *, int16_t **, uint_t *);
| ^~~~~~
| u_int8_t
/usr/include/libzfs/sys/nvpair.h:264:43: error: unknown type name 'uint16_t'; did you mean 'u_int16_t'?
264 | int nvpair_value_uint16_array(nvpair_t *, uint16_t **, uint_t *);
| ^~~~~~~~
| u_int16_t
/usr/include/libzfs/sys/nvpair.h:264:56: error: unknown type name 'uint_t'; did you mean 'u_int8_t'?
264 | int nvpair_value_uint16_array(nvpair_t *, uint16_t **, uint_t *);
| ^~~~~~
| u_int8_t
/usr/include/libzfs/sys/nvpair.h:265:54: error: unknown type name 'uint_t'; did you mean 'u_int8_t'?
265 | int nvpair_value_int32_array(nvpair_t *, int32_t **, uint_t *);
| ^~~~~~
| u_int8_t
/usr/include/libzfs/sys/nvpair.h:266:43: error: unknown type name 'uint32_t'; did you mean 'u_int32_t'?
266 | int nvpair_value_uint32_array(nvpair_t *, uint32_t **, uint_t *);
| ^~~~~~~~
| u_int32_t
/usr/include/libzfs/sys/nvpair.h:266:56: error: unknown type name 'uint_t'; did you mean 'u_int8_t'?
266 | int nvpair_value_uint32_array(nvpair_t *, uint32_t **, uint_t *);
| ^~~~~~
| u_int8_t
/usr/include/libzfs/sys/nvpair.h:267:54: error: unknown type name 'uint_t'; did you mean 'u_int8_t'?
267 | int nvpair_value_int64_array(nvpair_t *, int64_t **, uint_t *);
| ^~~~~~
| u_int8_t
/usr/include/libzfs/sys/nvpair.h:268:43: error: unknown type name 'uint64_t'; did you mean 'u_int64_t'?
268 | int nvpair_value_uint64_array(nvpair_t *, uint64_t **, uint_t *);
| ^~~~~~~~
| u_int64_t
/usr/include/libzfs/sys/nvpair.h:268:56: error: unknown type name 'uint_t'; did you mean 'u_int8_t'?
268 | int nvpair_value_uint64_array(nvpair_t *, uint64_t **, uint_t *);
| ^~~~~~
| u_int8_t
/usr/include/libzfs/sys/nvpair.h:269:53: error: unknown type name 'uint_t'; did you mean 'u_int8_t'?
269 | int nvpair_value_string_array(nvpair_t *, char ***, uint_t *);
| ^~~~~~
| u_int8_t
/usr/include/libzfs/sys/nvpair.h:270:57: error: unknown type name 'uint_t'; did you mean 'u_int8_t'?
270 | int nvpair_value_nvlist_array(nvpair_t *, nvlist_t ***, uint_t *);
| ^~~~~~
| u_int8_t
/usr/include/libzfs/sys/nvpair.h:271:37: error: unknown type name 'hrtime_t'; did you mean 'time_t'?
271 | int nvpair_value_hrtime(nvpair_t *, hrtime_t *);
| ^~~~~~~~
| time_t
/usr/include/libzfs/sys/nvpair.h:287:58: error: unknown type name 'boolean_t'
287 | void fnvlist_add_boolean_value(nvlist_t *, const char *, boolean_t);
| ^~~~~~~~~
/usr/include/libzfs/sys/nvpair.h:288:49: error: unknown type name 'uchar_t'
288 | void fnvlist_add_byte(nvlist_t *, const char *, uchar_t);
| ^~~~~~~
/usr/include/libzfs/sys/nvpair.h:290:50: error: unknown type name 'uint8_t'; did you mean 'u_int8_t'?
290 | void fnvlist_add_uint8(nvlist_t *, const char *, uint8_t);
| ^~~~~~~
| u_int8_t
/usr/include/libzfs/sys/nvpair.h:292:51: error: unknown type name 'uint16_t'; did you mean 'u_int16_t'?
292 | void fnvlist_add_uint16(nvlist_t *, const char *, uint16_t);
| ^~~~~~~~
| u_int16_t
/usr/include/libzfs/sys/nvpair.h:294:51: error: unknown type name 'uint32_t'; did you mean 'u_int32_t'?
294 | void fnvlist_add_uint32(nvlist_t *, const char *, uint32_t);
| ^~~~~~~~
| u_int32_t
/usr/include/libzfs/sys/nvpair.h:296:51: error: unknown type name 'uint64_t'; did you mean 'u_int64_t'?
296 | void fnvlist_add_uint64(nvlist_t *, const char *, uint64_t);
| ^~~~~~~~
| u_int64_t
/usr/include/libzfs/sys/nvpair.h:300:58: error: unknown type name 'boolean_t'
300 | void fnvlist_add_boolean_array(nvlist_t *, const char *, boolean_t *, uint_t);
| ^~~~~~~~~
/usr/include/libzfs/sys/nvpair.h:300:71: error: unknown type name 'uint_t'; did you mean 'u_int8_t'?
300 | void fnvlist_add_boolean_array(nvlist_t *, const char *, boolean_t *, uint_t);
| ^~~~~~
| u_int8_t
/usr/include/libzfs/sys/nvpair.h:301:55: error: unknown type name 'uchar_t'
301 | void fnvlist_add_byte_array(nvlist_t *, const char *, uchar_t *, uint_t);
| ^~~~~~~
/usr/include/libzfs/sys/nvpair.h:301:66: error: unknown type name 'uint_t'; did you mean 'u_int8_t'?
301 | void fnvlist_add_byte_array(nvlist_t *, const char *, uchar_t *, uint_t);
| ^~~~~~
| u_int8_t
/usr/include/libzfs/sys/nvpair.h:302:65: error: unknown type name 'uint_t'; did you mean 'u_int8_t'?
302 | void fnvlist_add_int8_array(nvlist_t *, const char *, int8_t *, uint_t);
| ^~~~~~
| u_int8_t
/usr/include/libzfs/sys/nvpair.h:303:56: error: unknown type name 'uint8_t'; did you mean 'u_int8_t'?
303 | void fnvlist_add_uint8_array(nvlist_t *, const char *, uint8_t *, uint_t);
| ^~~~~~~
| u_int8_t
/usr/include/libzfs/sys/nvpair.h:303:67: error: unknown type name 'uint_t'; did you mean 'u_int8_t'?
303 | void fnvlist_add_uint8_array(nvlist_t *, const char *, uint8_t *, uint_t);
| ^~~~~~
| u_int8_t
/usr/include/libzfs/sys/nvpair.h:304:67: error: unknown type name 'uint_t'; did you mean 'u_int8_t'?
304 | void fnvlist_add_int16_array(nvlist_t *, const char *, int16_t *, uint_t);
| ^~~~~~
| u_int8_t
/usr/include/libzfs/sys/nvpair.h:305:57: error: unknown type name 'uint16_t'; did you mean 'u_int16_t'?
305 | void fnvlist_add_uint16_array(nvlist_t *, const char *, uint16_t *, uint_t);
| ^~~~~~~~
| u_int16_t
/usr/include/libzfs/sys/nvpair.h:305:69: error: unknown type name 'uint_t'; did you mean 'u_int8_t'?
305 | void fnvlist_add_uint16_array(nvlist_t *, const char *, uint16_t *, uint_t);
| ^~~~~~
| u_int8_t
/usr/include/libzfs/sys/nvpair.h:306:67: error: unknown type name 'uint_t'; did you mean 'u_int8_t'?
306 | void fnvlist_add_int32_array(nvlist_t *, const char *, int32_t *, uint_t);
| ^~~~~~
| u_int8_t
/usr/include/libzfs/sys/nvpair.h:307:57: error: unknown type name 'uint32_t'; did you mean 'u_int32_t'?
307 | void fnvlist_add_uint32_array(nvlist_t *, const char *, uint32_t *, uint_t);
| ^~~~~~~~
| u_int32_t
/usr/include/libzfs/sys/nvpair.h:307:69: error: unknown type name 'uint_t'; did you mean 'u_int8_t'?
307 | void fnvlist_add_uint32_array(nvlist_t *, const char *, uint32_t *, uint_t);
| ^~~~~~
| u_int8_t
/usr/include/libzfs/sys/nvpair.h:308:67: error: unknown type name 'uint_t'; did you mean 'u_int8_t'?
308 | void fnvlist_add_int64_array(nvlist_t *, const char *, int64_t *, uint_t);
| ^~~~~~
| u_int8_t
/usr/include/libzfs/sys/nvpair.h:309:57: error: unknown type name 'uint64_t'; did you mean 'u_int64_t'?
309 | void fnvlist_add_uint64_array(nvlist_t *, const char *, uint64_t *, uint_t);
| ^~~~~~~~
| u_int64_t
/usr/include/libzfs/sys/nvpair.h:309:69: error: unknown type name 'uint_t'; did you mean 'u_int8_t'?
309 | void fnvlist_add_uint64_array(nvlist_t *, const char *, uint64_t *, uint_t);
| ^~~~~~
| u_int8_t
/usr/include/libzfs/sys/nvpair.h:310:73: error: unknown type name 'uint_t'; did you mean 'u_int8_t'?
310 | void fnvlist_add_string_array(nvlist_t *, const char *, char * const *, uint_t);
| ^~~~~~
| u_int8_t
/usr/include/libzfs/sys/nvpair.h:311:70: error: unknown type name 'uint_t'; did you mean 'u_int8_t'?
311 | void fnvlist_add_nvlist_array(nvlist_t *, const char *, nvlist_t **, uint_t);
| ^~~~~~
| u_int8_t
/usr/include/libzfs/sys/nvpair.h:317:1: error: unknown type name 'boolean_t'
317 | boolean_t fnvlist_lookup_boolean(nvlist_t *, const char *);
| ^~~~~~~~~
/usr/include/libzfs/sys/nvpair.h:318:1: error: unknown type name 'boolean_t'
318 | boolean_t fnvlist_lookup_boolean_value(nvlist_t *, const char *);
| ^~~~~~~~~
/usr/include/libzfs/sys/nvpair.h:319:1: error: unknown type name 'uchar_t'
319 | uchar_t fnvlist_lookup_byte(nvlist_t *, const char *);
| ^~~~~~~
/usr/include/libzfs/sys/nvpair.h:324:1: error: unknown type name 'uint8_t'; did you mean 'u_int8_t'?
324 | uint8_t fnvlist_lookup_uint8(nvlist_t *, const char *);
| ^~~~~~~
| u_int8_t
/usr/include/libzfs/sys/nvpair.h:325:1: error: unknown type name 'uint16_t'; did you mean 'u_int16_t'?
325 | uint16_t fnvlist_lookup_uint16(nvlist_t *, const char *);
| ^~~~~~~~
| u_int16_t
/usr/include/libzfs/sys/nvpair.h:326:1: error: unknown type name 'uint32_t'; did you mean 'u_int32_t'?
326 | uint32_t fnvlist_lookup_uint32(nvlist_t *, const char *);
| ^~~~~~~~
| u_int32_t
/usr/include/libzfs/sys/nvpair.h:327:1: error: unknown type name 'uint64_t'; did you mean 'u_int64_t'?
327 | uint64_t fnvlist_lookup_uint64(nvlist_t *, const char *);
| ^~~~~~~~
| u_int64_t
/usr/include/libzfs/sys/nvpair.h:330:1: error: unknown type name 'boolean_t'
330 | boolean_t *fnvlist_lookup_boolean_array(nvlist_t *, const char *, uint_t *);
| ^~~~~~~~~
/usr/include/libzfs/sys/nvpair.h:330:67: error: unknown type name 'uint_t'; did you mean 'u_int8_t'?
330 | boolean_t *fnvlist_lookup_boolean_array(nvlist_t *, const char *, uint_t *);
| ^~~~~~
| u_int8_t
/usr/include/libzfs/sys/nvpair.h:331:1: error: unknown type name 'uchar_t'
331 | uchar_t *fnvlist_lookup_byte_array(nvlist_t *, const char *, uint_t *);
| ^~~~~~~
/usr/include/libzfs/sys/nvpair.h:331:62: error: unknown type name 'uint_t'; did you mean 'u_int8_t'?
331 | uchar_t *fnvlist_lookup_byte_array(nvlist_t *, const char *, uint_t *);
| ^~~~~~
| u_int8_t
/usr/include/libzfs/sys/nvpair.h:332:61: error: unknown type name 'uint_t'; did you mean 'u_int8_t'?
332 | int8_t *fnvlist_lookup_int8_array(nvlist_t *, const char *, uint_t *);
| ^~~~~~
| u_int8_t
/usr/include/libzfs/sys/nvpair.h:333:1: error: unknown type name 'uint8_t'; did you mean 'u_int8_t'?
333 | uint8_t *fnvlist_lookup_uint8_array(nvlist_t *, const char *, uint_t *);
| ^~~~~~~
| u_int8_t
/usr/include/libzfs/sys/nvpair.h:333:63: error: unknown type name 'uint_t'; did you mean 'u_int8_t'?
333 | uint8_t *fnvlist_lookup_uint8_array(nvlist_t *, const char *, uint_t *);
| ^~~~~~
| u_int8_t
/usr/include/libzfs/sys/nvpair.h:334:63: error: unknown type name 'uint_t'; did you mean 'u_int8_t'?
334 | int16_t *fnvlist_lookup_int16_array(nvlist_t *, const char *, uint_t *);
| ^~~~~~
| u_int8_t
/usr/include/libzfs/sys/nvpair.h:335:1: error: unknown type name 'uint16_t'; did you mean 'u_int16_t'?
335 | uint16_t *fnvlist_lookup_uint16_array(nvlist_t *, const char *, uint_t *);
| ^~~~~~~~
| u_int16_t
/usr/include/libzfs/sys/nvpair.h:335:65: error: unknown type name 'uint_t'; did you mean 'u_int8_t'?
335 | uint16_t *fnvlist_lookup_uint16_array(nvlist_t *, const char *, uint_t *);
| ^~~~~~
| u_int8_t
/usr/include/libzfs/sys/nvpair.h:336:63: error: unknown type name 'uint_t'; did you mean 'u_int8_t'?
336 | int32_t *fnvlist_lookup_int32_array(nvlist_t *, const char *, uint_t *);
| ^~~~~~
| u_int8_t
/usr/include/libzfs/sys/nvpair.h:337:1: error: unknown type name 'uint32_t'; did you mean 'u_int32_t'?
337 | uint32_t *fnvlist_lookup_uint32_array(nvlist_t *, const char *, uint_t *);
| ^~~~~~~~
| u_int32_t
/usr/include/libzfs/sys/nvpair.h:337:65: error: unknown type name 'uint_t'; did you mean 'u_int8_t'?
337 | uint32_t *fnvlist_lookup_uint32_array(nvlist_t *, const char *, uint_t *);
| ^~~~~~
| u_int8_t
/usr/include/libzfs/sys/nvpair.h:338:63: error: unknown type name 'uint_t'; did you mean 'u_int8_t'?
338 | int64_t *fnvlist_lookup_int64_array(nvlist_t *, const char *, uint_t *);
| ^~~~~~
| u_int8_t
/usr/include/libzfs/sys/nvpair.h:339:1: error: unknown type name 'uint64_t'; did you mean 'u_int64_t'?
339 | uint64_t *fnvlist_lookup_uint64_array(nvlist_t *, const char *, uint_t *);
| ^~~~~~~~
| u_int64_t
/usr/include/libzfs/sys/nvpair.h:339:65: error: unknown type name 'uint_t'; did you mean 'u_int8_t'?
339 | uint64_t *fnvlist_lookup_uint64_array(nvlist_t *, const char *, uint_t *);
| ^~~~~~
| u_int8_t
/usr/include/libzfs/sys/nvpair.h:341:1: error: unknown type name 'boolean_t'
341 | boolean_t fnvpair_value_boolean_value(nvpair_t *nvp);
| ^~~~~~~~~
/usr/include/libzfs/sys/nvpair.h:342:1: error: unknown type name 'uchar_t'
342 | uchar_t fnvpair_value_byte(nvpair_t *nvp);
| ^~~~~~~
/usr/include/libzfs/sys/nvpair.h:347:1: error: unknown type name 'uint8_t'; did you mean 'u_int8_t'?
347 | uint8_t fnvpair_value_uint8(nvpair_t *nvp);
| ^~~~~~~
| u_int8_t
/usr/include/libzfs/sys/nvpair.h:348:1: error: unknown type name 'uint16_t'; did you mean 'u_int16_t'?
348 | uint16_t fnvpair_value_uint16(nvpair_t *nvp);
| ^~~~~~~~
| u_int16_t
/usr/include/libzfs/sys/nvpair.h:349:1: error: unknown type name 'uint32_t'; did you mean 'u_int32_t'?
349 | uint32_t fnvpair_value_uint32(nvpair_t *nvp);
| ^~~~~~~~
| u_int32_t
/usr/include/libzfs/sys/nvpair.h:350:1: error: unknown type name 'uint64_t'; did you mean 'u_int64_t'?
350 | uint64_t fnvpair_value_uint64(nvpair_t *nvp);
| ^~~~~~~~
| u_int64_t
In file included from /usr/include/libzfs/libzfs.h:37,
from /root/zectl/include/libze/libze.h:4,
from /root/zectl/lib/libze/libze.c:6:
/usr/include/libzfs/libnvpair.h:147:1: error: unknown type name 'boolean_t'
147 | NVLIST_PRINTCTL_SVDECL(nvlist_prtctlop_boolean_value, boolean_t);
| ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/libzfs/libnvpair.h:147:1: error: expected ';', ',' or ')' before 'void'
147 | NVLIST_PRINTCTL_SVDECL(nvlist_prtctlop_boolean_value, boolean_t);
| ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/libzfs/libnvpair.h:148:1: error: unknown type name 'uchar_t'; did you mean 'wchar_t'?
148 | NVLIST_PRINTCTL_SVDECL(nvlist_prtctlop_byte, uchar_t);
| ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/libzfs/libnvpair.h:148:1: error: expected ';', ',' or ')' before 'void'
148 | NVLIST_PRINTCTL_SVDECL(nvlist_prtctlop_byte, uchar_t);
| ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/libzfs/libnvpair.h:150:1: error: unknown type name 'uint8_t'; did you mean 'u_int8_t'?
150 | NVLIST_PRINTCTL_SVDECL(nvlist_prtctlop_uint8, uint8_t);
| ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/libzfs/libnvpair.h:150:1: error: expected ';', ',' or ')' before 'void'
150 | NVLIST_PRINTCTL_SVDECL(nvlist_prtctlop_uint8, uint8_t);
| ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/libzfs/libnvpair.h:152:1: error: unknown type name 'uint16_t'; did you mean 'u_int16_t'?
152 | NVLIST_PRINTCTL_SVDECL(nvlist_prtctlop_uint16, uint16_t);
| ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/libzfs/libnvpair.h:152:1: error: expected ';', ',' or ')' before 'void'
152 | NVLIST_PRINTCTL_SVDECL(nvlist_prtctlop_uint16, uint16_t);
| ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/libzfs/libnvpair.h:154:1: error: unknown type name 'uint32_t'; did you mean 'u_int32_t'?
154 | NVLIST_PRINTCTL_SVDECL(nvlist_prtctlop_uint32, uint32_t);
| ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/libzfs/libnvpair.h:154:1: error: expected ';', ',' or ')' before 'void'
154 | NVLIST_PRINTCTL_SVDECL(nvlist_prtctlop_uint32, uint32_t);
| ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/libzfs/libnvpair.h:156:1: error: unknown type name 'uint64_t'; did you mean 'u_int64_t'?
156 | NVLIST_PRINTCTL_SVDECL(nvlist_prtctlop_uint64, uint64_t);
| ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/libzfs/libnvpair.h:156:1: error: expected ';', ',' or ')' before 'void'
156 | NVLIST_PRINTCTL_SVDECL(nvlist_prtctlop_uint64, uint64_t);
| ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/libzfs/libnvpair.h:159:1: error: unknown type name 'hrtime_t'; did you mean 'time_t'?
159 | NVLIST_PRINTCTL_SVDECL(nvlist_prtctlop_hrtime, hrtime_t);
| ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/libzfs/libnvpair.h:159:1: error: expected ';', ',' or ')' before 'void'
159 | NVLIST_PRINTCTL_SVDECL(nvlist_prtctlop_hrtime, hrtime_t);
| ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/libzfs/libnvpair.h:177:1: error: unknown type name 'boolean_t'
177 | NVLIST_PRINTCTL_AVDECL(nvlist_prtctlop_boolean_array, boolean_t *);
| ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/libzfs/libnvpair.h:177:1: error: unknown type name 'uint_t'; did you mean 'u_int8_t'?
177 | NVLIST_PRINTCTL_AVDECL(nvlist_prtctlop_boolean_array, boolean_t *);
| ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/libzfs/libnvpair.h:177:1: error: expected ';', ',' or ')' before 'void'
177 | NVLIST_PRINTCTL_AVDECL(nvlist_prtctlop_boolean_array, boolean_t *);
| ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/libzfs/libnvpair.h:178:1: error: unknown type name 'uchar_t'; did you mean 'wchar_t'?
178 | NVLIST_PRINTCTL_AVDECL(nvlist_prtctlop_byte_array, uchar_t *);
| ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/libzfs/libnvpair.h:178:1: error: unknown type name 'uint_t'; did you mean 'u_int8_t'?
178 | NVLIST_PRINTCTL_AVDECL(nvlist_prtctlop_byte_array, uchar_t *);
| ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/libzfs/libnvpair.h:178:1: error: expected ';', ',' or ')' before 'void'
178 | NVLIST_PRINTCTL_AVDECL(nvlist_prtctlop_byte_array, uchar_t *);
| ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/libzfs/libnvpair.h:179:1: error: unknown type name 'uint_t'; did you mean 'u_int8_t'?
179 | NVLIST_PRINTCTL_AVDECL(nvlist_prtctlop_int8_array, int8_t *);
| ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/libzfs/libnvpair.h:179:1: error: expected ';', ',' or ')' before 'void'
179 | NVLIST_PRINTCTL_AVDECL(nvlist_prtctlop_int8_array, int8_t *);
| ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/libzfs/libnvpair.h:180:1: error: unknown type name 'uint8_t'; did you mean 'u_int8_t'?
180 | NVLIST_PRINTCTL_AVDECL(nvlist_prtctlop_uint8_array, uint8_t *);
| ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/libzfs/libnvpair.h:180:1: error: unknown type name 'uint_t'; did you mean 'u_int8_t'?
180 | NVLIST_PRINTCTL_AVDECL(nvlist_prtctlop_uint8_array, uint8_t *);
| ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/libzfs/libnvpair.h:180:1: error: expected ';', ',' or ')' before 'void'
180 | NVLIST_PRINTCTL_AVDECL(nvlist_prtctlop_uint8_array, uint8_t *);
| ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/libzfs/libnvpair.h:181:1: error: unknown type name 'uint_t'; did you mean 'u_int8_t'?
181 | NVLIST_PRINTCTL_AVDECL(nvlist_prtctlop_int16_array, int16_t *);
| ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/libzfs/libnvpair.h:181:1: error: expected ';', ',' or ')' before 'void'
181 | NVLIST_PRINTCTL_AVDECL(nvlist_prtctlop_int16_array, int16_t *);
| ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/libzfs/libnvpair.h:182:1: error: unknown type name 'uint16_t'; did you mean 'u_int16_t'?
182 | NVLIST_PRINTCTL_AVDECL(nvlist_prtctlop_uint16_array, uint16_t *);
| ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/libzfs/libnvpair.h:182:1: error: unknown type name 'uint_t'; did you mean 'u_int8_t'?
182 | NVLIST_PRINTCTL_AVDECL(nvlist_prtctlop_uint16_array, uint16_t *);
| ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/libzfs/libnvpair.h:182:1: error: expected ';', ',' or ')' before 'void'
182 | NVLIST_PRINTCTL_AVDECL(nvlist_prtctlop_uint16_array, uint16_t *);
| ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/libzfs/libnvpair.h:183:1: error: unknown type name 'uint_t'; did you mean 'u_int8_t'?
183 | NVLIST_PRINTCTL_AVDECL(nvlist_prtctlop_int32_array, int32_t *);
| ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/libzfs/libnvpair.h:183:1: error: expected ';', ',' or ')' before 'void'
183 | NVLIST_PRINTCTL_AVDECL(nvlist_prtctlop_int32_array, int32_t *);
| ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/libzfs/libnvpair.h:184:1: error: unknown type name 'uint32_t'; did you mean 'u_int32_t'?
184 | NVLIST_PRINTCTL_AVDECL(nvlist_prtctlop_uint32_array, uint32_t *);
| ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/libzfs/libnvpair.h:184:1: error: unknown type name 'uint_t'; did you mean 'u_int8_t'?
184 | NVLIST_PRINTCTL_AVDECL(nvlist_prtctlop_uint32_array, uint32_t *);
| ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/libzfs/libnvpair.h:184:1: error: expected ';', ',' or ')' before 'void'
184 | NVLIST_PRINTCTL_AVDECL(nvlist_prtctlop_uint32_array, uint32_t *);
| ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/libzfs/libnvpair.h:185:1: error: unknown type name 'uint_t'; did you mean 'u_int8_t'?
185 | NVLIST_PRINTCTL_AVDECL(nvlist_prtctlop_int64_array, int64_t *);
| ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/libzfs/libnvpair.h:185:1: error: expected ';', ',' or ')' before 'void'
185 | NVLIST_PRINTCTL_AVDECL(nvlist_prtctlop_int64_array, int64_t *);
| ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/libzfs/libnvpair.h:186:1: error: unknown type name 'uint64_t'; did you mean 'u_int64_t'?
186 | NVLIST_PRINTCTL_AVDECL(nvlist_prtctlop_uint64_array, uint64_t *);
| ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/libzfs/libnvpair.h:186:1: error: unknown type name 'uint_t'; did you mean 'u_int8_t'?
186 | NVLIST_PRINTCTL_AVDECL(nvlist_prtctlop_uint64_array, uint64_t *);
| ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/libzfs/libnvpair.h:186:1: error: expected ';', ',' or ')' before 'void'
186 | NVLIST_PRINTCTL_AVDECL(nvlist_prtctlop_uint64_array, uint64_t *);
| ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/libzfs/libnvpair.h:187:1: error: unknown type name 'uint_t'; did you mean 'u_int8_t'?
187 | NVLIST_PRINTCTL_AVDECL(nvlist_prtctlop_string_array, char **);
| ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/libzfs/libnvpair.h:187:1: error: expected ';', ',' or ')' before 'void'
187 | NVLIST_PRINTCTL_AVDECL(nvlist_prtctlop_string_array, char **);
| ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/libzfs/libnvpair.h:188:1: error: unknown type name 'uint_t'; did you mean 'u_int8_t'?
188 | NVLIST_PRINTCTL_AVDECL(nvlist_prtctlop_nvlist_array, nvlist_t **);
| ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/libzfs/libnvpair.h:188:1: error: expected ';', ',' or ')' before 'void'
188 | NVLIST_PRINTCTL_AVDECL(nvlist_prtctlop_nvlist_array, nvlist_t **);
| ^~~~~~~~~~~~~~~~~~~~~~
In file included from /root/zectl/include/libze/libze.h:4,
from /root/zectl/lib/libze/libze.c:6:
/usr/include/libzfs/libzfs.h:38:10: fatal error: sys/mnttab.h: No such file or directory
38 | #include <sys/mnttab.h>
| ^~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [lib/libze/CMakeFiles/libze.dir/build.make:63: lib/libze/CMakeFiles/libze.dir/libze.c.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:154: lib/libze/CMakeFiles/libze.dir/all] Error 2
make: *** [Makefile:130: all] Error 2
root@waqar:~/zectl/build# zfs version
zfs-0.8.3-2
zfs-kmod-0.8.3-2
root@waqar:~/zectl/build# cd ..
root@waqar:~/zectl# make
make: *** No targets specified and no makefile found. Stop.
root@waqar:~/zectl# cd build/
root@waqar:~/zectl/build# cat Makefile
# CMAKE generated file: DO NOT EDIT!
# Generated by "Unix Makefiles" Generator, CMake Version 3.16
# Default target executed when no arguments are given to make.
default_target: all
.PHONY : default_target
# Allow only one "make -f Makefile2" at a time, but pass parallelism.
.NOTPARALLEL:
#=============================================================================
# Special targets provided by cmake.
# Disable implicit rules so canonical targets will work.
.SUFFIXES:
# Remove some rules from gmake that .SUFFIXES does not remove.
SUFFIXES =
.SUFFIXES: .hpux_make_needs_suffix_list
# Suppress display of executed commands.
$(VERBOSE).SILENT:
# A target that is always out of date.
cmake_force:
.PHONY : cmake_force
#=============================================================================
# Set environment variables for the build.
# The shell in which to execute make rules.
SHELL = /bin/sh
# The CMake executable.
CMAKE_COMMAND = /usr/bin/cmake
# The command to remove a file.
RM = /usr/bin/cmake -E remove -f
# Escaping for special characters.
EQUALS = =
# The top-level source directory on which CMake was run.
CMAKE_SOURCE_DIR = /root/zectl
# The top-level build directory on which CMake was run.
CMAKE_BINARY_DIR = /root/zectl/build
#=============================================================================
# Targets provided globally by CMake.
# Special rule for the target install/strip
install/strip: preinstall
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Installing the project stripped..."
/usr/bin/cmake -DCMAKE_INSTALL_DO_STRIP=1 -P cmake_install.cmake
.PHONY : install/strip
# Special rule for the target install/strip
install/strip/fast: preinstall/fast
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Installing the project stripped..."
/usr/bin/cmake -DCMAKE_INSTALL_DO_STRIP=1 -P cmake_install.cmake
.PHONY : install/strip/fast
# Special rule for the target install/local
install/local: preinstall
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Installing only the local directory..."
/usr/bin/cmake -DCMAKE_INSTALL_LOCAL_ONLY=1 -P cmake_install.cmake
.PHONY : install/local
# Special rule for the target install/local
install/local/fast: preinstall/fast
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Installing only the local directory..."
/usr/bin/cmake -DCMAKE_INSTALL_LOCAL_ONLY=1 -P cmake_install.cmake
.PHONY : install/local/fast
# Special rule for the target install
install: preinstall
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Install the project..."
/usr/bin/cmake -P cmake_install.cmake
.PHONY : install
# Special rule for the target install
install/fast: preinstall/fast
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Install the project..."
/usr/bin/cmake -P cmake_install.cmake
.PHONY : install/fast
# Special rule for the target list_install_components
list_install_components:
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Available install components are: \"Unspecified\""
.PHONY : list_install_components
# Special rule for the target list_install_components
list_install_components/fast: list_install_components
.PHONY : list_install_components/fast
# Special rule for the target rebuild_cache
rebuild_cache:
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Running CMake to regenerate build system..."
/usr/bin/cmake -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR)
.PHONY : rebuild_cache
# Special rule for the target rebuild_cache
rebuild_cache/fast: rebuild_cache
.PHONY : rebuild_cache/fast
# Special rule for the target edit_cache
edit_cache:
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "No interactive CMake dialog available..."
/usr/bin/cmake -E echo No\ interactive\ CMake\ dialog\ available.
.PHONY : edit_cache
# Special rule for the target edit_cache
edit_cache/fast: edit_cache
.PHONY : edit_cache/fast
# The main all target
all: cmake_check_build_system
$(CMAKE_COMMAND) -E cmake_progress_start /root/zectl/build/CMakeFiles /root/zectl/build/CMakeFiles/progress.marks
$(MAKE) -f CMakeFiles/Makefile2 all
$(CMAKE_COMMAND) -E cmake_progress_start /root/zectl/build/CMakeFiles 0
.PHONY : all
# The main clean target
clean:
$(MAKE) -f CMakeFiles/Makefile2 clean
.PHONY : clean
# The main clean target
clean/fast: clean
.PHONY : clean/fast
# Prepare targets for installation.
preinstall: all
$(MAKE) -f CMakeFiles/Makefile2 preinstall
.PHONY : preinstall
# Prepare targets for installation.
preinstall/fast:
$(MAKE) -f CMakeFiles/Makefile2 preinstall
.PHONY : preinstall/fast
# clear depends
depend:
$(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 1
.PHONY : depend
#=============================================================================
# Target rules for targets named libze
# Build rule for target.
libze: cmake_check_build_system
$(MAKE) -f CMakeFiles/Makefile2 libze
.PHONY : libze
# fast build rule for target.
libze/fast:
$(MAKE) -f lib/libze/CMakeFiles/libze.dir/build.make lib/libze/CMakeFiles/libze.dir/build
.PHONY : libze/fast
#=============================================================================
# Target rules for targets named libze_plugin_systemdboot
# Build rule for target.
libze_plugin_systemdboot: cmake_check_build_system
$(MAKE) -f CMakeFiles/Makefile2 libze_plugin_systemdboot
.PHONY : libze_plugin_systemdboot
# fast build rule for target.
libze_plugin_systemdboot/fast:
$(MAKE) -f lib/libze_plugin/CMakeFiles/libze_plugin_systemdboot.dir/build.make lib/libze_plugin/CMakeFiles/libze_plugin_systemdboot.dir/build
.PHONY : libze_plugin_systemdboot/fast
#=============================================================================
# Target rules for targets named zectl
# Build rule for target.
zectl: cmake_check_build_system
$(MAKE) -f CMakeFiles/Makefile2 zectl
.PHONY : zectl
# fast build rule for target.
zectl/fast:
$(MAKE) -f src/CMakeFiles/zectl.dir/build.make src/CMakeFiles/zectl.dir/build
.PHONY : zectl/fast
# Help Target
help:
@echo "The following are some of the valid targets for this Makefile:"
@echo "... all (the default if no target is provided)"
@echo "... clean"
@echo "... depend"
@echo "... install/strip"
@echo "... install/local"
@echo "... install"
@echo "... list_install_components"
@echo "... rebuild_cache"
@echo "... edit_cache"
@echo "... libze"
@echo "... libze_plugin_systemdboot"
@echo "... zectl"
.PHONY : help
#=============================================================================
# Special targets to cleanup operation of make.
# Special rule to run CMake to check the build system integrity.
# No rule that depends on this can have commands that come from listfiles
# because they might be regenerated.
cmake_check_build_system:
$(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 0
.PHONY : cmake_check_build_system
root@waqar:~/zectl/build#
root@waqar:~/zectl/build#
root@waqar:~/zectl/build# make
Searching for required ZFS include directories
-- Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE)
Found zfs include dir in /usr/include/libzfs
Found zfs include directories in /usr/include/libzfs
Searching for ZFS libraries
libzfs library found at: /usr/lib/libzfs.so
libzpool library found at: /usr/lib/libzpool.so
libzfs_core library found at: /usr/lib/libzfs_core.so
libnvpair library found at: /usr/lib/libnvpair.so
libuutil library found at: /usr/lib/libuutil.so
PLUGINS_DIRECTORY=/root/zectl/build/lib/libze/../libze_plugin
PLUGINS_DIRECTORY=/root/zectl/build/lib/libze_plugin/../libze_plugin
-- Configuring done
-- Generating done
-- Build files have been written to: /root/zectl/build
Scanning dependencies of target libze
make[2]: Warning: File '../lib/libze/libze.c' has modification time 18082 s in the future
[ 4%] Building C object lib/libze/CMakeFiles/libze.dir/libze.c.o
In file included from /usr/include/libzfs/libnvpair.h:29,
from /usr/include/libzfs/libzfs.h:37,
from /root/zectl/include/libze/libze.h:4,
from /root/zectl/lib/libze/libze.c:6:
/usr/include/libzfs/sys/nvpair.h:87:2: error: unknown type name 'uint32_t'
87 | uint32_t nvl_nvflag; /* persistent flags */
| ^~~~~~~~
/usr/include/libzfs/sys/nvpair.h:88:2: error: unknown type name 'uint64_t'
88 | uint64_t nvl_priv; /* ptr to private data if not packed */
| ^~~~~~~~
/usr/include/libzfs/sys/nvpair.h:89:2: error: unknown type name 'uint32_t'
89 | uint32_t nvl_flag;
| ^~~~~~~~
/usr/include/libzfs/sys/nvpair.h:131:34: error: unknown type name 'va_list'
131 | int (*nv_ao_init)(nv_alloc_t *, va_list);
| ^~~~~~~
/usr/include/libzfs/sys/nvpair.h:32:1: note: 'va_list' is defined in header '<stdarg.h>'; did you forget to '#include <stdarg.h>'?
31 | #include <sys/errno.h>
+++ |+#include <stdarg.h>
32 |
/usr/include/libzfs/sys/nvpair.h:151:31: error: unknown type name 'uint_t'; did you mean 'u_int8_t'?
151 | int nvlist_alloc(nvlist_t **, uint_t, int);
| ^~~~~~
| u_int8_t
/usr/include/libzfs/sys/nvpair.h:159:1: error: unknown type name 'uint_t'; did you mean 'u_int8_t'?
159 | uint_t nvlist_nvflag(nvlist_t *);
| ^~~~~~
| u_int8_t
/usr/include/libzfs/sys/nvpair.h:161:32: error: unknown type name 'uint_t'; did you mean 'u_int8_t'?
161 | int nvlist_xalloc(nvlist_t **, uint_t, nv_alloc_t *);
| ^~~~~~
| u_int8_t
/usr/include/libzfs/sys/nvpair.h:169:56: error: unknown type name 'boolean_t'
169 | int nvlist_add_boolean_value(nvlist_t *, const char *, boolean_t);
| ^~~~~~~~~
/usr/include/libzfs/sys/nvpair.h:170:47: error: unknown type name 'uchar_t'
170 | int nvlist_add_byte(nvlist_t *, const char *, uchar_t);
| ^~~~~~~
/usr/include/libzfs/sys/nvpair.h:172:48: error: unknown type name 'uint8_t'; did you mean 'u_int8_t'?
172 | int nvlist_add_uint8(nvlist_t *, const char *, uint8_t);
| ^~~~~~~
| u_int8_t
/usr/include/libzfs/sys/nvpair.h:174:49: error: unknown type name 'uint16_t'; did you mean 'u_int16_t'?
174 | int nvlist_add_uint16(nvlist_t *, const char *, uint16_t);
| ^~~~~~~~
| u_int16_t
/usr/include/libzfs/sys/nvpair.h:176:49: error: unknown type name 'uint32_t'; did you mean 'u_int32_t'?
176 | int nvlist_add_uint32(nvlist_t *, const char *, uint32_t);
| ^~~~~~~~
| u_int32_t
/usr/include/libzfs/sys/nvpair.h:178:49: error: unknown type name 'uint64_t'; did you mean 'u_int64_t'?
178 | int nvlist_add_uint64(nvlist_t *, const char *, uint64_t);
| ^~~~~~~~
| u_int64_t
/usr/include/libzfs/sys/nvpair.h:181:56: error: unknown type name 'boolean_t'
181 | int nvlist_add_boolean_array(nvlist_t *, const char *, boolean_t *, uint_t);
| ^~~~~~~~~
/usr/include/libzfs/sys/nvpair.h:181:69: error: unknown type name 'uint_t'; did you mean 'u_int8_t'?
181 | int nvlist_add_boolean_array(nvlist_t *, const char *, boolean_t *, uint_t);
| ^~~~~~
| u_int8_t
/usr/include/libzfs/sys/nvpair.h:182:53: error: unknown type name 'uchar_t'
182 | int nvlist_add_byte_array(nvlist_t *, const char *, uchar_t *, uint_t);
| ^~~~~~~
/usr/include/libzfs/sys/nvpair.h:182:64: error: unknown type name 'uint_t'; did you mean 'u_int8_t'?
182 | int nvlist_add_byte_array(nvlist_t *, const char *, uchar_t *, uint_t);
| ^~~~~~
| u_int8_t
/usr/include/libzfs/sys/nvpair.h:183:63: error: unknown type name 'uint_t'; did you mean 'u_int8_t'?
183 | int nvlist_add_int8_array(nvlist_t *, const char *, int8_t *, uint_t);
| ^~~~~~
| u_int8_t
/usr/include/libzfs/sys/nvpair.h:184:54: error: unknown type name 'uint8_t'; did you mean 'u_int8_t'?
184 | int nvlist_add_uint8_array(nvlist_t *, const char *, uint8_t *, uint_t);
| ^~~~~~~
| u_int8_t
/usr/include/libzfs/sys/nvpair.h:184:65: error: unknown type name 'uint_t'; did you mean 'u_int8_t'?
184 | int nvlist_add_uint8_array(nvlist_t *, const char *, uint8_t *, uint_t);
| ^~~~~~
| u_int8_t
/usr/include/libzfs/sys/nvpair.h:185:65: error: unknown type name 'uint_t'; did you mean 'u_int8_t'?
185 | int nvlist_add_int16_array(nvlist_t *, const char *, int16_t *, uint_t);
| ^~~~~~
| u_int8_t
/usr/include/libzfs/sys/nvpair.h:186:55: error: unknown type name 'uint16_t'; did you mean 'u_int16_t'?
186 | int nvlist_add_uint16_array(nvlist_t *, const char *, uint16_t *, uint_t);
| ^~~~~~~~
| u_int16_t
/usr/include/libzfs/sys/nvpair.h:186:67: error: unknown type name 'uint_t'; did you mean 'u_int8_t'?
186 | int nvlist_add_uint16_array(nvlist_t *, const char *, uint16_t *, uint_t);
| ^~~~~~
| u_int8_t
/usr/include/libzfs/sys/nvpair.h:187:65: error: unknown type name 'uint_t'; did you mean 'u_int8_t'?
187 | int nvlist_add_int32_array(nvlist_t *, const char *, int32_t *, uint_t);
| ^~~~~~
| u_int8_t
/usr/include/libzfs/sys/nvpair.h:188:55: error: unknown type name 'uint32_t'; did you mean 'u_int32_t'?
188 | int nvlist_add_uint32_array(nvlist_t *, const char *, uint32_t *, uint_t);
| ^~~~~~~~
| u_int32_t
/usr/include/libzfs/sys/nvpair.h:188:67: error: unknown type name 'uint_t'; did you mean 'u_int8_t'?
188 | int nvlist_add_uint32_array(nvlist_t *, const char *, uint32_t *, uint_t);
| ^~~~~~
| u_int8_t
/usr/include/libzfs/sys/nvpair.h:189:65: error: unknown type name 'uint_t'; did you mean 'u_int8_t'?
189 | int nvlist_add_int64_array(nvlist_t *, const char *, int64_t *, uint_t);
| ^~~~~~
| u_int8_t
/usr/include/libzfs/sys/nvpair.h:190:55: error: unknown type name 'uint64_t'; did you mean 'u_int64_t'?
190 | int nvlist_add_uint64_array(nvlist_t *, const char *, uint64_t *, uint_t);
| ^~~~~~~~
| u_int64_t
/usr/include/libzfs/sys/nvpair.h:190:67: error: unknown type name 'uint_t'; did you mean 'u_int8_t'?
190 | int nvlist_add_uint64_array(nvlist_t *, const char *, uint64_t *, uint_t);
| ^~~~~~
| u_int8_t
/usr/include/libzfs/sys/nvpair.h:191:70: error: unknown type name 'uint_t'; did you mean 'u_int8_t'?
191 | int nvlist_add_string_array(nvlist_t *, const char *, char *const *, uint_t);
| ^~~~~~
| u_int8_t
/usr/include/libzfs/sys/nvpair.h:192:68: error: unknown type name 'uint_t'; did you mean 'u_int8_t'?
192 | int nvlist_add_nvlist_array(nvlist_t *, const char *, nvlist_t **, uint_t);
| ^~~~~~
| u_int8_t
/usr/include/libzfs/sys/nvpair.h:193:49: error: unknown type name 'hrtime_t'; did you mean 'time_t'?
193 | int nvlist_add_hrtime(nvlist_t *, const char *, hrtime_t);
| ^~~~~~~~
| time_t
/usr/include/libzfs/sys/nvpair.h:203:59: error: unknown type name 'boolean_t'
203 | int nvlist_lookup_boolean_value(nvlist_t *, const char *, boolean_t *);
| ^~~~~~~~~
/usr/include/libzfs/sys/nvpair.h:204:50: error: unknown type name 'uchar_t'
204 | int nvlist_lookup_byte(nvlist_t *, const char *, uchar_t *);
| ^~~~~~~
/usr/include/libzfs/sys/nvpair.h:206:51: error: unknown type name 'uint8_t'; did you mean 'u_int8_t'?
206 | int nvlist_lookup_uint8(nvlist_t *, const char *, uint8_t *);
| ^~~~~~~
| u_int8_t
/usr/include/libzfs/sys/nvpair.h:208:52: error: unknown type name 'uint16_t'; did you mean 'u_int16_t'?
208 | int nvlist_lookup_uint16(nvlist_t *, const char *, uint16_t *);
| ^~~~~~~~
| u_int16_t
/usr/include/libzfs/sys/nvpair.h:210:52: error: unknown type name 'uint32_t'; did you mean 'u_int32_t'?
210 | int nvlist_lookup_uint32(nvlist_t *, const char *, uint32_t *);
| ^~~~~~~~
| u_int32_t
/usr/include/libzfs/sys/nvpair.h:212:52: error: unknown type name 'uint64_t'; did you mean 'u_int64_t'?
212 | int nvlist_lookup_uint64(nvlist_t *, const char *, uint64_t *);
| ^~~~~~~~
| u_int64_t
/usr/include/libzfs/sys/nvpair.h:216:5: error: unknown type name 'boolean_t'
216 | boolean_t **, uint_t *);
| ^~~~~~~~~
/usr/include/libzfs/sys/nvpair.h:216:19: error: unknown type name 'uint_t'; did you mean 'u_int8_t'?
216 | boolean_t **, uint_t *);
| ^~~~~~
| u_int8_t
/usr/include/libzfs/sys/nvpair.h:217:56: error: unknown type name 'uchar_t'
217 | int nvlist_lookup_byte_array(nvlist_t *, const char *, uchar_t **, uint_t *);
| ^~~~~~~
/usr/include/libzfs/sys/nvpair.h:217:68: error: unknown type name 'uint_t'; did you mean 'u_int8_t'?
217 | int nvlist_lookup_byte_array(nvlist_t *, const char *, uchar_t **, uint_t *);
| ^~~~~~
| u_int8_t
/usr/include/libzfs/sys/nvpair.h:218:67: error: unknown type name 'uint_t'; did you mean 'u_int8_t'?
218 | int nvlist_lookup_int8_array(nvlist_t *, const char *, int8_t **, uint_t *);
| ^~~~~~
| u_int8_t
/usr/include/libzfs/sys/nvpair.h:219:57: error: unknown type name 'uint8_t'; did you mean 'u_int8_t'?
219 | int nvlist_lookup_uint8_array(nvlist_t *, const char *, uint8_t **, uint_t *);
| ^~~~~~~
| u_int8_t
/usr/include/libzfs/sys/nvpair.h:219:69: error: unknown type name 'uint_t'; did you mean 'u_int8_t'?
219 | int nvlist_lookup_uint8_array(nvlist_t *, const char *, uint8_t **, uint_t *);
| ^~~~~~
| u_int8_t
/usr/include/libzfs/sys/nvpair.h:220:69: error: unknown type name 'uint_t'; did you mean 'u_int8_t'?
220 | int nvlist_lookup_int16_array(nvlist_t *, const char *, int16_t **, uint_t *);
| ^~~~~~
| u_int8_t
/usr/include/libzfs/sys/nvpair.h:221:58: error: unknown type name 'uint16_t'; did you mean 'u_int16_t'?
221 | int nvlist_lookup_uint16_array(nvlist_t *, const char *, uint16_t **, uint_t *);
| ^~~~~~~~
| u_int16_t
/usr/include/libzfs/sys/nvpair.h:221:71: error: unknown type name 'uint_t'; did you mean 'u_int8_t'?
221 | int nvlist_lookup_uint16_array(nvlist_t *, const char *, uint16_t **, uint_t *);
| ^~~~~~
| u_int8_t
/usr/include/libzfs/sys/nvpair.h:222:69: error: unknown type name 'uint_t'; did you mean 'u_int8_t'?
222 | int nvlist_lookup_int32_array(nvlist_t *, const char *, int32_t **, uint_t *);
| ^~~~~~
| u_int8_t
/usr/include/libzfs/sys/nvpair.h:223:58: error: unknown type name 'uint32_t'; did you mean 'u_int32_t'?
223 | int nvlist_lookup_uint32_array(nvlist_t *, const char *, uint32_t **, uint_t *);
| ^~~~~~~~
| u_int32_t
/usr/include/libzfs/sys/nvpair.h:223:71: error: unknown type name 'uint_t'; did you mean 'u_int8_t'?
223 | int nvlist_lookup_uint32_array(nvlist_t *, const char *, uint32_t **, uint_t *);
| ^~~~~~
| u_int8_t
/usr/include/libzfs/sys/nvpair.h:224:69: error: unknown type name 'uint_t'; did you mean 'u_int8_t'?
224 | int nvlist_lookup_int64_array(nvlist_t *, const char *, int64_t **, uint_t *);
| ^~~~~~
| u_int8_t
/usr/include/libzfs/sys/nvpair.h:225:58: error: unknown type name 'uint64_t'; did you mean 'u_int64_t'?
225 | int nvlist_lookup_uint64_array(nvlist_t *, const char *, uint64_t **, uint_t *);
| ^~~~~~~~
| u_int64_t
/usr/include/libzfs/sys/nvpair.h:225:71: error: unknown type name 'uint_t'; did you mean 'u_int8_t'?
225 | int nvlist_lookup_uint64_array(nvlist_t *, const char *, uint64_t **, uint_t *);
| ^~~~~~
| u_int8_t
/usr/include/libzfs/sys/nvpair.h:226:68: error: unknown type name 'uint_t'; did you mean 'u_int8_t'?
226 | int nvlist_lookup_string_array(nvlist_t *, const char *, char ***, uint_t *);
| ^~~~~~
| u_int8_t
/usr/include/libzfs/sys/nvpair.h:228:19: error: unknown type name 'uint_t'; did you mean 'u_int8_t'?
228 | nvlist_t ***, uint_t *);
| ^~~~~~
| u_int8_t
/usr/include/libzfs/sys/nvpair.h:229:52: error: unknown type name 'hrtime_t'; did you mean 'time_t'?
229 | int nvlist_lookup_hrtime(nvlist_t *, const char *, hrtime_t *);
| ^~~~~~~~
| time_t
/usr/include/libzfs/sys/nvpair.h:238:1: error: unknown type name 'boolean_t'
238 | boolean_t nvlist_exists(nvlist_t *, const char *);
| ^~~~~~~~~
/usr/include/libzfs/sys/nvpair.h:239:1: error: unknown type name 'boolean_t'
239 | boolean_t nvlist_empty(nvlist_t *);
| ^~~~~~~~~
/usr/include/libzfs/sys/nvpair.h:247:44: error: unknown type name 'boolean_t'
247 | int nvpair_value_boolean_value(nvpair_t *, boolean_t *);
| ^~~~~~~~~
/usr/include/libzfs/sys/nvpair.h:248:35: error: unknown type name 'uchar_t'
248 | int nvpair_value_byte(nvpair_t *, uchar_t *);
| ^~~~~~~
/usr/include/libzfs/sys/nvpair.h:250:36: error: unknown type name 'uint8_t'; did you mean 'u_int8_t'?
250 | int nvpair_value_uint8(nvpair_t *, uint8_t *);
| ^~~~~~~
| u_int8_t
/usr/include/libzfs/sys/nvpair.h:252:37: error: unknown type name 'uint16_t'; did you mean 'u_int16_t'?
252 | int nvpair_value_uint16(nvpair_t *, uint16_t *);
| ^~~~~~~~
| u_int16_t
/usr/include/libzfs/sys/nvpair.h:254:37: error: unknown type name 'uint32_t'; did you mean 'u_int32_t'?
254 | int nvpair_value_uint32(nvpair_t *, uint32_t *);
| ^~~~~~~~
| u_int32_t
/usr/include/libzfs/sys/nvpair.h:256:37: error: unknown type name 'uint64_t'; did you mean 'u_int64_t'?
256 | int nvpair_value_uint64(nvpair_t *, uint64_t *);
| ^~~~~~~~
| u_int64_t
/usr/include/libzfs/sys/nvpair.h:259:44: error: unknown type name 'boolean_t'
259 | int nvpair_value_boolean_array(nvpair_t *, boolean_t **, uint_t *);
| ^~~~~~~~~
/usr/include/libzfs/sys/nvpair.h:259:58: error: unknown type name 'uint_t'; did you mean 'u_int8_t'?
259 | int nvpair_value_boolean_array(nvpair_t *, boolean_t **, uint_t *);
| ^~~~~~
| u_int8_t
/usr/include/libzfs/sys/nvpair.h:260:41: error: unknown type name 'uchar_t'
260 | int nvpair_value_byte_array(nvpair_t *, uchar_t **, uint_t *);
| ^~~~~~~
/usr/include/libzfs/sys/nvpair.h:260:53: error: unknown type name 'uint_t'; did you mean 'u_int8_t'?
260 | int nvpair_value_byte_array(nvpair_t *, uchar_t **, uint_t *);
| ^~~~~~
| u_int8_t
/usr/include/libzfs/sys/nvpair.h:261:52: error: unknown type name 'uint_t'; did you mean 'u_int8_t'?
261 | int nvpair_value_int8_array(nvpair_t *, int8_t **, uint_t *);
| ^~~~~~
| u_int8_t
/usr/include/libzfs/sys/nvpair.h:262:42: error: unknown type name 'uint8_t'; did you mean 'u_int8_t'?
262 | int nvpair_value_uint8_array(nvpair_t *, uint8_t **, uint_t *);
| ^~~~~~~
| u_int8_t
/usr/include/libzfs/sys/nvpair.h:262:54: error: unknown type name 'uint_t'; did you mean 'u_int8_t'?
262 | int nvpair_value_uint8_array(nvpair_t *, uint8_t **, uint_t *);
| ^~~~~~
| u_int8_t
/usr/include/libzfs/sys/nvpair.h:263:54: error: unknown type name 'uint_t'; did you mean 'u_int8_t'?
263 | int nvpair_value_int16_array(nvpair_t *, int16_t **, uint_t *);
| ^~~~~~
| u_int8_t
/usr/include/libzfs/sys/nvpair.h:264:43: error: unknown type name 'uint16_t'; did you mean 'u_int16_t'?
264 | int nvpair_value_uint16_array(nvpair_t *, uint16_t **, uint_t *);
| ^~~~~~~~
| u_int16_t
/usr/include/libzfs/sys/nvpair.h:264:56: error: unknown type name 'uint_t'; did you mean 'u_int8_t'?
264 | int nvpair_value_uint16_array(nvpair_t *, uint16_t **, uint_t *);
| ^~~~~~
| u_int8_t
/usr/include/libzfs/sys/nvpair.h:265:54: error: unknown type name 'uint_t'; did you mean 'u_int8_t'?
265 | int nvpair_value_int32_array(nvpair_t *, int32_t **, uint_t *);
| ^~~~~~
| u_int8_t
/usr/include/libzfs/sys/nvpair.h:266:43: error: unknown type name 'uint32_t'; did you mean 'u_int32_t'?
266 | int nvpair_value_uint32_array(nvpair_t *, uint32_t **, uint_t *);
| ^~~~~~~~
| u_int32_t
/usr/include/libzfs/sys/nvpair.h:266:56: error: unknown type name 'uint_t'; did you mean 'u_int8_t'?
266 | int nvpair_value_uint32_array(nvpair_t *, uint32_t **, uint_t *);
| ^~~~~~
| u_int8_t
/usr/include/libzfs/sys/nvpair.h:267:54: error: unknown type name 'uint_t'; did you mean 'u_int8_t'?
267 | int nvpair_value_int64_array(nvpair_t *, int64_t **, uint_t *);
| ^~~~~~
| u_int8_t
/usr/include/libzfs/sys/nvpair.h:268:43: error: unknown type name 'uint64_t'; did you mean 'u_int64_t'?
268 | int nvpair_value_uint64_array(nvpair_t *, uint64_t **, uint_t *);
| ^~~~~~~~
| u_int64_t
/usr/include/libzfs/sys/nvpair.h:268:56: error: unknown type name 'uint_t'; did you mean 'u_int8_t'?
268 | int nvpair_value_uint64_array(nvpair_t *, uint64_t **, uint_t *);
| ^~~~~~
| u_int8_t
/usr/include/libzfs/sys/nvpair.h:269:53: error: unknown type name 'uint_t'; did you mean 'u_int8_t'?
269 | int nvpair_value_string_array(nvpair_t *, char ***, uint_t *);
| ^~~~~~
| u_int8_t
/usr/include/libzfs/sys/nvpair.h:270:57: error: unknown type name 'uint_t'; did you mean 'u_int8_t'?
270 | int nvpair_value_nvlist_array(nvpair_t *, nvlist_t ***, uint_t *);
| ^~~~~~
| u_int8_t
/usr/include/libzfs/sys/nvpair.h:271:37: error: unknown type name 'hrtime_t'; did you mean 'time_t'?
271 | int nvpair_value_hrtime(nvpair_t *, hrtime_t *);
| ^~~~~~~~
| time_t
/usr/include/libzfs/sys/nvpair.h:287:58: error: unknown type name 'boolean_t'
287 | void fnvlist_add_boolean_value(nvlist_t *, const char *, boolean_t);
| ^~~~~~~~~
/usr/include/libzfs/sys/nvpair.h:288:49: error: unknown type name 'uchar_t'
288 | void fnvlist_add_byte(nvlist_t *, const char *, uchar_t);
| ^~~~~~~
/usr/include/libzfs/sys/nvpair.h:290:50: error: unknown type name 'uint8_t'; did you mean 'u_int8_t'?
290 | void fnvlist_add_uint8(nvlist_t *, const char *, uint8_t);
| ^~~~~~~
| u_int8_t
/usr/include/libzfs/sys/nvpair.h:292:51: error: unknown type name 'uint16_t'; did you mean 'u_int16_t'?
292 | void fnvlist_add_uint16(nvlist_t *, const char *, uint16_t);
| ^~~~~~~~
| u_int16_t
/usr/include/libzfs/sys/nvpair.h:294:51: error: unknown type name 'uint32_t'; did you mean 'u_int32_t'?
294 | void fnvlist_add_uint32(nvlist_t *, const char *, uint32_t);
| ^~~~~~~~
| u_int32_t
/usr/include/libzfs/sys/nvpair.h:296:51: error: unknown type name 'uint64_t'; did you mean 'u_int64_t'?
296 | void fnvlist_add_uint64(nvlist_t *, const char *, uint64_t);
| ^~~~~~~~
| u_int64_t
/usr/include/libzfs/sys/nvpair.h:300:58: error: unknown type name 'boolean_t'
300 | void fnvlist_add_boolean_array(nvlist_t *, const char *, boolean_t *, uint_t);
| ^~~~~~~~~
/usr/include/libzfs/sys/nvpair.h:300:71: error: unknown type name 'uint_t'; did you mean 'u_int8_t'?
300 | void fnvlist_add_boolean_array(nvlist_t *, const char *, boolean_t *, uint_t);
| ^~~~~~
| u_int8_t
/usr/include/libzfs/sys/nvpair.h:301:55: error: unknown type name 'uchar_t'
301 | void fnvlist_add_byte_array(nvlist_t *, const char *, uchar_t *, uint_t);
| ^~~~~~~
/usr/include/libzfs/sys/nvpair.h:301:66: error: unknown type name 'uint_t'; did you mean 'u_int8_t'?
301 | void fnvlist_add_byte_array(nvlist_t *, const char *, uchar_t *, uint_t);
| ^~~~~~
| u_int8_t
/usr/include/libzfs/sys/nvpair.h:302:65: error: unknown type name 'uint_t'; did you mean 'u_int8_t'?
302 | void fnvlist_add_int8_array(nvlist_t *, const char *, int8_t *, uint_t);
| ^~~~~~
| u_int8_t
/usr/include/libzfs/sys/nvpair.h:303:56: error: unknown type name 'uint8_t'; did you mean 'u_int8_t'?
303 | void fnvlist_add_uint8_array(nvlist_t *, const char *, uint8_t *, uint_t);
| ^~~~~~~
| u_int8_t
/usr/include/libzfs/sys/nvpair.h:303:67: error: unknown type name 'uint_t'; did you mean 'u_int8_t'?
303 | void fnvlist_add_uint8_array(nvlist_t *, const char *, uint8_t *, uint_t);
| ^~~~~~
| u_int8_t
/usr/include/libzfs/sys/nvpair.h:304:67: error: unknown type name 'uint_t'; did you mean 'u_int8_t'?
304 | void fnvlist_add_int16_array(nvlist_t *, const char *, int16_t *, uint_t);
| ^~~~~~
| u_int8_t
/usr/include/libzfs/sys/nvpair.h:305:57: error: unknown type name 'uint16_t'; did you mean 'u_int16_t'?
305 | void fnvlist_add_uint16_array(nvlist_t *, const char *, uint16_t *, uint_t);
| ^~~~~~~~
| u_int16_t
/usr/include/libzfs/sys/nvpair.h:305:69: error: unknown type name 'uint_t'; did you mean 'u_int8_t'?
305 | void fnvlist_add_uint16_array(nvlist_t *, const char *, uint16_t *, uint_t);
| ^~~~~~
| u_int8_t
/usr/include/libzfs/sys/nvpair.h:306:67: error: unknown type name 'uint_t'; did you mean 'u_int8_t'?
306 | void fnvlist_add_int32_array(nvlist_t *, const char *, int32_t *, uint_t);
| ^~~~~~
| u_int8_t
/usr/include/libzfs/sys/nvpair.h:307:57: error: unknown type name 'uint32_t'; did you mean 'u_int32_t'?
307 | void fnvlist_add_uint32_array(nvlist_t *, const char *, uint32_t *, uint_t);
| ^~~~~~~~
| u_int32_t
/usr/include/libzfs/sys/nvpair.h:307:69: error: unknown type name 'uint_t'; did you mean 'u_int8_t'?
307 | void fnvlist_add_uint32_array(nvlist_t *, const char *, uint32_t *, uint_t);
| ^~~~~~
| u_int8_t
/usr/include/libzfs/sys/nvpair.h:308:67: error: unknown type name 'uint_t'; did you mean 'u_int8_t'?
308 | void fnvlist_add_int64_array(nvlist_t *, const char *, int64_t *, uint_t);
| ^~~~~~
| u_int8_t
/usr/include/libzfs/sys/nvpair.h:309:57: error: unknown type name 'uint64_t'; did you mean 'u_int64_t'?
309 | void fnvlist_add_uint64_array(nvlist_t *, const char *, uint64_t *, uint_t);
| ^~~~~~~~
| u_int64_t
/usr/include/libzfs/sys/nvpair.h:309:69: error: unknown type name 'uint_t'; did you mean 'u_int8_t'?
309 | void fnvlist_add_uint64_array(nvlist_t *, const char *, uint64_t *, uint_t);
| ^~~~~~
| u_int8_t
/usr/include/libzfs/sys/nvpair.h:310:73: error: unknown type name 'uint_t'; did you mean 'u_int8_t'?
310 | void fnvlist_add_string_array(nvlist_t *, const char *, char * const *, uint_t);
| ^~~~~~
| u_int8_t
/usr/include/libzfs/sys/nvpair.h:311:70: error: unknown type name 'uint_t'; did you mean 'u_int8_t'?
311 | void fnvlist_add_nvlist_array(nvlist_t *, const char *, nvlist_t **, uint_t);
| ^~~~~~
| u_int8_t
/usr/include/libzfs/sys/nvpair.h:317:1: error: unknown type name 'boolean_t'
317 | boolean_t fnvlist_lookup_boolean(nvlist_t *, const char *);
| ^~~~~~~~~
/usr/include/libzfs/sys/nvpair.h:318:1: error: unknown type name 'boolean_t'
318 | boolean_t fnvlist_lookup_boolean_value(nvlist_t *, const char *);
| ^~~~~~~~~
/usr/include/libzfs/sys/nvpair.h:319:1: error: unknown type name 'uchar_t'
319 | uchar_t fnvlist_lookup_byte(nvlist_t *, const char *);
| ^~~~~~~
/usr/include/libzfs/sys/nvpair.h:324:1: error: unknown type name 'uint8_t'; did you mean 'u_int8_t'?
324 | uint8_t fnvlist_lookup_uint8(nvlist_t *, const char *);
| ^~~~~~~
| u_int8_t
/usr/include/libzfs/sys/nvpair.h:325:1: error: unknown type name 'uint16_t'; did you mean 'u_int16_t'?
325 | uint16_t fnvlist_lookup_uint16(nvlist_t *, const char *);
| ^~~~~~~~
| u_int16_t
/usr/include/libzfs/sys/nvpair.h:326:1: error: unknown type name 'uint32_t'; did you mean 'u_int32_t'?
326 | uint32_t fnvlist_lookup_uint32(nvlist_t *, const char *);
| ^~~~~~~~
| u_int32_t
/usr/include/libzfs/sys/nvpair.h:327:1: error: unknown type name 'uint64_t'; did you mean 'u_int64_t'?
327 | uint64_t fnvlist_lookup_uint64(nvlist_t *, const char *);
| ^~~~~~~~
| u_int64_t
/usr/include/libzfs/sys/nvpair.h:330:1: error: unknown type name 'boolean_t'
330 | boolean_t *fnvlist_lookup_boolean_array(nvlist_t *, const char *, uint_t *);
| ^~~~~~~~~
/usr/include/libzfs/sys/nvpair.h:330:67: error: unknown type name 'uint_t'; did you mean 'u_int8_t'?
330 | boolean_t *fnvlist_lookup_boolean_array(nvlist_t *, const char *, uint_t *);
| ^~~~~~
| u_int8_t
/usr/include/libzfs/sys/nvpair.h:331:1: error: unknown type name 'uchar_t'
331 | uchar_t *fnvlist_lookup_byte_array(nvlist_t *, const char *, uint_t *);
| ^~~~~~~
/usr/include/libzfs/sys/nvpair.h:331:62: error: unknown type name 'uint_t'; did you mean 'u_int8_t'?
331 | uchar_t *fnvlist_lookup_byte_array(nvlist_t *, const char *, uint_t *);
| ^~~~~~
| u_int8_t
/usr/include/libzfs/sys/nvpair.h:332:61: error: unknown type name 'uint_t'; did you mean 'u_int8_t'?
332 | int8_t *fnvlist_lookup_int8_array(nvlist_t *, const char *, uint_t *);
| ^~~~~~
| u_int8_t
/usr/include/libzfs/sys/nvpair.h:333:1: error: unknown type name 'uint8_t'; did you mean 'u_int8_t'?
333 | uint8_t *fnvlist_lookup_uint8_array(nvlist_t *, const char *, uint_t *);
| ^~~~~~~
| u_int8_t
/usr/include/libzfs/sys/nvpair.h:333:63: error: unknown type name 'uint_t'; did you mean 'u_int8_t'?
333 | uint8_t *fnvlist_lookup_uint8_array(nvlist_t *, const char *, uint_t *);
| ^~~~~~
| u_int8_t
/usr/include/libzfs/sys/nvpair.h:334:63: error: unknown type name 'uint_t'; did you mean 'u_int8_t'?
334 | int16_t *fnvlist_lookup_int16_array(nvlist_t *, const char *, uint_t *);
| ^~~~~~
| u_int8_t
/usr/include/libzfs/sys/nvpair.h:335:1: error: unknown type name 'uint16_t'; did you mean 'u_int16_t'?
335 | uint16_t *fnvlist_lookup_uint16_array(nvlist_t *, const char *, uint_t *);
| ^~~~~~~~
| u_int16_t
/usr/include/libzfs/sys/nvpair.h:335:65: error: unknown type name 'uint_t'; did you mean 'u_int8_t'?
335 | uint16_t *fnvlist_lookup_uint16_array(nvlist_t *, const char *, uint_t *);
| ^~~~~~
| u_int8_t
/usr/include/libzfs/sys/nvpair.h:336:63: error: unknown type name 'uint_t'; did you mean 'u_int8_t'?
336 | int32_t *fnvlist_lookup_int32_array(nvlist_t *, const char *, uint_t *);
| ^~~~~~
| u_int8_t
/usr/include/libzfs/sys/nvpair.h:337:1: error: unknown type name 'uint32_t'; did you mean 'u_int32_t'?
337 | uint32_t *fnvlist_lookup_uint32_array(nvlist_t *, const char *, uint_t *);
| ^~~~~~~~
| u_int32_t
/usr/include/libzfs/sys/nvpair.h:337:65: error: unknown type name 'uint_t'; did you mean 'u_int8_t'?
337 | uint32_t *fnvlist_lookup_uint32_array(nvlist_t *, const char *, uint_t *);
| ^~~~~~
| u_int8_t
/usr/include/libzfs/sys/nvpair.h:338:63: error: unknown type name 'uint_t'; did you mean 'u_int8_t'?
338 | int64_t *fnvlist_lookup_int64_array(nvlist_t *, const char *, uint_t *);
| ^~~~~~
| u_int8_t
/usr/include/libzfs/sys/nvpair.h:339:1: error: unknown type name 'uint64_t'; did you mean 'u_int64_t'?
339 | uint64_t *fnvlist_lookup_uint64_array(nvlist_t *, const char *, uint_t *);
| ^~~~~~~~
| u_int64_t
/usr/include/libzfs/sys/nvpair.h:339:65: error: unknown type name 'uint_t'; did you mean 'u_int8_t'?
339 | uint64_t *fnvlist_lookup_uint64_array(nvlist_t *, const char *, uint_t *);
| ^~~~~~
| u_int8_t
/usr/include/libzfs/sys/nvpair.h:341:1: error: unknown type name 'boolean_t'
341 | boolean_t fnvpair_value_boolean_value(nvpair_t *nvp);
| ^~~~~~~~~
/usr/include/libzfs/sys/nvpair.h:342:1: error: unknown type name 'uchar_t'
342 | uchar_t fnvpair_value_byte(nvpair_t *nvp);
| ^~~~~~~
/usr/include/libzfs/sys/nvpair.h:347:1: error: unknown type name 'uint8_t'; did you mean 'u_int8_t'?
347 | uint8_t fnvpair_value_uint8(nvpair_t *nvp);
| ^~~~~~~
| u_int8_t
/usr/include/libzfs/sys/nvpair.h:348:1: error: unknown type name 'uint16_t'; did you mean 'u_int16_t'?
348 | uint16_t fnvpair_value_uint16(nvpair_t *nvp);
| ^~~~~~~~
| u_int16_t
/usr/include/libzfs/sys/nvpair.h:349:1: error: unknown type name 'uint32_t'; did you mean 'u_int32_t'?
349 | uint32_t fnvpair_value_uint32(nvpair_t *nvp);
| ^~~~~~~~
| u_int32_t
/usr/include/libzfs/sys/nvpair.h:350:1: error: unknown type name 'uint64_t'; did you mean 'u_int64_t'?
350 | uint64_t fnvpair_value_uint64(nvpair_t *nvp);
| ^~~~~~~~
| u_int64_t
In file included from /usr/include/libzfs/libzfs.h:37,
from /root/zectl/include/libze/libze.h:4,
from /root/zectl/lib/libze/libze.c:6:
/usr/include/libzfs/libnvpair.h:147:1: error: unknown type name 'boolean_t'
147 | NVLIST_PRINTCTL_SVDECL(nvlist_prtctlop_boolean_value, boolean_t);
| ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/libzfs/libnvpair.h:147:1: error: expected ';', ',' or ')' before 'void'
147 | NVLIST_PRINTCTL_SVDECL(nvlist_prtctlop_boolean_value, boolean_t);
| ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/libzfs/libnvpair.h:148:1: error: unknown type name 'uchar_t'; did you mean 'wchar_t'?
148 | NVLIST_PRINTCTL_SVDECL(nvlist_prtctlop_byte, uchar_t);
| ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/libzfs/libnvpair.h:148:1: error: expected ';', ',' or ')' before 'void'
148 | NVLIST_PRINTCTL_SVDECL(nvlist_prtctlop_byte, uchar_t);
| ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/libzfs/libnvpair.h:150:1: error: unknown type name 'uint8_t'; did you mean 'u_int8_t'?
150 | NVLIST_PRINTCTL_SVDECL(nvlist_prtctlop_uint8, uint8_t);
| ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/libzfs/libnvpair.h:150:1: error: expected ';', ',' or ')' before 'void'
150 | NVLIST_PRINTCTL_SVDECL(nvlist_prtctlop_uint8, uint8_t);
| ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/libzfs/libnvpair.h:152:1: error: unknown type name 'uint16_t'; did you mean 'u_int16_t'?
152 | NVLIST_PRINTCTL_SVDECL(nvlist_prtctlop_uint16, uint16_t);
| ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/libzfs/libnvpair.h:152:1: error: expected ';', ',' or ')' before 'void'
152 | NVLIST_PRINTCTL_SVDECL(nvlist_prtctlop_uint16, uint16_t);
| ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/libzfs/libnvpair.h:154:1: error: unknown type name 'uint32_t'; did you mean 'u_int32_t'?
154 | NVLIST_PRINTCTL_SVDECL(nvlist_prtctlop_uint32, uint32_t);
| ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/libzfs/libnvpair.h:154:1: error: expected ';', ',' or ')' before 'void'
154 | NVLIST_PRINTCTL_SVDECL(nvlist_prtctlop_uint32, uint32_t);
| ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/libzfs/libnvpair.h:156:1: error: unknown type name 'uint64_t'; did you mean 'u_int64_t'?
156 | NVLIST_PRINTCTL_SVDECL(nvlist_prtctlop_uint64, uint64_t);
| ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/libzfs/libnvpair.h:156:1: error: expected ';', ',' or ')' before 'void'
156 | NVLIST_PRINTCTL_SVDECL(nvlist_prtctlop_uint64, uint64_t);
| ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/libzfs/libnvpair.h:159:1: error: unknown type name 'hrtime_t'; did you mean 'time_t'?
159 | NVLIST_PRINTCTL_SVDECL(nvlist_prtctlop_hrtime, hrtime_t);
| ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/libzfs/libnvpair.h:159:1: error: expected ';', ',' or ')' before 'void'
159 | NVLIST_PRINTCTL_SVDECL(nvlist_prtctlop_hrtime, hrtime_t);
| ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/libzfs/libnvpair.h:177:1: error: unknown type name 'boolean_t'
177 | NVLIST_PRINTCTL_AVDECL(nvlist_prtctlop_boolean_array, boolean_t *);
| ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/libzfs/libnvpair.h:177:1: error: unknown type name 'uint_t'; did you mean 'u_int8_t'?
177 | NVLIST_PRINTCTL_AVDECL(nvlist_prtctlop_boolean_array, boolean_t *);
| ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/libzfs/libnvpair.h:177:1: error: expected ';', ',' or ')' before 'void'
177 | NVLIST_PRINTCTL_AVDECL(nvlist_prtctlop_boolean_array, boolean_t *);
| ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/libzfs/libnvpair.h:178:1: error: unknown type name 'uchar_t'; did you mean 'wchar_t'?
178 | NVLIST_PRINTCTL_AVDECL(nvlist_prtctlop_byte_array, uchar_t *);
| ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/libzfs/libnvpair.h:178:1: error: unknown type name 'uint_t'; did you mean 'u_int8_t'?
178 | NVLIST_PRINTCTL_AVDECL(nvlist_prtctlop_byte_array, uchar_t *);
| ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/libzfs/libnvpair.h:178:1: error: expected ';', ',' or ')' before 'void'
178 | NVLIST_PRINTCTL_AVDECL(nvlist_prtctlop_byte_array, uchar_t *);
| ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/libzfs/libnvpair.h:179:1: error: unknown type name 'uint_t'; did you mean 'u_int8_t'?
179 | NVLIST_PRINTCTL_AVDECL(nvlist_prtctlop_int8_array, int8_t *);
| ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/libzfs/libnvpair.h:179:1: error: expected ';', ',' or ')' before 'void'
179 | NVLIST_PRINTCTL_AVDECL(nvlist_prtctlop_int8_array, int8_t *);
| ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/libzfs/libnvpair.h:180:1: error: unknown type name 'uint8_t'; did you mean 'u_int8_t'?
180 | NVLIST_PRINTCTL_AVDECL(nvlist_prtctlop_uint8_array, uint8_t *);
| ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/libzfs/libnvpair.h:180:1: error: unknown type name 'uint_t'; did you mean 'u_int8_t'?
180 | NVLIST_PRINTCTL_AVDECL(nvlist_prtctlop_uint8_array, uint8_t *);
| ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/libzfs/libnvpair.h:180:1: error: expected ';', ',' or ')' before 'void'
180 | NVLIST_PRINTCTL_AVDECL(nvlist_prtctlop_uint8_array, uint8_t *);
| ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/libzfs/libnvpair.h:181:1: error: unknown type name 'uint_t'; did you mean 'u_int8_t'?
181 | NVLIST_PRINTCTL_AVDECL(nvlist_prtctlop_int16_array, int16_t *);
| ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/libzfs/libnvpair.h:181:1: error: expected ';', ',' or ')' before 'void'
181 | NVLIST_PRINTCTL_AVDECL(nvlist_prtctlop_int16_array, int16_t *);
| ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/libzfs/libnvpair.h:182:1: error: unknown type name 'uint16_t'; did you mean 'u_int16_t'?
182 | NVLIST_PRINTCTL_AVDECL(nvlist_prtctlop_uint16_array, uint16_t *);
| ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/libzfs/libnvpair.h:182:1: error: unknown type name 'uint_t'; did you mean 'u_int8_t'?
182 | NVLIST_PRINTCTL_AVDECL(nvlist_prtctlop_uint16_array, uint16_t *);
| ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/libzfs/libnvpair.h:182:1: error: expected ';', ',' or ')' before 'void'
182 | NVLIST_PRINTCTL_AVDECL(nvlist_prtctlop_uint16_array, uint16_t *);
| ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/libzfs/libnvpair.h:183:1: error: unknown type name 'uint_t'; did you mean 'u_int8_t'?
183 | NVLIST_PRINTCTL_AVDECL(nvlist_prtctlop_int32_array, int32_t *);
| ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/libzfs/libnvpair.h:183:1: error: expected ';', ',' or ')' before 'void'
183 | NVLIST_PRINTCTL_AVDECL(nvlist_prtctlop_int32_array, int32_t *);
| ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/libzfs/libnvpair.h:184:1: error: unknown type name 'uint32_t'; did you mean 'u_int32_t'?
184 | NVLIST_PRINTCTL_AVDECL(nvlist_prtctlop_uint32_array, uint32_t *);
| ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/libzfs/libnvpair.h:184:1: error: unknown type name 'uint_t'; did you mean 'u_int8_t'?
184 | NVLIST_PRINTCTL_AVDECL(nvlist_prtctlop_uint32_array, uint32_t *);
| ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/libzfs/libnvpair.h:184:1: error: expected ';', ',' or ')' before 'void'
184 | NVLIST_PRINTCTL_AVDECL(nvlist_prtctlop_uint32_array, uint32_t *);
| ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/libzfs/libnvpair.h:185:1: error: unknown type name 'uint_t'; did you mean 'u_int8_t'?
185 | NVLIST_PRINTCTL_AVDECL(nvlist_prtctlop_int64_array, int64_t *);
| ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/libzfs/libnvpair.h:185:1: error: expected ';', ',' or ')' before 'void'
185 | NVLIST_PRINTCTL_AVDECL(nvlist_prtctlop_int64_array, int64_t *);
| ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/libzfs/libnvpair.h:186:1: error: unknown type name 'uint64_t'; did you mean 'u_int64_t'?
186 | NVLIST_PRINTCTL_AVDECL(nvlist_prtctlop_uint64_array, uint64_t *);
| ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/libzfs/libnvpair.h:186:1: error: unknown type name 'uint_t'; did you mean 'u_int8_t'?
186 | NVLIST_PRINTCTL_AVDECL(nvlist_prtctlop_uint64_array, uint64_t *);
| ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/libzfs/libnvpair.h:186:1: error: expected ';', ',' or ')' before 'void'
186 | NVLIST_PRINTCTL_AVDECL(nvlist_prtctlop_uint64_array, uint64_t *);
| ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/libzfs/libnvpair.h:187:1: error: unknown type name 'uint_t'; did you mean 'u_int8_t'?
187 | NVLIST_PRINTCTL_AVDECL(nvlist_prtctlop_string_array, char **);
| ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/libzfs/libnvpair.h:187:1: error: expected ';', ',' or ')' before 'void'
187 | NVLIST_PRINTCTL_AVDECL(nvlist_prtctlop_string_array, char **);
| ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/libzfs/libnvpair.h:188:1: error: unknown type name 'uint_t'; did you mean 'u_int8_t'?
188 | NVLIST_PRINTCTL_AVDECL(nvlist_prtctlop_nvlist_array, nvlist_t **);
| ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/libzfs/libnvpair.h:188:1: error: expected ';', ',' or ')' before 'void'
188 | NVLIST_PRINTCTL_AVDECL(nvlist_prtctlop_nvlist_array, nvlist_t **);
| ^~~~~~~~~~~~~~~~~~~~~~
In file included from /root/zectl/include/libze/libze.h:4,
from /root/zectl/lib/libze/libze.c:6:
/usr/include/libzfs/libzfs.h:38:10: fatal error: sys/mnttab.h: No such file or directory
38 | #include <sys/mnttab.h>
| ^~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [lib/libze/CMakeFiles/libze.dir/build.make:63: lib/libze/CMakeFiles/libze.dir/libze.c.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:154: lib/libze/CMakeFiles/libze.dir/all] Error 2
make: *** [Makefile:130: all] Error 2
Actually it is a mistake on my end. Apologies for the confusion. Thanks ( I'll be closing this )