I'm trying to compile VirtualBox OSE 3.2.8 under Mac OS X Snow Leopard. My goal is to install FreeBSD in VB.
I chose the OSE because I like the open-source philosophy, that's all. I have literally no compiling background and very rudimentary Unix background. (I know how to cd but that's pretty much it.) But I am a little geeky so I decided to try to compile the OSE myself.
I downloaded the source and read the instructions at http://www.virtualbox.org/wiki/Mac%20OS ... structions. As I was doing everything step by step, some differences (and/or not mentionned things) occurred :
1. When installing doxygen from MacPorts, I got the message to complete python installation (doxygen dependency) :
Code: Select all
---> Fetching python26
---> Attempting to fetch Python-2.6.6.tar.bz2 from http://distfiles.macports.org/python26
---> Verifying checksum(s) for python26
---> Extracting python26
---> Applying patches to python26
---> Configuring python26
---> Building python26
---> Staging python26 into destroot
---> Installing python26 @2.6.6_0+no_tkinter
---> Activating python26 @2.6.6_0+no_tkinter
To fully complete your installation and make python 2.6 the default, please run:
sudo port install python_select
sudo python_select python26
---> Cleaning python26
2. The link provided for the QT/Mac packages (http://qt.nokia.com/downloads/mac-os-cpp) are for version 4.6.2, but the latest Qt version is 4.6.3. I found the 4.6.3 package at http://qt.nokia.com/downloads/qt-for-op ... n-mac-os-x. I took the first Cocoa package, qt-mac-cocoa-opensource-4.6.3.dmg and installed that.
3. Since I want to use VB just for myself, I don't care about backward compatibility with Leopard, so I created LocalConfig.kmk as it is indicated at http://www.virtualbox.org/wiki/Mac%20OS ... structions with this content :
Code: Select all
VBOX_DEF_MACOSX_VERSION_MIN = 10.6
VBOX_DARWIN_NO_COMPACT_LINKEDIT =
VBOX_MACOS_10_5_WORKAROUND =
4. When I did ./configure --disable-hardening, I had a message saying I didn't have the right version of openssl :
Code: Select all
Checking for ssl: found version OpenSSL 0.9.7l 28 Sep 2006, expected version 0.9.8 or higher
Code: Select all
./configure --disable-hardening --with-openssl-dir=/opt/local
So I was ready to build. I did
Code: Select all
. ./env.sh
Code: Select all
kmk
Code: Select all
kBuild: Compiling VBoxRT - /Developer/Sources/VirtualBox-3.2.8_OSE/src/VBox/Runtime/common/misc/s3.cpp
/opt/local/include/curl/curlrules.h:143: error: size of array ‘__curl_rule_01__’ is negative
/opt/local/include/curl/curlrules.h:153: error: size of array ‘__curl_rule_02__’ is negative
kmk[2]: *** [/Developer/Sources/VirtualBox-3.2.8_OSE/out/darwin.x86/release/obj/VBoxRT/common/misc/s3.o] Error 1
The failing command:
@g++-4.0 -c -O2 -g -pipe -pedantic -Wshadow -Wall -Wextra -Wno-missing-field-initializers -Wno-unused -Wno-trigraphs -Wno-long-long -Wno-variadic-macros -O2 -mtune=generic -fno-omit-frame-pointer -fno-strict-aliasing -fvisibility=hidden -DVBOX_HAVE_VISIBILITY_HIDDEN -DRT_USE_VISIBILITY_DEFAULT -fvisibility-inlines-hidden -Werror -mmacosx-version-min=10.6 -isysroot /Developer/SDKs/MacOSX10.6.sdk -m32 -I/Developer/Sources/VirtualBox-3.2.8_OSE/src/VBox/Runtime/include -I/Developer/Sources/VirtualBox-3.2.8_OSE/src/libs/liblzf-3.4 -I/Developer/Sources/VirtualBox-3.2.8_OSE/src/libs/kStuff/kStuff/include -I/opt/local/include -I/Developer/Sources/VirtualBox-3.2.8_OSE/src/libs/libxml2-2.6.30/include -I/Developer/Sources/VirtualBox-3.2.8_OSE/src/libs/boost-1.37.0 -I/Developer/Sources/VirtualBox-3.2.8_OSE/include -I/Developer/Sources/VirtualBox-3.2.8_OSE/out/darwin.x86/release -DVBOX -DVBOX_OSE -DVBOX_WITH_64_BITS_GUESTS -DRT_OS_DARWIN -D__DARWIN__ -DRT_ARCH_X86 -D__X86__ -D_REENTRANT -DBOOST_DISABLE_ASSERTS -DBUILDING_LIBCURL -DIN_RING3 -DHC_ARCH_BITS=32 -DGC_ARCH_BITS=64 -DIN_RING3 -DHC_ARCH_BITS=32 -DGC_ARCH_BITS=64 -DIN_RT_R3 -DIN_SUP_R3 -DLDR_WITH_NATIVE -DLDR_WITH_ELF32 -DLDR_WITH_PE -DRT_WITH_VBOX -DLDR_WITH_KLDR -DRT_WITH_ICONV_CACHE -DIN_SUP_R3 -DIN_SUP_R3 -DMAC_OS_X_VERSION_MIN_REQUIRED=1060 -DMAC_OS_X_VERSION_MAX_ALLOWED=1060 -DPIC -Wp,-MD,/Developer/Sources/VirtualBox-3.2.8_OSE/out/darwin.x86/release/obj/VBoxRT/common/misc/s3.o.dep -Wp,-MT,/Developer/Sources/VirtualBox-3.2.8_OSE/out/darwin.x86/release/obj/VBoxRT/common/misc/s3.o -Wp,-MP -o /Developer/Sources/VirtualBox-3.2.8_OSE/out/darwin.x86/release/obj/VBoxRT/common/misc/s3.o /Developer/Sources/VirtualBox-3.2.8_OSE/src/VBox/Runtime/common/misc/s3.cpp
kmk[2]: *** Waiting for unfinished jobs....
kmk[2]: Leaving directory `/Developer/Sources/VirtualBox-3.2.8_OSE'
kmk[2]: Entering directory `/Developer/Sources/VirtualBox-3.2.8_OSE'
kmk[2]: *** Exiting with status 2
kmk[1]: *** [pass_dlls_this] Error 2
kmk[1]: Leaving directory `/Developer/Sources/VirtualBox-3.2.8_OSE'
kmk: *** [pass_dlls_order] Error 2
One thing I noticed is that the configure script tells me I have version 7.16.3 of libcurl installed
Code: Select all
Checking for libcurl: found version 7.16.3, OK.
Code: Select all
***:VirtualBox-3.2.8_OSE ***$ port installed curl
The following ports are currently installed:
curl @7.21.1_0+ssl (active)
Any help in helping me build would be warmly welcomed.
P.S. I also got a lot of warnings during the first 2356 lines, would it be relevant to post them ? (They are mostly about things being deprecated, ex :
Code: Select all
kBuild: Compiling RuntimeR0Drv - /Developer/Sources/VirtualBox-3.2.8_OSE/src/VBox/Runtime/r0drv/darwin/assert-r0drv-darwin.cpp
/Developer/Sources/VirtualBox-3.2.8_OSE/src/VBox/Runtime/r0drv/darwin/alloc-r0drv-darwin.cpp: In function ‘void* RTMemContAlloc(RTCCPHYS*, size_t)’:
/Developer/Sources/VirtualBox-3.2.8_OSE/src/VBox/Runtime/r0drv/darwin/alloc-r0drv-darwin.cpp:84: warning: ‘IOMallocContiguous’ is deprecated (declared at /Developer/SDKs/MacOSX10.6.sdk/System/Library/Frameworks/Kernel.framework/Headers/IOKit/IOLib.h:116)