Discussion:
SVN r325728 breaks build
(too old to reply)
Michael Butler
2017-11-12 00:15:35 UTC
Permalink
As follows:

--- zfs.o ---
In file included from /usr/src/lib/libprocstat/zfs.c:51:
In file included from /usr/obj/usr/src/amd64.amd64/tmp/usr/include/kvm.h:39:
/usr/obj/usr/src/amd64.amd64/tmp/usr/include/vm/vm.h:111:13: error:
typedef redefinition with different types ('int' vs 'enum boolean_t')
typedef int boolean_t;
^
/usr/src/sys/cddl/compat/opensolaris/sys/types.h:84:34: note: previous
definition is here
typedef enum { B_FALSE, B_TRUE } boolean_t;
^
imb
Will Andrews
2017-11-12 00:59:01 UTC
Permalink
Post by Michael Butler
--- zfs.o ---
typedef redefinition with different types ('int' vs 'enum boolean_t')
typedef int boolean_t;
^
/usr/src/sys/cddl/compat/opensolaris/sys/types.h:84:34: note: previous
definition is here
typedef enum { B_FALSE, B_TRUE } boolean_t;
^
imb
I have a patch being tested, will fix shortly. Thanks.
--
wca
Michael Butler
2017-11-12 02:26:15 UTC
Permalink
Post by Will Andrews
Post by Michael Butler
--- zfs.o ---
typedef redefinition with different types ('int' vs 'enum boolean_t')
typedef int boolean_t;
^
/usr/src/sys/cddl/compat/opensolaris/sys/types.h:84:34: note: previous
definition is here
typedef enum { B_FALSE, B_TRUE } boolean_t;
^
imb
I have a patch being tested, will fix shortly. Thanks.
Not with SVN r325732 ..

In file included from /usr/src/lib/libkvm/kvm_i386.c:63:
In file included from /usr/src/lib/libkvm/kvm_i386.h:33:
/usr/obj/usr/src/amd64.amd64/obj-lib32/tmp/usr/include/vm/vm.h:74:16:
error: redefinition of typedef 'vm_prot_t' is a C11 feature
[-Werror,-Wtypedef-redefinition]
typedef u_char vm_prot_t; /* protection codes */
^
/usr/src/lib/libkvm/kvm.h:45:16: note: previous definition is here
typedef u_char vm_prot_t;
^
1 error generated.
*** [kvm_i386.o] Error code 1

make[4]: stopped in /usr/src/lib/libkvm

Loading...