[vbox-dev] [PATCH] Enable vbox to build on FreeBSD HEAD

Alexander Eichner Alexander.Eichner at Sun.COM
Sun May 3 20:59:59 GMT 2009


Hi,

as Frank mentioned the assertion is due to the missing proc filesystem.
The kernel module can be found in out/freebsd.x86/debug/bin/vboxdrv.ko.
It is compiled during the VirtualBox build process. I don't know
if the port installs it in the appropriate location but you can load it
with kldload ./vboxdrv.ko if you are in the binary directory.

Kind regards,
Alexander Eichner

Am Sonntag, den 03.05.2009, 20:56 +0200 schrieb Cezary Morga:
> Bernhard Fröhlich wrote:
> > Thanks, for the patches i've integrated it in the port we are currently
> > working on. The pmap_enter() already got MFCd in r189075 [0] so it's
> > needed for 7-stable too and builds fine now.
> >
> > Progress on the port is good as it already builds on amd64 and i386 on 7
> > and current.
> 
> Well. I couldn't run VirtualBox on my FreeBSD machine. I get:
> 
> Unknown -102 error during initialization of the Runtime
> 
> and when compiled with debugging symbols I get :
> 
> !!Assertion Failed!!
> Expression: g_szrtProcExePath[0] != '\0'
> Location  : /home/therek/svn/virtualbox/src/VBox/Runtime/r3/process.cpp(100) 
> char* RTProcGetExecutableName(char*, size_t)
> Trace/BPT trap: 5
> 
> My machine:
> FreeBSD 7.1-STABLE FreeBSD 7.1-STABLE #0: Wed Feb 25 08:48:36 CET 2009     
> 
> As for the port you're mixing two different install locations (diff below). 
> You should either put VirtualBox in typical library location or add ldconfig -
> m /usr/local/share/virtualbox.
> 
> What about kernel module?
> 
> Index: Makefile
> ===================================================================
> --- Makefile    (revision 342)
> +++ Makefile    (working copy)
> @@ -81,10 +81,10 @@
>         ${MKDIR} ${DATADIR} && \
>         (cd ${WRKSRC}/out/${KMK_ARCH}/release/bin && ${COPYTREE_SHARE} "*.so 
> *.gc *.r0 components" ${DATADIR} "! -name tst*.gc")
> 
> -       ${MKDIR} ${PREFIX}/sbin; \
> +       ${MKDIR} ${PREFIX}/bin; \
>         for f in VirtualBox VBoxHeadless VBoxSDL VBoxBFE VBoxNetDHCP; do \
>                 ${INSTALL_PROGRAM} ${WRKSRC}/out/${KMK_ARCH}/release/bin/$$f 
> ${PREFIX}/bin/$${f##*/}; \
> -               ${CHMOD} 4511 ${PREFIX}/sbin/$${f##*/}; \
> +               ${CHMOD} 4511 ${PREFIX}/bin/$${f##*/}; \
>         done
> 
> 





More information about the vbox-dev mailing list