Per Gunnarsson
2018-01-27 17:54:03 UTC
I am back with new build errors. If I post too frequently, please inform me.
/usr/src/sys/compat/freebsd32/freebsd32_misc.c:122:1: error:
static_assert failed "compile-time assertion failed"
CTASSERT(sizeof(struct kevent32) == 20);
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/src/sys/sys/systm.h:107:21: note: expanded from macro 'CTASSERT'
#define CTASSERT(x) _Static_assert(x, "compile-time assertion failed")
^ ~
/usr/src/sys/compat/freebsd32/freebsd32_misc.c:126:1: error:
static_assert failed "compile-time assertion failed"
CTASSERT(sizeof(struct stat32) == 96);
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/src/sys/sys/systm.h:107:21: note: expanded from macro 'CTASSERT'
#define CTASSERT(x) _Static_assert(x, "compile-time assertion failed")
^ ~
/usr/src/sys/compat/freebsd32/freebsd32_misc.c:612:24: error: no member
named 'data' in 'struct kevent32'
CP(kevp[i], ks32[i], data);
~~~~~~~~~~~~~~~~~~~~~^~~~~
/usr/src/sys/compat/freebsd32/freebsd32.h:41:36: note: expanded from
macro 'CP'
#define CP(src,dst,fld) do { (dst).fld = (src).fld; } while (0)
~~~~~ ^
/usr/src/sys/compat/freebsd32/freebsd32_misc.c:644:24: error: no member
named 'data' in 'struct kevent32'
CP(ks32[i], kevp[i], data);
~~~~~~~~~~~~~~~~~~~~~^~~~~
/usr/src/sys/compat/freebsd32/freebsd32.h:41:48: note: expanded from
macro 'CP'
#define CP(src,dst,fld) do { (dst).fld = (src).fld; } while (0)
~~~~~ ^
/usr/src/sys/compat/freebsd32/freebsd32_misc.c:1738:42: error:
declaration of 'struct freebsd32_stat_args' will not be visible outside
of this function [-Werror,-Wvisibility]
freebsd32_stat(struct thread *td, struct freebsd32_stat_args *uap)
^
/usr/src/sys/compat/freebsd32/freebsd32_misc.c:1744:42: error:
incomplete definition of type 'struct freebsd32_stat_args'
error = kern_statat(td, 0, AT_FDCWD, uap->path, UIO_USERSPACE,
~~~^
/usr/src/sys/compat/freebsd32/freebsd32_misc.c:1738:42: note: forward
declaration of 'struct freebsd32_stat_args'
freebsd32_stat(struct thread *td, struct freebsd32_stat_args *uap)
^
/usr/src/sys/compat/freebsd32/freebsd32_misc.c:1749:28: error:
incomplete definition of type 'struct freebsd32_stat_args'
error = copyout(&sb32, uap->ub, sizeof (sb32));
~~~^
/usr/src/sys/compat/freebsd32/freebsd32_misc.c:1738:42: note: forward
declaration of 'struct freebsd32_stat_args'
freebsd32_stat(struct thread *td, struct freebsd32_stat_args *uap)
^
/usr/src/sys/compat/freebsd32/freebsd32_misc.c:1738:1: error: no
previous prototype for function 'freebsd32_stat'
[-Werror,-Wmissing-prototypes]
freebsd32_stat(struct thread *td, struct freebsd32_stat_args *uap)
^
/usr/src/sys/compat/freebsd32/freebsd32_misc.c:1820:43: error:
declaration of 'struct freebsd32_lstat_args' will not be visible outside
of this function [-Werror,-Wvisibility]
freebsd32_lstat(struct thread *td, struct freebsd32_lstat_args *uap)
^
/usr/src/sys/compat/freebsd32/freebsd32_misc.c:1826:60: error:
incomplete definition of type 'struct freebsd32_lstat_args'
error = kern_statat(td, AT_SYMLINK_NOFOLLOW, AT_FDCWD, uap->path,
~~~^
/usr/src/sys/compat/freebsd32/freebsd32_misc.c:1820:43: note: forward
declaration of 'struct freebsd32_lstat_args'
freebsd32_lstat(struct thread *td, struct freebsd32_lstat_args *uap)
^
/usr/src/sys/compat/freebsd32/freebsd32_misc.c:1831:28: error:
incomplete definition of type 'struct freebsd32_lstat_args'
error = copyout(&sb32, uap->ub, sizeof (sb32));
~~~^
/usr/src/sys/compat/freebsd32/freebsd32_misc.c:1820:43: note: forward
declaration of 'struct freebsd32_lstat_args'
freebsd32_lstat(struct thread *td, struct freebsd32_lstat_args *uap)
^
/usr/src/sys/compat/freebsd32/freebsd32_misc.c:1820:1: error: no
previous prototype for function 'freebsd32_lstat'
[-Werror,-Wmissing-prototypes]
freebsd32_lstat(struct thread *td, struct freebsd32_lstat_args *uap)
^
12 errors generated.
*** Error code 1
Stop.
make[2]: stopped in /usr/obj/usr/src/amd64.amd64/sys/GENERIC
*** Error code 1
Stop.
make[1]: stopped in /usr/src
*** Error code 1
Stop.
make: stopped in /usr/src
Regards,
Per Gunnarsson
/usr/src/sys/compat/freebsd32/freebsd32_misc.c:122:1: error:
static_assert failed "compile-time assertion failed"
CTASSERT(sizeof(struct kevent32) == 20);
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/src/sys/sys/systm.h:107:21: note: expanded from macro 'CTASSERT'
#define CTASSERT(x) _Static_assert(x, "compile-time assertion failed")
^ ~
/usr/src/sys/compat/freebsd32/freebsd32_misc.c:126:1: error:
static_assert failed "compile-time assertion failed"
CTASSERT(sizeof(struct stat32) == 96);
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/src/sys/sys/systm.h:107:21: note: expanded from macro 'CTASSERT'
#define CTASSERT(x) _Static_assert(x, "compile-time assertion failed")
^ ~
/usr/src/sys/compat/freebsd32/freebsd32_misc.c:612:24: error: no member
named 'data' in 'struct kevent32'
CP(kevp[i], ks32[i], data);
~~~~~~~~~~~~~~~~~~~~~^~~~~
/usr/src/sys/compat/freebsd32/freebsd32.h:41:36: note: expanded from
macro 'CP'
#define CP(src,dst,fld) do { (dst).fld = (src).fld; } while (0)
~~~~~ ^
/usr/src/sys/compat/freebsd32/freebsd32_misc.c:644:24: error: no member
named 'data' in 'struct kevent32'
CP(ks32[i], kevp[i], data);
~~~~~~~~~~~~~~~~~~~~~^~~~~
/usr/src/sys/compat/freebsd32/freebsd32.h:41:48: note: expanded from
macro 'CP'
#define CP(src,dst,fld) do { (dst).fld = (src).fld; } while (0)
~~~~~ ^
/usr/src/sys/compat/freebsd32/freebsd32_misc.c:1738:42: error:
declaration of 'struct freebsd32_stat_args' will not be visible outside
of this function [-Werror,-Wvisibility]
freebsd32_stat(struct thread *td, struct freebsd32_stat_args *uap)
^
/usr/src/sys/compat/freebsd32/freebsd32_misc.c:1744:42: error:
incomplete definition of type 'struct freebsd32_stat_args'
error = kern_statat(td, 0, AT_FDCWD, uap->path, UIO_USERSPACE,
~~~^
/usr/src/sys/compat/freebsd32/freebsd32_misc.c:1738:42: note: forward
declaration of 'struct freebsd32_stat_args'
freebsd32_stat(struct thread *td, struct freebsd32_stat_args *uap)
^
/usr/src/sys/compat/freebsd32/freebsd32_misc.c:1749:28: error:
incomplete definition of type 'struct freebsd32_stat_args'
error = copyout(&sb32, uap->ub, sizeof (sb32));
~~~^
/usr/src/sys/compat/freebsd32/freebsd32_misc.c:1738:42: note: forward
declaration of 'struct freebsd32_stat_args'
freebsd32_stat(struct thread *td, struct freebsd32_stat_args *uap)
^
/usr/src/sys/compat/freebsd32/freebsd32_misc.c:1738:1: error: no
previous prototype for function 'freebsd32_stat'
[-Werror,-Wmissing-prototypes]
freebsd32_stat(struct thread *td, struct freebsd32_stat_args *uap)
^
/usr/src/sys/compat/freebsd32/freebsd32_misc.c:1820:43: error:
declaration of 'struct freebsd32_lstat_args' will not be visible outside
of this function [-Werror,-Wvisibility]
freebsd32_lstat(struct thread *td, struct freebsd32_lstat_args *uap)
^
/usr/src/sys/compat/freebsd32/freebsd32_misc.c:1826:60: error:
incomplete definition of type 'struct freebsd32_lstat_args'
error = kern_statat(td, AT_SYMLINK_NOFOLLOW, AT_FDCWD, uap->path,
~~~^
/usr/src/sys/compat/freebsd32/freebsd32_misc.c:1820:43: note: forward
declaration of 'struct freebsd32_lstat_args'
freebsd32_lstat(struct thread *td, struct freebsd32_lstat_args *uap)
^
/usr/src/sys/compat/freebsd32/freebsd32_misc.c:1831:28: error:
incomplete definition of type 'struct freebsd32_lstat_args'
error = copyout(&sb32, uap->ub, sizeof (sb32));
~~~^
/usr/src/sys/compat/freebsd32/freebsd32_misc.c:1820:43: note: forward
declaration of 'struct freebsd32_lstat_args'
freebsd32_lstat(struct thread *td, struct freebsd32_lstat_args *uap)
^
/usr/src/sys/compat/freebsd32/freebsd32_misc.c:1820:1: error: no
previous prototype for function 'freebsd32_lstat'
[-Werror,-Wmissing-prototypes]
freebsd32_lstat(struct thread *td, struct freebsd32_lstat_args *uap)
^
12 errors generated.
*** Error code 1
Stop.
make[2]: stopped in /usr/obj/usr/src/amd64.amd64/sys/GENERIC
*** Error code 1
Stop.
make[1]: stopped in /usr/src
*** Error code 1
Stop.
make: stopped in /usr/src
Regards,
Per Gunnarsson