From owner-freebsd-questions@FreeBSD.ORG Wed Mar 21 21:10:47 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 0DAAC106564A for ; Wed, 21 Mar 2012 21:10:47 +0000 (UTC) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: from asbnvacz-mailrelay01.megapath.net (asbnvacz-mailrelay01.megapath.net [207.145.128.243]) by mx1.freebsd.org (Postfix) with ESMTP id B8E618FC0A for ; Wed, 21 Mar 2012 21:10:46 +0000 (UTC) Received: from mail2.sea5.speakeasy.net (mail2.sea5.speakeasy.net [69.17.117.41]) by asbnvacz-mailrelay01.megapath.net (Postfix) with ESMTP id D6BE4A71B8B for ; Wed, 21 Mar 2012 17:10:38 -0400 (EDT) Received: (qmail 10317 invoked from network); 21 Mar 2012 21:10:38 -0000 Received: by simscan 1.4.0 ppid: 13921, pid: 31327, t: 0.2069s scanners: clamav: 0.88.2/m:52/d:10739 Received: from unknown (HELO be-well.ilk.org) ([66.92.78.145]) (envelope-sender ) by mail2.sea5.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 21 Mar 2012 21:10:38 -0000 Received: from lowell-desk.lan (lowell-desk.lan [172.30.250.8]) by be-well.ilk.org (Postfix) with ESMTP id 5A41C33C1E; Wed, 21 Mar 2012 17:10:32 -0400 (EDT) Received: by lowell-desk.lan (Postfix, from userid 1147) id 709A939864; Wed, 21 Mar 2012 17:10:31 -0400 (EDT) From: Lowell Gilbert To: Mike Clarke References: <201203131413.41392.jmc-freebsd2@milibyte.co.uk> <44y5r177mm.fsf@lowell-desk.lan> <44haxp75jo.fsf@lowell-desk.lan> <201203202256.12788.jmc-freebsd2@milibyte.co.uk> Date: Wed, 21 Mar 2012 17:10:31 -0400 In-Reply-To: <201203202256.12788.jmc-freebsd2@milibyte.co.uk> (Mike Clarke's message of "Tue, 20 Mar 2012 22:56:12 +0000") Message-ID: <44pqc564oo.fsf@lowell-desk.lan> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.4 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: vbox@FreeBSD.org, decke@freebsd.org, freebsd-questions@freebsd.org Subject: Re: Problem compiling emulators/virtualbox-ose-kmod 4.1.8_2 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Mar 2012 21:10:47 -0000 Mike Clarke writes: > On Friday 16 March 2012, Lowell Gilbert wrote: > >> My best advice is: clean out the directory for that port, update >> again, and see if the problem is the same. > > I've now deleted everything in /usr/ports/emulators/virtualbox-ose-kmod and downloaded a fresh copy of the > port (4.1.10) from the FreeBSD website but still get the same problem when compiling. > > /data1/tmp/usr/ports/emulators/virtualbox-ose-kmod/work/VirtualBox-4.1.10/out/freebsd.x86/ > release/bin/src/vboxdrv/r0drv/freebsd/memobj-r0drv-freebsd.c:405: error: invalid type argument of '->' > *** Error code 1 That line is supposed to be an assignment in between a VM_OBJECT_LOCK and the corresponding VM_OBJECT_UNLOCK. Can you confirm that the patches cause this to be the case? It is a little tricky for me to edit files in an i386 environment, but the next step is to track down the definition of PRTR0MEMOBJFREEBSD, assuming that is the dereference giving the error on your system, and determining whether it ought to have the structure entry being dereferenced. > I've also updated the source files for the base system and built a new kernel in case it's a header problem > since I noticed that /usr/src/include/unistd.h and /usr/src/lib/libc/include/libc_private.h were both updated > in security advisory SA-11:07 (for which I only did a binary update at the time) but this didn't cure the > problem. > > I've had no problem building earlier versions but it went pear shaped with 4.1.8_2 > > As an experiment I've used portdowngrade to try compiling a few older versions > > number date portversion comment > 1 2012/03/15 09:32:29 VirtualBox-${DISTVERSION} - Update to 4.1.10 > 2 2012/03/09 21:46:18 VirtualBox-${DISTVERSION}_2 - Reenabled fixed memobj r0 patch > 3 2012/02/22 22:09:41 VirtualBox-${DISTVERSION}_1 - Revert memobj r0 patch until the problems on i386 > are solved > 4 2012/02/21 14:31:54 VirtualBox-${DISTVERSION} - Update to 4.1.8 > > Of these, the only one to compile OK was 4.1.8_1 so it looks like the fixed memobj r0 patch still has problems > on my system. > > FreeBSD curlew.lan 8.1-RELEASE-p8 FreeBSD 8.1-RELEASE-p8 #0: Tue Mar 20 19:00:39 GMT 2012 > root@curlew.lan:/usr/obj/usr/src/sys/GENERIC i386 I can't reproduce the problem. My i386 system is a little weird, so that may not say much. Also, my system code trees are updated more recently than yours, which may well matter for a kernel module, such as this port builds. You might want to try updating your system or trying the -legacy version of the port. Be well.