compiling kernel and undefined references errors

compiling kernel and undefined references errors

Post by Brian Si » Fri, 09 Feb 1996 04:00:00

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 :).




1. kernel can't compile, undefined references errors!

mm, reposting this as I think it didn't get thru somehow..

I've got problems trying to compile my kernel (slackware 1.2.13, and
have tried 1.3.0 as well)... when it tries to link all the '.o' files
(or whatever it is it's trying to do at the end) it comes out with a
plethora of 'undefinted reference to blah_blah_blah' errors, and fails
to put anything nice together for me at all..

any advice will be MUCHLY appreciated! cheers

2. FIXED: Kernel panic with Mandrake 7.2 (x86_serial_nr=1 doesn't seem to work)

3. undefined reference error compiling kernel with modules

4. ASUS SP97-V compatible?

5. Kernel Compile Errors: 'undefined reference to' (HELP!)

6. 2.5.68-mm2

7. undefined reference to `pw_crypt',undefined reference to `spw_unpack'

8. getty_ps2.0.6b ... testing release

9. Disk Crash - Cannot compile - error: undefined reference to `_main

10. Error compiling kdelibs-2.0.*: "undefined reference to mainParse in kio/.libs/"

11. 2.5.19 compile error (undefined reference to `idescsi_init')

12. ?compile error: lyx-1.1.4-fix3 rpm, undefined references