* unresolvd symbols when loading modules
@ 2000-05-26 4:00 Robert M. Riches Jr.
2000-05-27 4:00 ` h0l0gRaM
0 siblings, 1 reply; 3+ messages in thread
From: Robert M. Riches Jr. @ 2000-05-26 4:00 UTC (permalink / raw)
I just compiled a custom kernel in order to enable device
modules. Now, when I try to load the module, I get the following
message:
/lib/modules/2.2.13-0.9/misc/bttv.o: unresolved symbol init_mm
This is on a UP2000 running Redhat 6.1.
A grep of the sources says init_mm is defined in sched.h:
extern struct mm_struct init_mm;
However, ksyms doesn't find init_mm.
What am I doing wrong? Is there some kernel configuration option
that is needed to cause the kernel to export init_mm?
Thanks.
Robert Riches
richesr1@inetarena.com
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: unresolvd symbols when loading modules
2000-05-26 4:00 unresolvd symbols when loading modules Robert M. Riches Jr.
@ 2000-05-27 4:00 ` h0l0gRaM
2000-05-27 4:00 ` Robert M. Riches Jr.
0 siblings, 1 reply; 3+ messages in thread
From: h0l0gRaM @ 2000-05-27 4:00 UTC (permalink / raw)
"Robert M. Riches Jr." wrote:
> I just compiled a custom kernel in order to enable device
> modules. Now, when I try to load the module, I get the following
> message:
>
> /lib/modules/2.2.13-0.9/misc/bttv.o: unresolved symbol init_mm
>
> This is on a UP2000 running Redhat 6.1.
>
> A grep of the sources says init_mm is defined in sched.h:
>
> extern struct mm_struct init_mm;
>
> However, ksyms doesn't find init_mm.
>
> What am I doing wrong? Is there some kernel configuration option
> that is needed to cause the kernel to export init_mm?
>
> Thanks.
>
> Robert Riches
> richesr1@inetarena.com
Did you do "depmod -a" in /lib/modules/2.2.13-0.9 ?
--
It's getting uncommonly easy to kill people in large numbers, and the first
thing a principle does -- if it really is a principle -- is to kill somebody.
-- Dorothy L. Sayers, "Gaudy Night"
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: unresolvd symbols when loading modules
2000-05-27 4:00 ` h0l0gRaM
@ 2000-05-27 4:00 ` Robert M. Riches Jr.
0 siblings, 0 replies; 3+ messages in thread
From: Robert M. Riches Jr. @ 2000-05-27 4:00 UTC (permalink / raw)
On Sat, 27 May 2000 02:13:22 +0300, h0l0gRaM <hgm@saunalahti.fi> wrote:
>"Robert M. Riches Jr." wrote:
>
>> I just compiled a custom kernel in order to enable device
>> modules. Now, when I try to load the module, I get the following
>> message:
>>
>> /lib/modules/2.2.13-0.9/misc/bttv.o: unresolved symbol init_mm
>>
>> This is on a UP2000 running Redhat 6.1.
>>
>> A grep of the sources says init_mm is defined in sched.h:
>>
>> extern struct mm_struct init_mm;
>>
>> However, ksyms doesn't find init_mm.
>>
>> What am I doing wrong? Is there some kernel configuration option
>> that is needed to cause the kernel to export init_mm?
>>
>> Thanks.
>>
>> Robert Riches
>> richesr1@inetarena.com
>
>Did you do "depmod -a" in /lib/modules/2.2.13-0.9 ?
Yes, I believe that had been done. The root cause of the
problem, as pointed out by Michal at UAlberta, was the symbol had
not been exported by kernel/ksyms.c. When I added the proper
export function and rebuilt the kernel and the modules, the
module loads without problems.
Now, the challenge is to find out why xawtv hangs and/or where
RPM installed the sources for kwintv. Of course, after modifying
kernel source code, that should be easy. :-) :-)
Thanks again to Michal for the help.
Robert Riches
richesr1@inetarena.com
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2000-05-27 4:00 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-05-26 4:00 unresolvd symbols when loading modules Robert M. Riches Jr.
2000-05-27 4:00 ` h0l0gRaM
2000-05-27 4:00 ` Robert M. Riches Jr.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox