From owner-freebsd-questions@FreeBSD.ORG Tue Jun 7 01:31:32 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8EEE51065672 for ; Tue, 7 Jun 2011 01:31:32 +0000 (UTC) (envelope-from lists@midsummerdream.org) Received: from p3plsmtpa06-04.prod.phx3.secureserver.net (p3plsmtpa06-04.prod.phx3.secureserver.net [173.201.192.105]) by mx1.freebsd.org (Postfix) with SMTP id 6CD128FC1D for ; Tue, 7 Jun 2011 01:31:32 +0000 (UTC) Received: (qmail 4182 invoked from network); 7 Jun 2011 01:31:31 -0000 Received: from unknown (70.131.50.248) by p3plsmtpa06-04.prod.phx3.secureserver.net (173.201.192.105) with ESMTP; 07 Jun 2011 01:31:31 -0000 Message-ID: <4DED7F72.8080603@midsummerdream.org> Date: Mon, 06 Jun 2011 20:31:30 -0500 From: Rob User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.17) Gecko/20110414 Thunderbird/3.1.10 MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <4DED3F15.5060500@midsummerdream.org> <201106062213.45053.lobo@bsd.com.br> In-Reply-To: <201106062213.45053.lobo@bsd.com.br> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: Virtualbox on 8.2 64-bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: lists@midsummerdream.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 Jun 2011 01:31:32 -0000 On 6/6/11 8:13 PM, Mario Lobo wrote: > On Monday 06 June 2011 17:56:53 Rob wrote: >> I was attempting to install virtualbox on my 8.2-p2 64-bit system this >> weekend, and hit a rather curious situation. The pre-packaged version >> of virtualbox retrievable by pkg_add is 3.2.12 (which looks in >> ports/amd64/packages-8.2-release). Poking around on the ftp server, I >> see that packages-8.1-release also has a 3.x version, but >> packages-8-stable has the latest 4.0.8. >> >> I went to look in ports, which contains 4.0.8, and build it myself but I >> got an error saying I need to have the 32-bit libraries installed in >> order to build virtualbox. >> >> So, my question is 2-fold: >> 1) What is the reason the 64-bit pre-packaged version of virtualbox is >> still at the 3.x version? Would there be a problem with installing the >> packages (virtualbox and kernel module) from packages-8-stable? >> >> 2) How do I build virtualbox 4.0.8 on a 64-bit system w/o the 32-bit >> libs. Is that possible? Searching around has produced old e-mail >> threads indicating this was a problem as of 2 or so years ago with the >> 3.x release. If it's not possible to build w/o the 32-bit libs, what do >> I need to install? >> >> Rob > > You need to rebuild your kernel with > > options COMPAT_FREEBSD32 # Compatible with i386 binaries > > included. > I'm running the stock 8.2 kernel. Is that option compiled into the kernel? Where do I find the options that are enabled in the stock kernel? Also, does COMPAT_FREEBSD32 mean I don't need the 32-bit libs for compilation, or that the kernel will run binaries compiled for 32-bit systems? If the later, then I'll still need to install the 32-bit version of the libraries in order to build, right? Rob