Error in libexec/rpc.statd with today's -current

Doug Barton dougb at FreeBSD.org
Thu Nov 26 22:15:45 UTC 2009


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/



More information about the freebsd-current mailing list