Buildkernel dies building linprocfs
Jason Andresen
jandrese at mitre.org
Mon May 3 11:11:58 PDT 2004
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
More information about the freebsd-current
mailing list