โฌข DragonFlyBSD Kernel Audit
DF-4939 / build.log
โ† back to finding โ†“ download raw
DF-4939 build.log โ€” harness compile on guest (untrimmed tail of `make`)
=======================================================================
# cd /root/harness && make
awk -f dragonfly/tools/makeobjops.awk -- -c dragonfly/bus/iicbus/iicbb_if.m
awk -f dragonfly/tools/makeobjops.awk -- -h dragonfly/kern/bus_if.m
awk -f dragonfly/tools/makeobjops.awk -- -h dragonfly/kern/device_if.m
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/root/harness/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   -c lpbbfake.c
cc -Wl,--build-id=sha1 -nostdlib -Wl,--hash-style=sysv   -r -Wl,-d -o lpbbfake.ko lpbbfake.o iicbb_if.o
(exit 0; note: first link attempt without iicbb_if.c failed with
 "link_elf_obj_obj: symbol iicbb_callback_desc undefined" โ€” interface
 stub must be compiled into the module; fixed by adding iicbb_if.c to SRCS)

FIX BUILD (build.log.fix) โ€” patched if_ic module:
# cd /usr/src/sys/dev/netif/ic && (fix.diff applied) && make obj && make
cc ... -Werror ... -c /usr/src/sys/dev/netif/ic/if_ic.c
cc -Wl,--build-id=sha1 -nostdlib -Wl,--hash-style=sysv   -r -Wl,-d -o if_ic.ko if_ic.o
(exit 0, zero warnings; the single grep(1) hit for "error" in the build log
is the -Werror compiler flag itself)
# cp /usr/obj/usr/src/sys/dev/netif/ic/if_ic.ko /boot/kernel/if_ic.ko
kldstat after reboot: if_ic.ko size 0x2468 (stock debug build was 0x15000)
-> patched module confirmed active.