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

Cezary Morga cm at therek.net
Sun May 3 11:56:16 PDT 2009


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


-- 
Cezary Morga
"Everything is funny as long as it is happening to Somebody Else." (Will 
Rogers)





More information about the vbox-dev mailing list