Need help with link error when compiling a kernel

Need help with link error when compiling a kernel

Post by Masciarel » Sat, 17 Jan 1998 04:00:00



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.

 
 
 

1. Need help with link error when compiling a kernel

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.

2. iostat for linux?

3. Help: Kernel Compile/Link Errors v 1.3.20

4. startinnfeed keeps complaining

5. Link Error Compiling Kernel 1.2.13 - Please Help!

6. Boot Disk

7. kernel compiling errors - help needed

8. Stats comp.os.linux.misc (last 7 days)

9. Compiling Kernel 2.0.36 Error message need help

10. re-linking kernel - compile errors

11. Can't compile/link my kernel , help please :(

12. Kernel 1.3.19 & .20: compile error with stdarg.h needed

13. Error re-linking kernel "FATAL ERROR: Master Table Overflow"