VirtualBox looks for FreeBSD developer

Olivier Cochard-Labbe olivier at freenas.org
Fri Feb 29 20:48:46 UTC 2008


Hi,

>
> New patches, which actually make it compile this time :-)



I can't compile VirtualBox with your patch (I'm using a FreeBSD 7.0Release).

Here are the steps that I've done:
1. Comment CPUTYPE, CFLAGS and COPTFLAGS on my /etc/make.conf
2. Download the VirtualBox source code:
svn co http://virtualbox.org/svn/vbox/trunk vbox
3. Install all build tools listed here:
http://www.virtualbox.org/wiki/FreeBSD%20build%20instructions
4. Apply your patch:
patch < a.patch
5. Start the configure
./configure
6. Set the environement for configure:
source ./env.sh
7. And finnally start the building process:
kmk

But it failed with this message:
/usr/home/ocd/vbox/src/VBox/Runtime/r0drv/freebsd/thread2-r0drv-freebsd.c:73:
error: 'sched_lock' undeclared (first use in this function)
/usr/home/ocd/vbox/src/VBox/Runtime/r0drv/freebsd/thread2-r0drv-freebsd.c:73:
error: (Each undeclared identifier is reported only once
/usr/home/ocd/vbox/src/VBox/Runtime/r0drv/freebsd/thread2-r0drv-freebsd.c:73:
error: for each function it appears in.)
kmk[3]: ***
[/usr/home/ocd/vbox/out/freebsd.x86/release/obj/src/VBox/Runtime/RuntimeR0Drv/r0drv/freebsd/thread2-
r0drv-freebsd.o] Error 1
The failing command:
    @gcc -c -O2 -Wall -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 -m32
-mno-align-long-strings -mpreferred-stack-boundary=2 -mno-mmx -mno-3dnow
-mno-sse -mno-sse2 -I/usr/home/ocd/vbox/src/VBox/Runtime -I/usr/src/sys
-I/usr/src/sys/contrib/altq -I/usr/src/sys/../include -I/usr/include
-I/usr/home/ocd/vbox/include -I/usr/home/ocd/vbox/out/freebsd.x86/release
-Iinclude -DVBOX -DVBOX_OSE -DRT_OS_FREEBSD -D__FREEBSD__ -DRT_ARCH_X86
-D__X86__ -D_KERNEL -DKLD_MODULE -DIN_RING0 -DIN_RT_R0 -DIN_RT_R0
-DRT_WITH_VBOX -DRT_WITHOUT_NOCRT_WRAPPERS
-Wp,-MD,/usr/home/ocd/vbox/out/freebsd.x86/release/obj/src/VBox/Runtime/RuntimeR0Drv/r0drv/freebsd/thread2-
r0drv-freebsd.o.dep-Wp,-MT,/usr/home/ocd/vbox/out/freebsd.x86/release/obj/src/VBox/Runtime/RuntimeR0Drv/r0drv/freebsd/thread2-
r0drv-freebsd.o -Wp,-MP -o
/usr/home/ocd/vbox/out/freebsd.x86/release/obj/src/VBox/Runtime/RuntimeR0Drv/r0drv/freebsd/thread2-
r0drv-freebsd.o /usr/home/ocd/vbox/src/VBox/Runtime/r0drv/freebsd/thread2-
r0drv-freebsd.c
kmk[3]: Leaving directory `/usr/home/ocd/vbox/src/VBox/Runtime'
kmk[2]: *** [pass_libraries_before] Error 2
kmk[2]: Leaving directory `/usr/home/ocd/vbox/src/VBox'
kmk[1]: *** [pass_libraries_before] Error 2
kmk[1]: Leaving directory `/usr/home/ocd/vbox/src'
kmk: *** [pass_libraries_before] Error 2

Is a problem with FreeBSD 7.0 ?

Thanks,

Olivier


More information about the freebsd-ports mailing list