From owner-freebsd-questions@FreeBSD.ORG Tue Mar 18 19:24:57 2008 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 ED3301065675 for ; Tue, 18 Mar 2008 19:24:56 +0000 (UTC) (envelope-from pisymbol@gmail.com) Received: from ik-out-1112.google.com (ik-out-1112.google.com [66.249.90.178]) by mx1.freebsd.org (Postfix) with ESMTP id 700228FC3D for ; Tue, 18 Mar 2008 19:24:56 +0000 (UTC) (envelope-from pisymbol@gmail.com) Received: by ik-out-1112.google.com with SMTP id b35so56161ika.3 for ; Tue, 18 Mar 2008 12:24:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=mQCYp6OBAzuCUn/2ix3FIBCEfgz7qlAywcnAE7evzsE=; b=Ka5xyPiZtq2YL8ly4lmZZcFwdlwoFhzozdrJ9lQ9j/xr4l0kS1mdmtey+GErZhTFkuyFF5u8w/Osg1koKQXAkAUSKHjaxBlnRAzCQ1v4vMrLrfQdFqVLVEr9hph4fxXUyGxIJyrMDuJj5Yak3czXTSm8U3V+ZjjWNCaibcgiodU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=tRTG8WxDMxA2qEHJ8d7oJGdFL3Ao5dbGQ7mA2M8TfuypN7ubdnbAczQ6/AW8ZjwCnjONgi2Ldk/KdRAyoO8JvgLordjiLxqCLOHJoSuTC4jK78jS1p9mnrQFi5mtDJATw3R5ChPiM9zS+Cu98E5Xa0BS3j4x10yoFt9biwEtn6E= Received: by 10.150.143.14 with SMTP id q14mr1211302ybd.113.1205868293176; Tue, 18 Mar 2008 12:24:53 -0700 (PDT) Received: by 10.150.230.16 with HTTP; Tue, 18 Mar 2008 12:24:53 -0700 (PDT) Message-ID: <3c0b01820803181224x5f64daadt58041d2bfa2db3fd@mail.gmail.com> Date: Tue, 18 Mar 2008 15:24:53 -0400 From: "Alexander Sack" To: "Gelsema, P (Patrick)" In-Reply-To: <52506.125.214.252.140.1205856838.squirrel@webmail.superhero.nl> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <47DEE8D6.9080708@sucked-in.com> <47DF39A7.1070307@boosten.org> <49903.203.127.42.92.1205811904.squirrel@www.superhero.nl> <47DF43AD.2020100@boosten.org> <46570.125.214.252.140.1205850870.squirrel@webmail.superhero.nl> <65A9476B618244C571C4EAC7@utd65257.utdallas.edu> <3c0b01820803180836x2f3a13batf181e1b2e6c9bf9c@mail.gmail.com> <52506.125.214.252.140.1205856838.squirrel@webmail.superhero.nl> Cc: Paul Schmehl , freebsd-questions@freebsd.org Subject: Re: FW: VMWare Tools for FreeBSD 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: Tue, 18 Mar 2008 19:24:57 -0000 Comments below: On Tue, Mar 18, 2008 at 12:13 PM, Gelsema, P (Patrick) wrote: > On Tue, March 18, 2008 23:36, Alexander Sack wrote: > > I believe the issue is that MNT_NODEV which should be defined in > > /usr/include/sys/mount.h was deprecated and removed from FreeBSD: > > > > http://ftp.cz.freebsd.org/pub/FreeBSD-cvs/gnats/conf/79715 > > > > At line 42 in hgfsmounter.c, add > > > > # define MNT_NODEV 0 > > > > Then rebuild. SHould work fine now. > > > > I configured my build environment via the README with ./configure > > LDFLAGS="/usr/local/lib" etc. > > > Done > > #./configure LDFLAGS="/usr/local/lib" --without-x > #make > #make install > > That all goes ok > But when I run #make modules I get an error > > wolverine# make modules > make -C modules > make -C "freebsd/vmmemctl" > make -C "freebsd/vmxnet" > cc -O2 -fno-strict-aliasing -pipe -D_KERNEL -DKLD_MODULE -std=c99 > -nostdinc -I. -I@ -I@/contrib/altq -finline-limit=8000 --param > inline-unit-growth=100 --param large-function-growth=1000 -fno-common > -mno-align-long-strings -mpreferred-stack-boundary=2 -mno-mmx -mno-3dnow > -mno-sse -mno-sse2 -mno-sse3 -ffreestanding -Wall -Wredundant-decls > -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith > -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -c > if_vxn.c > if_vxn.c: In function 'vxn_attach': > if_vxn.c:302: warning: passing argument 4 of 'bus_setup_intr' from > incompatible pointer type > if_vxn.c:302: warning: passing argument 5 of 'bus_setup_intr' from > incompatible pointer type > if_vxn.c:302: error: too few arguments to function 'bus_setup_intr' > if_vxn.c:378: error: 'struct arpcom' has no member named '_ac_enaddr' > if_vxn.c:385: error: 'struct arpcom' has no member named '_ac_enaddr' > *** Error code 1 > > Stop in /tmp/open-vm-tools-2008.03.03-79993/modules/freebsd/vmxnet. > *** Error code 1 > > Any ideas? bus_setup_intr() kernel API seems to have either changed or handled differently in 7.0. I believe you can add a NULL after the flags (INTR_MPSAFE) which tells BSD to use the standard interrupt handler instead of a top-level handler. _ac_enaddr is because arpcom as defined in net/if_arp.h no longer exists. Typically the protocol bits are stuffed in if_l2com (layer 2). I made the macro in net_compat.h #define VXN_SC2ENADDR(softc) (IF_LLADDR(VXN_SC2IFP(softc)) and then removed the "&" from both references in if_vxn.c as this macro already returns a pointer to char. That got me past this problem. Btw, this isn't an official port since I didn't really rectify the net_compat.h stuff (I suppose you could make the 600000 to 700055, etc.). I'm still getting some further issues with vnodeops and vfsops with some modules (I believe vops_lcok should be vops_lock1) but I don't know about the other problem. -aps -- "What lies behind us and what lies in front of us is of little concern to what lies within us." -Ralph Waldo Emerson