Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 26 Nov 2009 14:15:46 -0800
From:      Doug Barton <dougb@FreeBSD.org>
To:        freebsd-current@freebsd.org
Subject:   Re: Error in libexec/rpc.statd with today's -current
Message-ID:  <4B0EFE12.7040602@FreeBSD.org>
In-Reply-To: <4B0EDF95.2010707@FreeBSD.org>
References:  <4B0EDF95.2010707@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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/




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4B0EFE12.7040602>