Usenet comp.os.linux.alpha (1997-2013)
 help / color / mirror / Atom feed
From: rob@GTEDHCP-56.inetarena.com (Robert M. Riches Jr.)
Subject: Re: unresolvd symbols when loading modules
Date: 2000/05/27	[thread overview]
Message-ID: <slrn8iuahh.37d.rob@GTEDHCP-56.inetarena.com> (raw)
In-Reply-To: 392F0512.54C79828@saunalahti.fi

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





      reply	other threads:[~2000-05-27  4:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 message]
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox