psaux as a module and misc.c
Mon, 8 Apr 1996 23:34:29 -0400

I encounter an error when I build my kernel. I configure psaux as a module
and enable C&T support. The first pass of a "make zImage" errors because
misc.c references psaux_init and expects psaux.o it to be built and
linked (?) in with psaux.o. But, since psaux is configured as module, it is
not built until I do a "make modules".

So why is misc.c expecting psaux_init?
Seems like the
"#ifndef MODULE"
on line number 186 (of misc.c) would keep psaux_init from being referenced
(I compile most everything as modules) ?

Since I know I want psaux as a module, I commented out lines 198, 199 & 200
as a temporary fix in my source.

Any comments about how to fix this problem? Or am I the only one with
this problem?

Below is the last few lines of my "make zImage".


ld -m elf_i386 -Ttext 0x100000 -e stext arch/i386/kernel/head.o init/main.o init/version.o \
arch/i386/kernel/kernel.o arch/i386/mm/mm.o kernel/kernel.o mm/mm.o fs/fs.o ipc/ipc.o net/network.a \
fs/filesystems.a \
drivers/block/block.a drivers/char/char.a drivers/net/net.a \
/usr/src/linux/arch/i386/lib/lib.a /usr/src/linux/lib/lib.a /usr/src/linux/arch/i386/lib/lib.a -o vmlinux
misc.o(.text+0x1c0): undefined reference to `psaux_init'
make: *** [vmlinux] Error 1