From owner-freebsd-questions@FreeBSD.ORG Sat May 19 23:03:09 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 D18AB106566B for ; Sat, 19 May 2012 23:03:09 +0000 (UTC) (envelope-from kaduk@mit.edu) Received: from dmz-mailsec-scanner-1.mit.edu (DMZ-MAILSEC-SCANNER-1.MIT.EDU [18.9.25.12]) by mx1.freebsd.org (Postfix) with ESMTP id 6D0268FC0A for ; Sat, 19 May 2012 23:03:08 +0000 (UTC) X-AuditID: 1209190c-b7fad6d000000920-80-4fb826acb7ae Received: from mailhub-auth-3.mit.edu ( [18.9.21.43]) by dmz-mailsec-scanner-1.mit.edu (Symantec Messaging Gateway) with SMTP id CA.40.02336.CA628BF4; Sat, 19 May 2012 19:03:08 -0400 (EDT) Received: from outgoing.mit.edu (OUTGOING-AUTH.MIT.EDU [18.7.22.103]) by mailhub-auth-3.mit.edu (8.13.8/8.9.2) with ESMTP id q4JN38kY028189; Sat, 19 May 2012 19:03:08 -0400 Received: from multics.mit.edu (MULTICS.MIT.EDU [18.187.1.73]) (authenticated bits=56) (User authenticated as kaduk@ATHENA.MIT.EDU) by outgoing.mit.edu (8.13.6/8.12.4) with ESMTP id q4JN36Kq000745 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Sat, 19 May 2012 19:03:07 -0400 (EDT) Received: (from kaduk@localhost) by multics.mit.edu (8.12.9.20060308) id q4JN36xK006760; Sat, 19 May 2012 19:03:06 -0400 (EDT) Date: Sat, 19 May 2012 19:03:06 -0400 (EDT) From: Benjamin Kaduk To: Jerry McAllister In-Reply-To: <20120516214416.GA14804@gizmo.acns.msu.edu> Message-ID: References: <20120514222724.GA5158@gizmo.acns.msu.edu> <20120516214416.GA14804@gizmo.acns.msu.edu> User-Agent: Alpine 1.10 (GSO 962 2008-03-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrNIsWRmVeSWpSXmKPExsUixCmqrbtGbYe/wdNzqhYvv25isVh0LMKB yWPGp/ksHs+ORAQwRXHZpKTmZJalFunbJXBl7Lq3ibmgV7Ci63YXSwPjKd4uRk4OCQETiYbt zUwQtpjEhXvr2boYuTiEBPYxSlzYe4sJwtnAKPHuyCF2COcAk8TkM09YQFqEBBoYJfpPpncx cnCwCGhLzPmnCRJmE1CRmPlmIxuILSKgJvHuwxVmEJtZQFFiXdtzsG3CAhISS/YuAbM5BSwk Dux8B2bzCjhKXPk7iRVi1wxGiVsPWhlBEqICOhKr909hgSgSlDg5E+IGZgFLiXN/rrNNYBSc hSQ1C0lqASPTKkbZlNwq3dzEzJzi1GTd4uTEvLzUIl1DvdzMEr3UlNJNjOAwleTZwfjmoNIh RgEORiUe3suTtvkLsSaWFVfmHmKU5GBSEuVVV93hL8SXlJ9SmZFYnBFfVJqTWnyIUYKDWUmE l0EOKMebklhZlVqUD5OS5mBREudV0XrnJySQnliSmp2aWpBaBJOV4eBQkuB9CjJUsCg1PbUi LTOnBCHNxMEJMpwHaDiTGsjw4oLE3OLMdIj8KUZFKXFeAZCEAEgiozQPrheWRl4xigO9Iswr CFLFA0xBcN2vgAYzAQ2uZNsGMrgkESEl1cDow3nGreLInP1dT9/PP7dQjGGJw6b1URvbVwS/ faWztFzGVD1eT4Az4lz+hzpptsPh5wrmveP15mJd+eN53poLDjd0kwwnhR0RPP8r5fi1/IWp PTrzb5cVLOL8uD7/cPLTb4xPTdimXevL2bR8GouUuG7s3VeHhTd82yWkv/+R2K+Fll73OY7/ U2Ipzkg01GIuKk4EAKIphB3+AgAA Cc: freebsd-questions@freebsd.org Subject: Re: AFS install 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: Sat, 19 May 2012 23:03:09 -0000 On Wed, 16 May 2012, Jerry McAllister wrote: > On Tue, May 15, 2012 at 12:51:04AM -0400, Benjamin Kaduk wrote: > > Hello Ben, > > Thank you for your response. > > I cleaned and then copied the 82 file to 83 and then edited it > to replace all 82-s with 83 or added it where there seemed to be > a list of versions. It got a lot further, but now dies not finding > another file. > > ../rpc/types.h:77:27: error: rpc/netconfig.h: No such file or directory Ah, I see what is going on. This is an artifact of the old build system I inherited, which is no longer used for OpenAFS git master; unfortunately, the new code (which uses FreeBSD's standard kernel module building infrastructure) is not directly mergable to the OpenAFS 1.6.x branch, so the release version is still using the old build system. The "proper" way to fix it is to clean the work tree, redo the copying param.amd64_fbsd_82.h file, and then find this part of openafs-1.6.0/src/libafs/MakefileProto.FBSD.in: % -ln -fs ${KSRC}/nfs nfs % % -ln -fs /usr/include/rpc rpc % % -ln -fs ${KSRC}/rpc rpc % which is doing conditionals on the particular FreeBSD version to account for moved headers, instead of a more intelligent version number comparison. Add "-fbsd_83" to the first line ("all -fbsd_71 [...]") and "fbsd_83" to the second one ("fbsd_71 fbsd_72 [...]"), and then a build should get past this issue. However, if you just want it to build now, I think there is an easier fix. (I'm not 100% sure, since there are some ... weird ... things going on in this build system, and I haven't played with it recently.) Edit openafs-1.6.0/src/libafs/Makefile and find the line that has "-ln -fs /usr/include/rpc rpc" and change that to be "-ln -fs ${KSRC}/rpc rpc" instead (preserving the tab character at the beginning of the line). I expect that to let the build continue. Again, sorry for all these troubles; I'll bump up the priority of getting the port updated. -Ben Kaduk