Build errors 9-stable r260215
Dennis Glatting
freebsd at pki2.com
Fri Jan 3 02:23:23 UTC 2014
===> usr.bin/kdump (all)
clang -O2 -pipe -I/usr/src/usr.bin/kdump/../ktrace
-I/usr/src/usr.bin/kdump -I/usr/src/usr.bin/kdump/../.. -I. -std=gnu99
-Qunused-arguments -fstack-protector -Wsystem-headers -Wall
-Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes
-Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual
-Wwrite-strings -Wswitch -Wshadow -Wunused-parameter -Wcast-align
-Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls
-Wold-style-definition -Wno-pointer-sign -Wno-empty-body
-Wno-string-plus-int -c kdump_subr.c
clang -O2 -pipe -I/usr/src/usr.bin/kdump/../ktrace
-I/usr/src/usr.bin/kdump -I/usr/src/usr.bin/kdump/../.. -I. -std=gnu99
-Qunused-arguments -fstack-protector -Wsystem-headers -Wall
-Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes
-Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual
-Wwrite-strings -Wswitch -Wshadow -Wunused-parameter -Wcast-align
-Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls
-Wold-style-definition -Wno-pointer-sign -Wno-empty-body
-Wno-string-plus-int -c /usr/src/usr.bin/kdump/kdump.c
/usr/src/usr.bin/kdump/kdump.c:1034:9: error: use of undeclared
identifier 'SYS_procctl'
case SYS_procctl:
^
/usr/src/usr.bin/kdump/kdump.c:1290:27: warning: cast from 'unsigned
char *' to 'struct utrace_rtld *' increases required alignment from 1 to
8 [-Wcast-align]
struct utrace_rtld *ut = (struct utrace_rtld *)p;
^~~~~~~~~~~~~~~~~~~~~~~
/usr/src/usr.bin/kdump/kdump.c:1376:29: warning: cast from 'unsigned
char *' to 'struct utrace_malloc *' increases required alignment from 1
to 8 [-Wcast-align]
struct utrace_malloc *ut = (struct utrace_malloc *)p;
^~~~~~~~~~~~~~~~~~~~~~~~~
/usr/src/usr.bin/kdump/kdump.c:1443:29: warning: 'memcpy' call operates
on objects of type 'struct sockaddr' while the size is based on a
different type 'struct sockaddr *' [-Wsizeof-pointer-memaccess]
memcpy(&sa_in, sa, sizeof(sa));
~~ ^~
/usr/src/usr.bin/kdump/kdump.c:1443:29: note: did you mean to
dereference the argument to 'sizeof'
(and multiply it by the number of elements)?
memcpy(&sa_in, sa, sizeof(sa));
^~
/usr/src/usr.bin/kdump/kdump.c:1468:30: warning: 'memcpy' call operates
on objects of type 'struct sockaddr' while the size is based on a
different type 'struct sockaddr *' [-Wsizeof-pointer-memaccess]
memcpy(&sa_in6, sa, sizeof(sa));
~~ ^~
/usr/src/usr.bin/kdump/kdump.c:1468:30: note: did you mean to
dereference the argument to 'sizeof'
(and multiply it by the number of elements)?
memcpy(&sa_in6, sa, sizeof(sa));
^~
/usr/src/usr.bin/kdump/kdump.c:1491:29: warning: 'memcpy' call operates
on objects of type 'struct sockaddr' while the size is based on a
different type 'struct sockaddr *' [-Wsizeof-pointer-memaccess]
memcpy(&sa_un, sa, sizeof(sa));
~~ ^~
/usr/src/usr.bin/kdump/kdump.c:1491:29: note: did you mean to
dereference the argument to 'sizeof'
(and multiply it by the number of elements)?
memcpy(&sa_un, sa, sizeof(sa));
^~
5 warnings and 1 error generated.
*** [kdump.o] Error code 1
Stop in /usr/src/usr.bin/kdump.
*** [all] Error code 1
Stop in /usr/src/usr.bin.
*** [usr.bin.all__D] Error code 1
Stop in /usr/src.
*** [everything] Error code 1
Stop in /usr/src.
*** [buildworld] Error code 1
Stop in /usr/src.
Docs#
More information about the freebsd-stable
mailing list