Date: Fri, 29 Feb 2008 21:48:45 +0100 From: "Olivier Cochard-Labbe" <olivier@freenas.org> To: "Edwin Groothuis" <edwin@mavetju.org> Cc: freebsd-ports-mailinglist <freebsd-ports@freebsd.org> Subject: Re: VirtualBox looks for FreeBSD developer Message-ID: <3131aa530802291248r1da47960q233d9ccae8e278c1@mail.gmail.com> In-Reply-To: <20080228212051.GA2962@k7.mavetju> References: <3131aa530802260145y48e37284j4b03e6cd1f933027@mail.gmail.com> <47C412E4.9020305@quip.cz> <20080228134436.GA2759@k7.mavetju> <20080228212051.GA2962@k7.mavetju>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3131aa530802291248r1da47960q233d9ccae8e278c1>