Bug 207561 - emulators/virtualbox-ose-kmod: fatal error: 'device_if.h' file not found
Summary: emulators/virtualbox-ose-kmod: fatal error: 'device_if.h' file not found
Status: Closed Overcome By Events
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Many People
Assignee: Virtualbox Team (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-02-28 14:15 UTC by O. Hartmann
Modified: 2018-02-26 19:56 UTC (History)
3 users (show)

See Also:
bugzilla: maintainer-feedback? (vbox)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 freebsd_triage 2018-01-13 00:29:47 UTC
I think this is overcome by events.