From owner-freebsd-questions@FreeBSD.ORG Tue Nov 19 20:09:34 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 98D0845D for ; Tue, 19 Nov 2013 20:09:34 +0000 (UTC) Received: from phlegethon.blisses.org (phlegethon.blisses.org [50.56.97.101]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 7C48D28AB for ; Tue, 19 Nov 2013 20:09:33 +0000 (UTC) Received: from blisses.org (cocytus.blisses.org [23.25.209.73]) by phlegethon.blisses.org (Postfix) with ESMTPSA id 110C3148B0C for ; Tue, 19 Nov 2013 15:09:31 -0500 (EST) Date: Tue, 19 Nov 2013 15:09:31 -0500 From: Mason Loring Bliss To: freebsd-questions@freebsd.org Subject: Kernel build error (9.2 on 9.1 userland) Message-ID: <20131119200931.GE13289@blisses.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) 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 20:09:34 -0000 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! :) -- The creatures outside looked from pig to man, and from man to pig, and from pig to man again; but already it was impossible to say which was which. - G. Orwell