ld -m elf_i386 -T /usr/src/linux/arch/i386/vmlinux.lds -e stext
arch/i386/kernel/head.o arch/i386/kernel/init_task.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 \
fs/filesystems.a \
net/network.a \
drivers/block/block.a drivers/char/char.a drivers/misc/misc.a
drivers/net/net.a drivers/cdrom/cdrom.a drivers/pci/pci.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
mm/mm.o: In function `handle_mm_fault':
mm/mm.o(.text+0x1421): undefined reference to `lock_kernel'
mm/mm.o(.text+0x14e6): undefined reference to `unlock_kernel'
make: *** [vmlinux] Error 1
This is an SMP kernel. I looked into asm-i386/smp_lock.h and sure enough
the functions are there.
Now, they are defined as
extern __inline__ ..... lock_kernel (...)
extern __inline__ ..... unlock_kernel (...)
I personally thought "extern" and "__inline__" where mutually exclusive,
but I guess not.
Still though, how does one resolve this?
(egcs 1.0.3, SMP, i686, binutils 2.9.1.0.4).
TIA!
.............................................................................
..nicholas j. leon..........mrnick.binary9.net.........nicholas@binary9.net..
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu