[Bug 228433] mulators/virtualbox-ose-kmod: compile error: error: "offsetof is not defined!"

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Wed May 23 04:40:04 UTC 2018


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=228433

            Bug ID: 228433
           Summary: mulators/virtualbox-ose-kmod: compile error: error:
                    "offsetof is not defined!"
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs at FreeBSD.org
          Reporter: ohartmann at walstatt.org

On recent CURRENT (FreeBSD 12.0-CURRENT #106 r333789: Fri May 18 14:48:40 CEST
2018 amd64) building port emulators/virtualbox-ose-kmod (ports tree revision at
 470673), via PORTS+MODULES= in /etc/src.conf as part of the kernel, fails with
the error shown below:

[...]
=== Building 'vboxnetflt' module ===
machine -> /usr/src/sys/amd64/include
x86 -> /usr/src/sys/x86/include
awk -f /usr/src/sys/tools/makeobjops.awk /usr/src/sys/kern/device_if.m -h
awk -f /usr/src/sys/tools/makeobjops.awk /usr/src/sys/kern/bus_if.m -h
:> opt_netgraph.h
Warning: Object directory not changed from original
/usr/obj/usr/src/amd64.amd64/sys/GLOCKE/usr/ports/emulators/virtualbox-ose-kmod/work/VirtualBox-5.2.12/out/freebsd.amd64/release/bin/src/vboxnetflt
cc  -O2 -pipe -march=native -fno-strict-aliasing -DRT_OS_FREEBSD -DIN_RING0
-DIN_RT_R0 -DIN_SUP_R0 -DVBOX -DRT_WITH_VBOX -w -DVBOX_WITH_HARDENING -DVIMAGE
-DRT_ARCH_AMD64 -march=native  -Werror -D_KERNEL -DKLD_MODULE -nostdinc 
-Iinclude -I. -Ir0drv -I. -I/usr/src/sys -I/usr/src/sys/contrib/ck/include
-fno-common  -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer   -MD 
-MF.depend.VBoxNetFlt-freebsd.o -MTVBoxNetFlt-freebsd.o -mcmodel=kernel
-mno-red-zone -mno-mmx -mno-sse -msoft-float  -fno-asynchronous-unwind-tables
-ffreestanding -fwrapv -fstack-protector -Wall -Wredundant-decls
-Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith
-Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__
-Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas
-Wno-error-tautological-compare -Wno-error-empty-body
-Wno-error-parentheses-equality -Wno-error-unused-function
-Wno-error-pointer-sign -Wno-error-shift-negative-value
-Wno-address-of-packed-member  -mno-aes -mno-avx  -std=iso9899:1999 -c
VBoxNetFlt-freebsd.c -o VBoxNetFlt-freebsd.o
In file included from VBoxNetFlt-freebsd.c:63:
In file included from include/VBox/err.h:30:
In file included from include/iprt/err.h:30:
include/iprt/types.h:73:5: error: "offsetof is not defined!"
#   error "offsetof is not defined!"
    ^
1 error generated.
*** Error code 1

Stop.
make[6]: stopped in
/usr/obj/usr/src/amd64.amd64/sys/GLOCKE/usr/ports/emulators/virtualbox-ose-kmod/work/VirtualBox-5.2.12/out/freebsd.amd64/release/bin/src/vboxnetflt
*** Error code 1

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-ports-bugs mailing list