error and warnings on buildworld of 10.4

Miroslav Lachman 000.fbsd at quip.cz
Wed May 9 22:30:44 UTC 2018


I noticed these warnings and error when I buildworld the update from 
10.4-p8 to 10.4-p9

===> usr.bin/truss (depend)
env MACHINE=amd64 CPP="cpp "  /bin/sh 
/usr/src/usr.bin/truss/../kdump/mkioctls return 
/usr/obj/usr/src/tmp/usr/include > ioctl.c
<stdin>:1:10: fatal error: 'altq/altq.h' file not found
#include <altq/altq.h>
          ^
1 error generated.


In file included from /usr/src/usr.bin/kdump/kdump.c:57:
/usr/obj/usr/src/tmp/usr/include/sys/umtx.h:124:6: warning: implicit 
declaration of function
       'atomic_cmpset_acq_long' is invalid in C99 
[-Wimplicit-function-declaration]
         if (atomic_cmpset_acq_long(&umtx->u_owner, UMTX_UNOWNED, id) == 0)
             ^
/usr/obj/usr/src/tmp/usr/include/sys/umtx.h:151:6: warning: implicit 
declaration of function
       'atomic_cmpset_rel_long' is invalid in C99 
[-Wimplicit-function-declaration]
         if (atomic_cmpset_rel_long(&umtx->u_owner, id, UMTX_UNOWNED) == 0)
             ^
2 warnings generated.
cc  -O2 -pipe   -I/usr/src/usr.bin/kdump/../ktrace 
-I/usr/src/usr.bin/kdump -I/usr/src/usr.bin/kdump/../.. -I. -DPF 
-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 -Wmissing-variable-declarations -Wno-pointer-sign 
-Wno-empty-body -Wno-string-plus-int -Wno-unused-const-variable  -c 
ioctl.c -o ioctl.o
In file included from ioctl.c:52:
/usr/obj/usr/src/tmp/usr/include/dev/lmc/if_lmc.h:939:13: warning: no 
previous extern
       declaration for non-static variable 'ssi_cables' 
[-Wmissing-variable-declarations]
const char *ssi_cables[] =
             ^
1 warning generated.


buildworld continued and I was able to run installworld so it seems 
"everything" works, but I think there should not be these errors.

Miroslav Lachman


More information about the freebsd-stable mailing list