From owner-freebsd-current@FreeBSD.ORG Thu Nov 26 22:15:44 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E3040106566B for ; Thu, 26 Nov 2009 22:15:44 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: from mail2.fluidhosting.com (mx21.fluidhosting.com [204.14.89.4]) by mx1.freebsd.org (Postfix) with ESMTP id 7CDA88FC15 for ; Thu, 26 Nov 2009 22:15:44 +0000 (UTC) Received: (qmail 8917 invoked by uid 399); 26 Nov 2009 22:15:29 -0000 Received: from localhost (HELO foreign.dougb.net) (dougb@dougbarton.us@127.0.0.1) by localhost with ESMTPAM; 26 Nov 2009 22:15:29 -0000 X-Originating-IP: 127.0.0.1 X-Sender: dougb@dougbarton.us Message-ID: <4B0EFE12.7040602@FreeBSD.org> Date: Thu, 26 Nov 2009 14:15:46 -0800 From: Doug Barton Organization: http://SupersetSolutions.com/ User-Agent: Thunderbird 2.0.0.23 (X11/20090822) MIME-Version: 1.0 To: freebsd-current@freebsd.org References: <4B0EDF95.2010707@FreeBSD.org> In-Reply-To: <4B0EDF95.2010707@FreeBSD.org> X-Enigmail-Version: 0.96.0 OpenPGP: id=D5B2F0FB Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: Error in libexec/rpc.statd with today's -current X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Nov 2009 22:15:45 -0000 Doug Barton wrote: > ===> libexec/rpc.rstatd (all) > cc -O2 -pipe -g -g -std=gnu99 -fstack-protector -Wformat=2 > -Wno-format-extra-args -Werror -static -o rpc.rstatd rstatd.o > rstat_proc.o -lrpcsvc -lutil -ldevstat > /usr/obj/usr/local/src/tmp/usr/lib/libdevstat.a(devstat.o)(.text+0x157c): > In function `readkmem': > /usr/local/src/lib/libdevstat/devstat.c:1552: undefined reference to > `kvm_read' > /usr/obj/usr/local/src/tmp/usr/lib/libdevstat.a(devstat.o)(.text+0x1593):/usr/local/src/lib/libdevstat/devstat.c:1553: > undefined reference to `kvm_geterr' > /usr/obj/usr/local/src/tmp/usr/lib/libdevstat.a(devstat.o)(.text+0x15f1): > In function `readkmem_nl': > /usr/local/src/lib/libdevstat/devstat.c:1569: undefined reference to > `kvm_nlist' > /usr/obj/usr/local/src/tmp/usr/lib/libdevstat.a(devstat.o)(.text+0x1617):/usr/local/src/lib/libdevstat/devstat.c:1570: > undefined reference to `kvm_geterr' > *** Error code 1 > > devstat.c already includes kvm.h so that error makes no sense. Thanks to thompsa, adding -lkvm to the Makefile "fixes" this problem, but it's not clear why it's occurring. BTW, my last successful build was 199540. Doug -- Improve the effectiveness of your Internet presence with a domain name makeover! http://SupersetSolutions.com/