Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 14 Sep 2009 15:38:00 +0200
From:      Gary Jennejohn <gary.jennejohn@freenet.de>
To:        Zahemszky =?ISO-8859-1?Q?G=E1bor?= <Gabor@Zahemszky.HU>
Cc:        freebsd-emulation@freebsd.org
Subject:   Re: virtualbox cannot compile
Message-ID:  <20090914153800.38fb8e7a@ernst.jennejohn.org>
In-Reply-To: <20090914142916.31e69226@Picasso.Zahemszky.HU>
References:  <20090914094805.47a01eab@Picasso.Zahemszky.HU> <20090914132602.79faca57@ernst.jennejohn.org> <20090914142916.31e69226@Picasso.Zahemszky.HU>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 14 Sep 2009 14:29:16 +0200
Zahemszky G__bor <Gabor@Zahemszky.HU> wrote:

> Mon, 14 Sep 2009 13:26:02 +0200 -n
> Gary Jennejohn <gary.jennejohn@freenet.de> __rta:
> 
> > On Mon, 14 Sep 2009 09:48:05 +0200
> > Zahemszky G__bor <Gabor@Zahemszky.HU> (by way of Zahemszky G__bor
> > <Gabor@Zahemszky.HU>) wrote:
> > 
> > > I've got a problem with the (last two) recent version(s) of the
> > > emulators/virtualbox port, as I cannot compile it. It fails with a:
> > > 
> > > 02/src/VBox/Runtime/r0drv/freebsd/alloc-r0drv-freebsd.c:34:
> > > /sys/vm/vm.h:64:24: error: machine/vm.h: No such file or directory
> > > 
> > > error message. The previous version failed with the same problem.
> > > 
> > 
> > Have you generated a kernel lately?  I believe machine is a symbolic
> > link which is created when you make a kernel, but I might be wrong.
> > 
> > Om my box I
> > have: /usr/obj/usr/src/sys/amd64/machine
> > -> /usr/src/sys/amd64/include
> 
> Hm. Interesting: I've generated kernels in the not too past. But. I use
> i386, and not amd64, and GENERIC kernel on it. I
> have /usr/obj/usr/src/sys/ and in it, GENERIC and boot directory. And I
> have GENERIC/machine/vm.h in it. So I think, some configuration steps
> have some problems.
> 

I just compiled the latest svn stuff and it also fails (copy&paste => long lines):

kBuild: Compiling vboxnetflt - /oldzfs/virtualbox/work/virtualbox-3.0.51r22902/src/VBox/HostDrivers/VBoxNetFlt/freebsd/VBoxNetFlt-freebsd.c
In file included from /oldzfs/virtualbox/work/virtualbox-3.0.51r22902/src/VBox/HostDrivers/VBoxNetFlt/freebsd/VBoxNetFlt-freebsd.c:43:
/sys/sys/socket.h:39:28: error: machine/_align.h: No such file or directory
kmk[2]: *** [/oldzfs/virtualbox/work/virtualbox-3.0.51r22902/out/freebsd.amd64/release/obj/vboxnetflt/freebsd/VBoxNetFlt-freebsd.o] Error 1
The failing command:
@cc -c -O2 -Wall -Wextra -Wno-missing-field-initializers -Wno-unused
-Wno-trigraphs -Wpointer-arith -Winline -Wno-pointer-sign -Wstrict-prototypes
-Wmissing-prototypes -Wstrict-prototypes -Wnested-externs -O2
-fformat-extensions -ffreestanding -fno-strict-aliasing -fno-common
-finline-limit=8000 -fno-stack-protector -O2 -mtune=generic
-fno-omit-frame-pointer -nostdinc -std=c99 -m64 --param inline-unit-growth=100
--param large-function-growth=1000 -fno-omit-frame-pointer -mcmodel=kernel
-mno-red-zone -mfpmath=387 -mno-sse -mno-sse2 -mno-mmx -mno-3dnow -msoft-float
-fno-asynchronous-unwind-tables -Wundef
-I/oldzfs/virtualbox/work/virtualbox-3.0.51r22902/src/VBox/HostDrivers/VBoxNetFlt
-I/sys -I/sys/contrib/altq -I/sys/../include -I/usr/include
-I/oldzfs/virtualbox/work/virtualbox-3.0.51r22902/include
-I/oldzfs/virtualbox/work/virtualbox-3.0.51r22902/out/freebsd.amd64/release
-DVBOX -DVBOX_OSE -DVBOX_WITH_64_BITS_GUESTS -DVBOX_WITH_HARDENING
-DRTPATH_APP_PRIVATE=\"/usr/local/share/virtualbox\"
-DRTPATH_APP_PRIVATE_ARCH=\"/usr/local/lib/virtualbox\"
-DRTPATH_SHARED_LIBS=\"/usr/local/lib/virtualbox\"
-DRTPATH_APP_DOCS=\"/usr/local/share/doc/virtualbox\" -DRT_OS_FREEBSD
-D__FREEBSD__ -DRT_ARCH_AMD64 -D__AMD64__ -D_KERNEL -DKLD_MODULE -DIN_RING0
-DIN_RT_R0 -DIN_RT_R0
-Wp,-MD,/oldzfs/virtualbox/work/virtualbox-3.0.51r22902/out/freebsd.amd64/release/obj/vboxnetflt/freebsd/VBoxNetFlt-freebsd.o.dep
-Wp,-MT,/oldzfs/virtualbox/work/virtualbox-3.0.51r22902/out/freebsd.amd64/release/obj/vboxnetflt/freebsd/VBoxNetFlt-freebsd.o
-Wp,-MP
-o /oldzfs/virtualbox/work/virtualbox-3.0.51r22902/out/freebsd.amd64/release/obj/vboxnetflt/freebsd/VBoxNetFlt-freebsd.o /oldzfs/virtualbox/work/virtualbox-3.0.51r22902/src/VBox/HostDrivers/VBoxNetFlt/freebsd/VBoxNetFlt-freebsd.c

Definitely looks like there's a bug in the new networking stuff.

---
Gary Jennejohn



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090914153800.38fb8e7a>