Bug 207561

Summary: emulators/virtualbox-ose-kmod: fatal error: 'device_if.h' file not found
Product: Ports & Packages Reporter: O. Hartmann <ohartmann>
Component: Individual Port(s)Assignee: Virtualbox Team (Nobody) <vbox>
Status: Closed Overcome By Events    
Severity: Affects Many People CC: fidaj, madpilot, w.schwarzenfeld
Priority: --- Flags: bugzilla: maintainer-feedback? (vbox)
Version: Latest   
Hardware: Any   
OS: Any   

Description O. Hartmann 2016-02-28 14:15:12 UTC
On recent CURRENT, port fails to build with multiple errors:

[...]
cc -O2 -pipe -fno-strict-aliasing -DRT_OS_FREEBSD -DIN_RING0 -DIN_RT_R0 -DIN_SUP_R0 -DSUPDRV_WITH_RELEASE_LOGGER -DVBOX -DRT_WITH_VBOX -w -DVBOX_WITH_HARDENING -DVBOX_WITH_64_BITS_GUESTS -DRT_ARCH_AMD64  -Werror -D_KERNEL -DKLD_MODULE -nostdinc  -Iinclude -I. -Ir0drv -I. -I/usr/src/sys -fno-common  -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer  -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 -Winline -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  -mno-aes -mno-avx  -std=iso9899:1999 -c /wrkdirs/usr/ports/emulators/virtualbox-ose-kmod/work/VirtualBox-4.3.36/out/freebsd.amd64/release/bin/src/vboxdrv/r0drv/freebsd/alloc-r0drv-freebsd.c -o alloc-r0drv-freebsd.o
--- assert-r0drv-freebsd.o ---
In file included from /wrkdirs/usr/ports/emulators/virtualbox-ose-kmod/work/VirtualBox-4.3.36/out/freebsd.amd64/release/bin/src/vboxdrv/r0drv/freebsd/assert-r0drv-freebsd.c:34:
In file included from /wrkdirs/usr/ports/emulators/virtualbox-ose-kmod/work/VirtualBox-4.3.36/out/freebsd.amd64/release/bin/src/vboxdrv/r0drv/freebsd/the-freebsd-kernel.h:39:
/usr/src/sys/sys/bus.h:659:10: fatal error: 'device_if.h' file not found
#include "device_if.h"
Comment 1 Ivan Klymenko 2016-02-28 14:20:43 UTC
(In reply to ohartman from comment #0)
Update you source tree to, for example, r296137 - this problem is solved.
Comment 2 Guido Falsi freebsd_committer freebsd_triage 2016-02-28 16:11:40 UTC
Hi,

I experienced this same problem with r295994.

Upgrading to a more recent head seems to fix this, I'm on r296107 now.

I think it was r295983 which broke it and was fixed in r296075.

Hope this helps.
Comment 3 Walter Schwarzenfeld 2018-01-13 00:29:47 UTC
I think this is overcome by events.