2000-12-18 01:01:20

by Barry K. Nathan

[permalink] [raw]
Subject: [BUG] 2.4.0test13-pre3 apm.o unresolved symbols

When I try "modprobe apm" I get these errors:

/lib/modules/2.4.0-test13-pre3/kernel/arch/i386/kernel/apm.o: unresolved
symbol pm_send_all
/lib/modules/2.4.0-test13-pre3/kernel/arch/i386/kernel/apm.o: unresolved
symbol pm_active

This is my first time building APM as a module, so I don't know when the
error was first introduced...

-Barry K. Nathan <[email protected]>


2000-12-18 01:06:00

by Alan

[permalink] [raw]
Subject: Re: [BUG] 2.4.0test13-pre3 apm.o unresolved symbols

> /lib/modules/2.4.0-test13-pre3/kernel/arch/i386/kernel/apm.o: unresolved
> symbol pm_active
>
> This is my first time building APM as a module, so I don't know when the
> error was first introduced...

13pre in the Makefile redo

pm.o should be listed as a symbol exporting object in kernel/Makefile

2000-12-18 04:46:04

by Barry K. Nathan

[permalink] [raw]
Subject: [PATCH] 2.4.0test13-pre3 apm.o unresolved symbols

(Linus Torvalds added to the cc list because there's now a patch to fix
the problem.)

Alan Cox wrote:
> pm.o should be listed as a symbol exporting object in kernel/Makefile

Ok, here's a patch that does this. Tested for both the in-kernel and
module cases.

-Barry K. Nathan <[email protected]>

diff -ruN linux-2.4.0test13pre3/kernel/Makefile linux-2.4.0test13pre3bkn/kernel/Makefile
--- linux-2.4.0test13pre3/kernel/Makefile Sun Dec 17 14:17:47 2000
+++ linux-2.4.0test13pre3bkn/kernel/Makefile Sun Dec 17 17:55:11 2000
@@ -9,7 +9,7 @@

O_TARGET := kernel.o

-export-objs = signal.o sys.o kmod.o context.o ksyms.o
+export-objs = signal.o sys.o kmod.o context.o ksyms.o pm.o

obj-y = sched.o dma.o fork.o exec_domain.o panic.o printk.o \
module.o exit.o itimer.o info.o time.o softirq.o resource.o \