From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111c93,e2dc88e1bdc40923 X-Google-Attributes: gid111c93,public From: rob@GTEDHCP-56.inetarena.com (Robert M. Riches Jr.) Subject: Re: unresolvd symbols when loading modules Date: 2000/05/27 Message-ID: #1/1 X-Deja-AN: 627812285 References: <392F0512.54C79828@saunalahti.fi> X-Abuse-Info: Otherwise we will be unable to process your complaint properly X-Complaints-To: support@usenetserver.com Organization: none-at-all User-Agent: slrn/0.9.5.7 (UNIX) Reply-To: richesr1@inetarena.com NNTP-Posting-Date: Fri, 26 May 2000 21:50:39 EDT Newsgroups: comp.os.linux.alpha On Sat, 27 May 2000 02:13:22 +0300, h0l0gRaM 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