Re: Buildkernel dies building linprocfs

From: Jason Andresen <jandrese_at_mitre.org>
Date: Mon, 03 May 2004 14:11:42 -0400
Robert Huff wrote:
> 	Existing system is:
> 
> FreeBSD jerusalem.litteratus.org 5.2-CURRENT FreeBSD 5.2-CURRENT #0:
> Mon Mar  8 12:27:03 EST 2004
> 
> 	When compiling a new kernel from source updated at midnight
> EST (config file is appended), build dies thus:
> 
> touch hack.c
> cc -shared -nostdlib hack.c -o hack.So
> rm -f hack.c
> sh /usr/src/sys/conf/newvers.sh JERUSALEM
> cc -c -O -pipe -march=pentium4 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -fformat-extensions -std=c99 -g -nostdinc -I-  -I. -I/usr/src/sys -I/usr/src/sys/contrib/dev/acpica -I/usr/src/sys/contrib/ipfilter -I/usr/src/sys/contrib/pf -I/usr/src/sys/contrib/dev/ath -I/usr/src/sys/contrib/dev/ath/freebsd -I/usr/src/sys/contrib/ngatm -D_KERNEL -include opt_global.h -fno-common -finline-limit=8000  -mno-align-long-strings -mpreferred-stack-boundary=2 -ffreestanding -Werror  vers.c
> linking kernel.debug
> linprocfs.o: In function `linprocfs_init':
> /usr/src/sys/compat/linprocfs/linprocfs.c:1013: undefined reference to `procfs_docurproc'
> /usr/src/sys/compat/linprocfs/linprocfs.c:1035: undefined reference to `procfs_notsystem'
> /usr/src/sys/compat/linprocfs/linprocfs.c:1035: undefined reference to `procfs_doprocfile'
> /usr/src/sys/compat/linprocfs/linprocfs.c:1039: undefined reference to `procfs_candebug'
> /usr/src/sys/compat/linprocfs/linprocfs.c:1039: undefined reference to `procfs_attr'
> /usr/src/sys/compat/linprocfs/linprocfs.c:1039: undefined reference to `procfs_doprocmem'
> *** Error code 1
> 
> 	I'm sure it's All My Fault, but can't seem to figure out what's
> broken.  Looked in NOTES and GENERIC, no help.
> 

Try adding:

options PROCFS			# Process Filesystem

to your kernel config.


-- 
   \  |_ _|__ __|_ \ __| Jason Andresen        jandrese_at_mitre.org
  |\/ |  |    |    / _|  Network and Distributed Systems Engineer
_|  _|___|  _| _|_\___| Office: 703-883-7755
Received on Mon May 03 2004 - 09:11:58 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:53 UTC