From owner-freebsd-questions@FreeBSD.ORG Wed Mar 21 23:13:43 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 35C6A106566B for ; Wed, 21 Mar 2012 23:13:43 +0000 (UTC) (envelope-from jmc-freebsd2@milibyte.co.uk) Received: from avasout07.plus.net (avasout07.plus.net [84.93.230.235]) by mx1.freebsd.org (Postfix) with ESMTP id 8EC5B8FC1B for ; Wed, 21 Mar 2012 23:13:41 +0000 (UTC) Received: from curlew.milibyte.co.uk ([84.92.153.232]) by avasout07 with smtp id oPAX1i006516WCc01PAY8v; Wed, 21 Mar 2012 23:10:33 +0000 X-CM-Score: 0.00 X-CNFS-Analysis: v=2.0 cv=VpKh8pKn c=1 sm=1 a=lfSX4pPLp9EkufIcToJk/A==:17 a=rLpCYgkgFLgA:10 a=TyTfYiLqatMA:10 a=ZTb9aqGL9YkA:10 a=8nJEP1OIZ-IA:10 a=5G3b1MuOH8frXnMQt3EA:9 a=eG6-zxQyl0Bvz_jo5dQA:7 a=wPNLvfGTeEIA:10 a=lfSX4pPLp9EkufIcToJk/A==:117 Received: by curlew.milibyte.co.uk with local (Exim 4.77) (envelope-from ) id 1SAUfn-0000p5-GC for freebsd-questions@freebsd.org; Wed, 21 Mar 2012 23:10:31 +0000 From: Mike Clarke To: freebsd-questions@freebsd.org Date: Wed, 21 Mar 2012 23:10:30 +0000 User-Agent: KMail/1.9.10 References: <201203131413.41392.jmc-freebsd2@milibyte.co.uk> <201203202256.12788.jmc-freebsd2@milibyte.co.uk> <44pqc564oo.fsf@lowell-desk.lan> In-Reply-To: <44pqc564oo.fsf@lowell-desk.lan> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <201203212310.31281.jmc-freebsd2@milibyte.co.uk> X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: jmc-freebsd2@milibyte.co.uk X-SA-Exim-Scanned: No (on curlew.milibyte.co.uk); SAEximRunCond expanded to false 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 23:13:43 -0000 On Wednesday 21 March 2012, Lowell Gilbert wrote: > > /data1/tmp/usr/ports/emulators/virtualbox-ose-kmod/work/VirtualBox- > >4.1.10/out/freebsd.x86/ =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 > > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 =A0 =A0 =A0 > > 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? Yes, that's where it is. 401 if (fContiguous) 402 { 403 Assert(enmType =3D=3D RTR0MEMOBJTYPE_PHYS); 404 VM_OBJECT_LOCK(pMemFreeBSD->pObject); 405 pMemFreeBSD->Core.u.Phys.PhysBase =3D=20 VM_PAGE_TO_PHYS(vm_page_find_least(pMemFreeBSD->pObject, 0)); 406 VM_OBJECT_UNLOCK(pMemFreeBSD->pObject); 407 pMemFreeBSD->Core.u.Phys.fAllocated =3D true; 408 } > It is a little tricky for me to=20 > 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. This takes me out of my depth in my very limited experience of C but would = it be=20 this, also in memobj-r0drv-freebsd.c: 50 /** 51 * The FreeBSD version of the memory object structure. 52 */ 53 typedef struct RTR0MEMOBJFREEBSD 54 { 55 /** The core structure. */ 56 RTR0MEMOBJINTERNAL Core; 57 /** Type dependent data */ 58 /** The VM object associated with the allocation. */ 59 vm_object_t pObject; 60 } RTR0MEMOBJFREEBSD, *PRTR0MEMOBJFREEBSD; and then: 109 PRTR0MEMOBJFREEBSD pMemFreeBSD =3D (PRTR0MEMOBJFREEBSD)pMem; [snip] > You might want to try updating your system or trying the -legacy > version of the port. Version 4.1.8_1 seems to be working OK for me so I'll probably stick with t= hat for=20 the time being unless a fix turns up before I upgrade to 9.0-RELEASE which = I'm=20 planning to do shortly. =2D-=20 Mike Clarke