From owner-freebsd-questions@FreeBSD.ORG Tue Nov 19 21:02:45 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id A7B1D31F for ; Tue, 19 Nov 2013 21:02:45 +0000 (UTC) Received: from mail-pd0-x22a.google.com (mail-pd0-x22a.google.com [IPv6:2607:f8b0:400e:c02::22a]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 85E9D2C45 for ; Tue, 19 Nov 2013 21:02:45 +0000 (UTC) Received: by mail-pd0-f170.google.com with SMTP id g10so4310849pdj.29 for ; Tue, 19 Nov 2013 13:02:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=FaUxsLuppSqbyD8LuMduIiNUzsG/fGAKwN66GG3t7QI=; b=XK9cuzChT5DEbxGvfa03Z/KcKZMliu9a9Rqvtu+7/65TTPn1Z0K7riu9XsY7Z3K6bo yB0Hzja/jYUbzdzHesWbUyWa2o+kOPQuTXYUg5XrF0HzsFCmg34RpmCbAVyp5hoMhDfw sj16UHbPBLEDTfAjzigUrahCuR2DFc7hZoBsQtuc3SfXmJPImsmceTa6uYdersNFLOcu BNiXBDCwwrbxRfyynjUVz9EHJhrQadTt7Iwme+LxFTZ9wrRrDdYtlQ3Wvg6TKJsrOqMX tXYnu6fD1CXED8J0F4MMsP4hICBbsRUvRimUSeRpP5dOIVayaVgVqHLRwtK+pyt9r+uJ YPbQ== MIME-Version: 1.0 X-Received: by 10.68.203.73 with SMTP id ko9mr2984498pbc.170.1384894965140; Tue, 19 Nov 2013 13:02:45 -0800 (PST) Received: by 10.68.99.194 with HTTP; Tue, 19 Nov 2013 13:02:45 -0800 (PST) In-Reply-To: <20131119200931.GE13289@blisses.org> References: <20131119200931.GE13289@blisses.org> Date: Tue, 19 Nov 2013 16:02:45 -0500 Message-ID: Subject: Re: Kernel build error (9.2 on 9.1 userland) From: "illoai@gmail.com" To: Mason Loring Bliss Content-Type: text/plain; charset=ISO-8859-1 Cc: "freebsd-questions@freebsd.org" X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Nov 2013 21:02:45 -0000 On 19 November 2013 15:09, Mason Loring Bliss wrote: > Hi there! I'm not an experienced FreeBSD user yet, but I'm interested in > doing more with it. > > I've got a FreeBSD 9.1 system that I've been updating with freebsd-update, > but since I use a custom kernel (it's a Xen PV domU) I've been building my > kernel separately. It just occurred to me that freebsd-update doesn't likely > touch my /usr/src. So, today I updated /usr/src to base/stable/9 and tried to > build, but my kernel build errors out. > > I'm wondering why the build is breaking on what should updated, pristine > source from the stable tree. Is building on 9.1 the issue, and I'm seeing > some conflict with the headers in my userland? What do I want to follow > instead of base/stable/9 to get bug fixes and such for 9.1? I see > base/release/9.1.0. Does that get security updates to match what > freebsd-update will download for me for stock items? > > cc1: warnings being treated as errors > /usr/src/sys/fs/nfsserver/nfs_nfsdport.c: In function 'nfsrv_sattr': > /usr/src/sys/fs/nfsserver/nfs_nfsdport.c:2313: warning: implicit declaration > of function 'NFSGETTIME' > /usr/src/sys/fs/nfsserver/nfs_nfsdport.c:2313: warning: nested extern > declaration of 'NFSGETTIME' [-Wnested-externs] > /usr/src/sys/fs/nfsserver/nfs_nfsdport.c: In function 'nfsv4_sattr': > /usr/src/sys/fs/nfsserver/nfs_nfsdport.c:2443: warning: passing argument 1 of > 'nfsv4_strtouid' from incompatible pointer type > /usr/src/sys/fs/nfsserver/nfs_nfsdport.c:2443: warning: passing argument 2 of > 'nfsv4_strtouid' makes pointer from integer without a cast > /usr/src/sys/fs/nfsserver/nfs_nfsdport.c:2443: warning: passing argument 3 of > 'nfsv4_strtouid' makes integer from pointer without a cast > /usr/src/sys/fs/nfsserver/nfs_nfsdport.c:2443: warning: passing argument 4 of > 'nfsv4_strtouid' from incompatible pointer type > /usr/src/sys/fs/nfsserver/nfs_nfsdport.c:2443: error: too few arguments to > function 'nfsv4_strtouid' > /usr/src/sys/fs/nfsserver/nfs_nfsdport.c:2469: warning: passing argument 1 of > 'nfsv4_strtogid' from incompatible pointer type > /usr/src/sys/fs/nfsserver/nfs_nfsdport.c:2469: warning: passing argument 2 of > 'nfsv4_strtogid' makes pointer from integer without a cast > /usr/src/sys/fs/nfsserver/nfs_nfsdport.c:2469: warning: passing argument 3 of > 'nfsv4_strtogid' makes integer from pointer without a cast > /usr/src/sys/fs/nfsserver/nfs_nfsdport.c:2469: warning: passing argument 4 of > 'nfsv4_strtogid' from incompatible pointer type > /usr/src/sys/fs/nfsserver/nfs_nfsdport.c:2469: error: too few arguments to > function 'nfsv4_strtogid' > *** [nfs_nfsdport.o] Error code 1 > > Stop in /usr/obj/usr/src/sys/XEN. > *** [buildkernel] Error code 1 > > Stop in /usr/src. > *** [buildkernel] Error code 1 > > Stop in /usr/src. > > > The best I could do to identify my userland seems to be this, from > /usr/include/sys/syscall.h: > > * $FreeBSD: release/9.1.0/sys/sys/syscall.h 229724 2012-01-06 19:30:17Z jhb > > Thanks in advance for clues! :) You have some options: The simplest is to bring your /usr/src back to 9.1-whatever & build kernel from there. Even if you don't intend to install a custom-built world, you probably need to build [parts of] a 9.2 world to build a 9.2 kernel on a 9.1 system. Toolchain & headers & libs for starters. Alternately, you could freebsd-update to 9.2 & build a 9.2 kernel from there. -- --