I just installed RedHat 5.0 on a Gateway 2000 486DX-33 with 24MB RAM and 850MB
HD. This was the first time I've installed Linux on the machine, and everything
seems to work fine. Now, I'm trying to compile my own kernel (2.0.32). The
compile goes OK, but then I get 139 lines of "undefined reference" errors at
link time. Here's the link command followed by the first few error messages:
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
drivers/cdrom/cdrom.a \
/usr/src/linux-2.0.32/arch/i386/lib/lib.a
/usr/src/linux-2.0.32/lib/lib.a /usr/src/linux-2.0.32/arch/i386/lib/lib.a -o
vmlinux
init/main.o(.data+0xf0): undefined reference to `floppy_setup'
arch/i386/kernel/kernel.o: In function `sys_sigreturn':
arch/i386/kernel/kernel.o(.text+0x9c7): undefined reference to `verify_area'
arch/i386/kernel/kernel.o(.text+0xb46): undefined reference to `verify_area'
< many lines cut >
make: *** [vmlinux] Error 1
The errors are in the following object files: kernel.o, mm.o, fs.o, ipv4.o,
proc.o, ide.o, mem.o, and random.o. They have undefined references to functions
like: verify_area, do_no_page, floppy_eject, tcp_send_ack, and too many others
to list.
After getting all these error messages, I did 'make zImage' again. It went
through all the directories, saying nothing to be compiled, then tried to link,
resulting in the same errors.
I haven't found anything related to this in any HOWTOs or FAQs. Can someone get
me pointed in the right direction?
Thanks,
Jim M.