⬢ DragonFlyBSD Kernel Audit
DF-3528 / build.log
← back to finding ↓ download raw
Warning: Object directory not changed from original /tmp/ngcar
dragonfly -> /usr/src/sys
machine_base -> /usr/src/sys/platform/pc64
machine -> /usr/src/sys/platform/pc64/include
cpu_base -> /usr/src/sys/cpu/x86_64
cpu -> /usr/src/sys/cpu/x86_64/include
creating machine/ forwarding header /tmp/ngcar/forwarder_x86_64/include/machine/alignbytes.h
creating machine/ forwarding header /tmp/ngcar/forwarder_x86_64/include/machine/asm.h
creating machine/ forwarding header /tmp/ngcar/forwarder_x86_64/include/machine/asm_mjgmacros.h
creating machine/ forwarding header /tmp/ngcar/forwarder_x86_64/include/machine/asmacros.h
creating machine/ forwarding header /tmp/ngcar/forwarder_x86_64/include/machine/atomic.h
creating machine/ forwarding header /tmp/ngcar/forwarder_x86_64/include/machine/bus_dma.h
creating machine/ forwarding header /tmp/ngcar/forwarder_x86_64/include/machine/cpu.h
creating machine/ forwarding header /tmp/ngcar/forwarder_x86_64/include/machine/cpufunc.h
creating machine/ forwarding header /tmp/ngcar/forwarder_x86_64/include/machine/cpumask.h
creating machine/ forwarding header /tmp/ngcar/forwarder_x86_64/include/machine/cputypes.h
creating machine/ forwarding header /tmp/ngcar/forwarder_x86_64/include/machine/db_machdep.h
creating machine/ forwarding header /tmp/ngcar/forwarder_x86_64/include/machine/elf.h
creating machine/ forwarding header /tmp/ngcar/forwarder_x86_64/include/machine/endian.h
creating machine/ forwarding header /tmp/ngcar/forwarder_x86_64/include/machine/exec.h
creating machine/ forwarding header /tmp/ngcar/forwarder_x86_64/include/machine/frame.h
creating machine/ forwarding header /tmp/ngcar/forwarder_x86_64/include/machine/ieeefp.h
creating machine/ forwarding header /tmp/ngcar/forwarder_x86_64/include/machine/int_const.h
creating machine/ forwarding header /tmp/ngcar/forwarder_x86_64/include/machine/int_limits.h
creating machine/ forwarding header /tmp/ngcar/forwarder_x86_64/include/machine/inttypes.h
creating machine/ forwarding header /tmp/ngcar/forwarder_x86_64/include/machine/limits.h
creating machine/ forwarding header /tmp/ngcar/forwarder_x86_64/include/machine/lwbuf.h
creating machine/ forwarding header /tmp/ngcar/forwarder_x86_64/include/machine/npx.h
creating machine/ forwarding header /tmp/ngcar/forwarder_x86_64/include/machine/param.h
creating machine/ forwarding header /tmp/ngcar/forwarder_x86_64/include/machine/pat.h
creating machine/ forwarding header /tmp/ngcar/forwarder_x86_64/include/machine/pmap.h
creating machine/ forwarding header /tmp/ngcar/forwarder_x86_64/include/machine/profile.h
creating machine/ forwarding header /tmp/ngcar/forwarder_x86_64/include/machine/psl.h
creating machine/ forwarding header /tmp/ngcar/forwarder_x86_64/include/machine/reg.h
creating machine/ forwarding header /tmp/ngcar/forwarder_x86_64/include/machine/reloc.h
creating machine/ forwarding header /tmp/ngcar/forwarder_x86_64/include/machine/segments.h
creating machine/ forwarding header /tmp/ngcar/forwarder_x86_64/include/machine/setjmp.h
creating machine/ forwarding header /tmp/ngcar/forwarder_x86_64/include/machine/sigframe.h
creating machine/ forwarding header /tmp/ngcar/forwarder_x86_64/include/machine/signal.h
creating machine/ forwarding header /tmp/ngcar/forwarder_x86_64/include/machine/specialreg.h
creating machine/ forwarding header /tmp/ngcar/forwarder_x86_64/include/machine/stdarg.h
creating machine/ forwarding header /tmp/ngcar/forwarder_x86_64/include/machine/stdint.h
creating machine/ forwarding header /tmp/ngcar/forwarder_x86_64/include/machine/sysarch.h
creating machine/ forwarding header /tmp/ngcar/forwarder_x86_64/include/machine/tls.h
creating machine/ forwarding header /tmp/ngcar/forwarder_x86_64/include/machine/trap.h
creating machine/ forwarding header /tmp/ngcar/forwarder_x86_64/include/machine/tss.h
creating machine/ forwarding header /tmp/ngcar/forwarder_x86_64/include/machine/types.h
creating machine/ forwarding header /tmp/ngcar/forwarder_x86_64/include/machine/ucontext.h
creating machine/ forwarding header /tmp/ngcar/forwarder_x86_64/include/machine/vframe.h
creating machine/ forwarding header /tmp/ngcar/forwarder_x86_64/include/machine/wchar.h
creating machine/ forwarding header /tmp/ngcar/forwarder_x86_64/include/machine/wchar_limits.h
creating sys/ forwarding header /tmp/ngcar/forwarder_x86_64/include/aio.h
creating sys/ forwarding header /tmp/ngcar/forwarder_x86_64/include/errno.h
creating sys/ forwarding header /tmp/ngcar/forwarder_x86_64/include/fcntl.h
creating sys/ forwarding header /tmp/ngcar/forwarder_x86_64/include/linker_set.h
creating sys/ forwarding header /tmp/ngcar/forwarder_x86_64/include/poll.h
creating sys/ forwarding header /tmp/ngcar/forwarder_x86_64/include/syslog.h
creating sys/ forwarding header /tmp/ngcar/forwarder_x86_64/include/ucontext.h
cc  -O2 -pipe   -D_KERNEL -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Wcast-qual  -Wold-style-definition -Wmissing-include-dirs  -Wno-pointer-sign -Winit-self -Wundef -Wno-unused-but-set-variable -std=gnu11 -Werror -DKLD_MODULE -nostdinc  -I. -Idragonfly -I/tmp/ngcar/forwarder_x86_64/include -Idragonfly/../include -I/usr/include  -Wold-style-declaration -fno-common -ffreestanding -fno-stack-protector -fno-strict-aliasing -fno-strict-overflow -fno-asynchronous-unwind-tables -fno-omit-frame-pointer -mcmodel=kernel -mno-red-zone -mno-mmx -mno-sse -msoft-float -mno-fp-ret-in-387 -mindirect-branch=thunk-inline -I/usr/src/sys/netgraph7   -c ng_car.c
ng_car.c:57:2: error: unknown type name 'hook_p'
  hook_p  hook;  /* this (source) hook */
  ^~~~~~
ng_car.c:58:2: error: unknown type name 'hook_p'
  hook_p  dest;  /* destination hook */
  ^~~~~~
ng_car.c:62:17: error: field 'lastRefill' has incomplete type
  struct bintime lastRefill; /* last token refill time */
                 ^~~~~~~~~~
ng_car.c:70:17: error: field 'q_callout' has incomplete type
  struct callout q_callout; /* periodic queue processing routine */
                 ^~~~~~~~~
ng_car.c:71:13: error: field 'q_mtx' has incomplete type
  struct mtx q_mtx;  /* queue mutex */
             ^~~~~
ng_car.c:76:2: error: unknown type name 'node_p'
  node_p node;    /* the node itself */
  ^~~~~~
ng_car.c:82:8: error: unknown type name 'ng_constructor_t'
 static ng_constructor_t ng_car_constructor;
        ^~~~~~~~~~~~~~~~
ng_car.c:83:8: error: unknown type name 'ng_rcvmsg_t'
 static ng_rcvmsg_t ng_car_rcvmsg;
        ^~~~~~~~~~~
ng_car.c:84:8: error: unknown type name 'ng_shutdown_t'
 static ng_shutdown_t ng_car_shutdown;
        ^~~~~~~~~~~~~
ng_car.c:85:8: error: unknown type name 'ng_newhook_t'
 static ng_newhook_t ng_car_newhook;
        ^~~~~~~~~~~~
ng_car.c:86:8: error: unknown type name 'ng_rcvdata_t'
 static ng_rcvdata_t ng_car_rcvdata;
        ^~~~~~~~~~~~
ng_car.c:87:8: error: unknown type name 'ng_disconnect_t'
 static ng_disconnect_t ng_car_disconnect;
        ^~~~~~~~~~~~~~~
ng_car.c:91:22: error: unknown type name 'node_p'; did you mean 'mode_t'?
 void  ng_car_q_event(node_p node, hook_p hook, void *arg, int arg2);
                      ^~~~~~
                      mode_t
ng_car.c:91:35: error: unknown type name 'hook_p'
 void  ng_car_q_event(node_p node, hook_p hook, void *arg, int arg2);
                                   ^~~~~~
ng_car.c:92:48: error: unknown type name 'item_p'; did you mean 'nitems'?
 static void ng_car_enqueue(struct hookinfo *h, item_p item);
                                                ^~~~~~
                                                nitems
ng_car.c:127:26: error: array type has incomplete element type 'struct ng_cmdlist'
 static struct ng_cmdlist ng_car_cmdlist[] = {
                          ^~~~~~~~~~~~~~
ng_car.c:168:15: error: variable 'ng_car_typestruct' has initializer but incomplete type
 static struct ng_type ng_car_typestruct = {
               ^~~~~~~
ng_car.c:169:3: error: 'struct ng_type' has no member named 'version'
  .version = NG_ABI_VERSION,
   ^~~~~~~
ng_car.c:169:13: error: 'NG_ABI_VERSION' undeclared here (not in a function); did you mean 'NG_VERSION'?
  .version = NG_ABI_VERSION,
             ^~~~~~~~~~~~~~
             NG_VERSION
ng_car.c:169:13: error: excess elements in struct initializer [-Werror]
ng_car.c:169:13: note: (near initialization for 'ng_car_typestruct')
ng_car.c:170:3: error: 'struct ng_type' has no member named 'name'
  .name =  NG_CAR_NODE_TYPE,
   ^~~~
In file included from ng_car.c:50:
ng_car.h:34:26: error: excess elements in struct initializer [-Werror]
 #define NG_CAR_NODE_TYPE "car"
                          ^~~~~
ng_car.c:170:11: note: in expansion of macro 'NG_CAR_NODE_TYPE'
  .name =  NG_CAR_NODE_TYPE,
           ^~~~~~~~~~~~~~~~
ng_car.h:34:26: note: (near initialization for 'ng_car_typestruct')
 #define NG_CAR_NODE_TYPE "car"
                          ^~~~~
ng_car.c:170:11: note: in expansion of macro 'NG_CAR_NODE_TYPE'
  .name =  NG_CAR_NODE_TYPE,
           ^~~~~~~~~~~~~~~~
ng_car.c:171:3: error: 'struct ng_type' has no member named 'constructor'
  .constructor = ng_car_constructor,
   ^~~~~~~~~~~
ng_car.c:171:17: error: excess elements in struct initializer [-Werror]
  .constructor = ng_car_constructor,
                 ^~~~~~~~~~~~~~~~~~
ng_car.c:171:17: note: (near initialization for 'ng_car_typestruct')
ng_car.c:172:3: error: 'struct ng_type' has no member named 'rcvmsg'
  .rcvmsg = ng_car_rcvmsg,
   ^~~~~~
ng_car.c:172:12: error: excess elements in struct initializer [-Werror]
  .rcvmsg = ng_car_rcvmsg,
            ^~~~~~~~~~~~~
ng_car.c:172:12: note: (near initialization for 'ng_car_typestruct')
ng_car.c:173:3: error: 'struct ng_type' has no member named 'shutdown'
  .shutdown = ng_car_shutdown,
   ^~~~~~~~
ng_car.c:173:14: error: excess elements in struct initializer [-Werror]
  .shutdown = ng_car_shutdown,
              ^~~~~~~~~~~~~~~
ng_car.c:173:14: note: (near initialization for 'ng_car_typestruct')
ng_car.c:174:3: error: 'struct ng_type' has no member named 'newhook'
  .newhook = ng_car_newhook,
   ^~~~~~~
ng_car.c:174:13: error: excess elements in struct initializer [-Werror]
  .newhook = ng_car_newhook,
             ^~~~~~~~~~~~~~
ng_car.c:174:13: note: (near initialization for 'ng_car_typestruct')
ng_car.c:175:3: error: 'struct ng_type' has no member named 'rcvdata'
  .rcvdata = ng_car_rcvdata,
   ^~~~~~~
ng_car.c:175:13: error: excess elements in struct initializer [-Werror]
  .rcvdata = ng_car_rcvdata,
             ^~~~~~~~~~~~~~
ng_car.c:175:13: note: (near initialization for 'ng_car_typestruct')
ng_car.c:176:3: error: 'struct ng_type' has no member named 'disconnect'
  .disconnect = ng_car_disconnect,
   ^~~~~~~~~~
ng_car.c:176:16: error: excess elements in struct initializer [-Werror]
  .disconnect = ng_car_disconnect,
                ^~~~~~~~~~~~~~~~~
ng_car.c:176:16: note: (near initialization for 'ng_car_typestruct')
ng_car.c:177:3: error: 'struct ng_type' has no member named 'cmdlist'
  .cmdlist = ng_car_cmdlist,
   ^~~~~~~
ng_car.c:177:13: error: excess elements in struct initializer [-Werror]
  .cmdlist = ng_car_cmdlist,
             ^~~~~~~~~~~~~~
ng_car.c:177:13: note: (near initialization for 'ng_car_typestruct')
ng_car.c:179:19: error: expected ')' before '&' token
 NETGRAPH_INIT(car, &ng_car_typestruct);
                   ^~
                   )
ng_car.c:185:20: error: unknown type name 'node_p'; did you mean 'mode_t'?
 ng_car_constructor(node_p node)
                    ^~~~~~
                    mode_t
ng_car.c:238:16: error: unknown type name 'node_p'; did you mean 'mode_t'?
 ng_car_newhook(node_p node, hook_p hook, const char *name)
                ^~~~~~
                mode_t
ng_car.c:238:29: error: unknown type name 'hook_p'
 ng_car_newhook(node_p node, hook_p hook, const char *name)
                             ^~~~~~
ng_car.c:261:16: error: unknown type name 'hook_p'
 ng_car_rcvdata(hook_p hook, item_p item )
                ^~~~~~
ng_car.c:261:29: error: unknown type name 'item_p'; did you mean 'nitems'?
 ng_car_rcvdata(hook_p hook, item_p item )
                             ^~~~~~
                             nitems
ng_car.c:380:15: error: unknown type name 'node_p'; did you mean 'mode_t'?
 ng_car_rcvmsg(node_p node, item_p item, hook_p lasthook)
               ^~~~~~
               mode_t
ng_car.c:380:28: error: unknown type name 'item_p'; did you mean 'nitems'?
 ng_car_rcvmsg(node_p node, item_p item, hook_p lasthook)
                            ^~~~~~
                            nitems
ng_car.c:380:41: error: unknown type name 'hook_p'
 ng_car_rcvmsg(node_p node, item_p item, hook_p lasthook)
                                         ^~~~~~
ng_car.c:535:17: error: unknown type name 'node_p'; did you mean 'mode_t'?
 ng_car_shutdown(node_p node)
                 ^~~~~~
                 mode_t
ng_car.c:554:19: error: unknown type name 'hook_p'
 ng_car_disconnect(hook_p hook)
                   ^~~~~~
ng_car.c: In function 'ng_car_refillhook':
ng_car.c:588:17: error: storage size of 'newt' isn't known
  struct bintime newt, deltat;
                 ^~~~
ng_car.c:588:23: error: storage size of 'deltat' isn't known
  struct bintime newt, deltat;
                       ^~~~~~
ng_car.c:592:2: error: implicit declaration of function 'getbinuptime'; did you mean 'getnanouptime'? [-Werror=implicit-function-declaration]
  getbinuptime(&newt);
  ^~~~~~~~~~~~
  getnanouptime
ng_car.c:592:2: error: nested extern declaration of 'getbinuptime' [-Werror=nested-externs]
ng_car.c:596:2: error: implicit declaration of function 'bintime_sub' [-Werror=implicit-function-declaration]
  bintime_sub(&deltat, &h->lastRefill);
  ^~~~~~~~~~~
ng_car.c:596:2: error: nested extern declaration of 'bintime_sub' [-Werror=nested-externs]
ng_car.c:588:23: error: unused variable 'deltat' [-Werror=unused-variable]
  struct bintime newt, deltat;
                       ^~~~~~
ng_car.c:588:17: error: unused variable 'newt' [-Werror=unused-variable]
  struct bintime newt, deltat;
                 ^~~~
ng_car.c: In function 'ng_car_schedule':
ng_car.c:658:2: error: implicit declaration of function 'ng_callout' [-Werror=implicit-function-declaration]
  ng_callout(&hinfo->q_callout, NG_HOOK_NODE(hinfo->hook), hinfo->hook,
  ^~~~~~~~~~
ng_car.c:658:2: error: nested extern declaration of 'ng_callout' [-Werror=nested-externs]
ng_car.c:658:32: error: implicit declaration of function 'NG_HOOK_NODE'; did you mean 'NG_HOOKSIZ'? [-Werror=implicit-function-declaration]
  ng_callout(&hinfo->q_callout, NG_HOOK_NODE(hinfo->hook), hinfo->hook,
                                ^~~~~~~~~~~~
                                NG_HOOKSIZ
ng_car.c:658:32: error: nested extern declaration of 'NG_HOOK_NODE' [-Werror=nested-externs]
ng_car.c:659:14: error: 'ng_car_q_event' undeclared (first use in this function); did you mean 'ng_car_cmdlist'?
      delay, &ng_car_q_event, NULL, 0);
              ^~~~~~~~~~~~~~
              ng_car_cmdlist
ng_car.c:659:14: note: each undeclared identifier is reported only once for each function it appears in
ng_car.c: At top level:
ng_car.c:666:16: error: unknown type name 'node_p'; did you mean 'mode_t'?
 ng_car_q_event(node_p node, hook_p hook, void *arg, int arg2)
                ^~~~~~
                mode_t
ng_car.c:666:29: error: unknown type name 'hook_p'
 ng_car_q_event(node_p node, hook_p hook, void *arg, int arg2)
                             ^~~~~~
ng_car.c:713:40: error: unknown type name 'item_p'; did you mean 'nitems'?
 ng_car_enqueue(struct hookinfo *hinfo, item_p item)
                                        ^~~~~~
                                        nitems
ng_car.c:168:23: error: storage size of 'ng_car_typestruct' isn't known
 static struct ng_type ng_car_typestruct = {
                       ^~~~~~~~~~~~~~~~~
ng_car.c:652:1: error: 'ng_car_schedule' defined but not used [-Werror=unused-function]
 ng_car_schedule(struct hookinfo *hinfo)
 ^~~~~~~~~~~~~~~
ng_car.c:586:1: error: 'ng_car_refillhook' defined but not used [-Werror=unused-function]
 ng_car_refillhook(struct hookinfo *h)
 ^~~~~~~~~~~~~~~~~
ng_car.c:168:23: error: 'ng_car_typestruct' defined but not used [-Werror=unused-variable]
 static struct ng_type ng_car_typestruct = {
                       ^~~~~~~~~~~~~~~~~
ng_car.c:127:26: error: 'ng_car_cmdlist' defined but not used [-Werror=unused-variable]
 static struct ng_cmdlist ng_car_cmdlist[] = {
                          ^~~~~~~~~~~~~~
cc1: all warnings being treated as errors
*** Error code 1

Stop.
make: stopped making "all" in /tmp/ngcar