I'm trying to compile kernel 1.3.57 using gcc 2.7.2. It all goes fine,
until the linking at the end, when i get this:
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/f
s.o ipc/ipc.o net/network.a \
fs/filesystems.a \
drivers/block/block.a drivers/char/char.a drivers/net/net.a drivers/pci/
pci.a \
/usr/src/linux/arch/i386/lib/lib.a /usr/src/linux/lib/lib.a /usr/src/lin
ux/arch/i386/lib/lib.a -o vmlinux
init/main.o: In function `start_kernel':
init/main.o(.text+0x8ec): undefined reference to `dquot_init'
arch/i386/kernel/kernel.o: In function `enable_hlt':
arch/i386/kernel/kernel.o(.text+0x65a): undefined reference to `do_execve'
[500 or so lines of errors deleted]
make: *** [vmlinux] Error 1
I've seen a few posts on this problem, but not many answers. One person
suggested that this is due with an incompatibilty between elf
and a.out, but I'm using the slackware 3.0 package which i had thought
supports elf. I'm kind of new at this and I'd appreciate it if someone
can explain my mistake to me in the smallest words possible :).
Thanks,
Brian