Re: Unresolved symbols in streams
dan_gora <[email protected]>
| Newsgroups | gmane.linux.kernel.streams |
|---|---|
| Message-ID | <[email protected]> |
Hi Andrew... I would try a couple of things: 1) Make sure that the kernel source that you are compiling LiS against corresponds to the kernel that you will run with LiS (use the running kernel first since that is the least complicated). If necessary move the /usr/src/linux-2.4.21 directory out of the way and reinstall the source from the rpm. 2) Make sure that /usr/src/linux points to the directory of kernel source above. 3) Run "make mrproper" on the kernel source directory first. I have found that for whatever reason the kernel source that comes "out of the box" comes in some half-jacked state which could be the source of this problem. I don't know exactly what the "half-jacked" state is, but I have had problems compiling things before if I didn't do this step. I can't remember exactly if the problems I had were missing symbols like this, but this step will not hurt anything. 4) After the Mr. Proper step, run "make dep" on the kernel source. 5) Now go back to the LiS directory and run "make very-clean", then try "make" again. When asked if you want to use the currently running kernel, you can try saying "yes" (the default), but make sure and verify that if found the kernel source directory where you did the previous steps. It works for all 2.4 based RH versions that I know of. It seems to have a bug with finding the correct kernel source directory on SuSE 9.2 (kernel 2.6.8) however. If that doesn't work, scream, then send a 'script' output of what you are doing to the list so that I can try it on my machine, or at least see what is going on better. dan --- Dave Grothe <[email protected]> wrote: > > > > > >Hi Dave, > > > >I am trying to build LiS 2.16.18 against Linux kernel 2.4.21. > Although the > >streams modules compile correctly, any attempt to load the modules > with > >insmod gives multiple 'Unresolved symbol' messages as below. > > > >/lib/modules/2.4.21-4.EL/misc/streams.o: unresolved symbol > >pci_read_config_word_R923654cb > >/lib/modules/2.4.21-4.EL/misc/streams.o: unresolved symbol > >get_empty_filp_Raeacfe52 > > > >During build 'depmod' notes unresolved symbols too. > > > >I am running a pre-built red hat kernel for which I have the > source > >installed. I have configured the source and run make dep. I > currently > >have CONFIG_MODVERSIONS set (because my running kernel does and > without it > >LiS will not build). I have tried compiling the source and running > that > >kernel, but I have not been successful with that approach either > because > >my new built kernel will not boot. > > > >I notice from googling that others have had this problem, but > >unfortunately no one has provided an answer. > > > >Regards, > > > > > >Andrew Aldridge > > > >Software Engineer, Air Traffic Systems Development Unit > > > >Airways New Zealand > > > >PO Box 14-131, Christchurch, NZ. > > > > > > > >Phone: +64 3 358 1500 > > > >DDI: +64 3 357 2802 > > > >FAX: +64 3 357 2807 > > > > > > > >-- ===== Dan Gora Software Engineer Adax, Inc. Tel: +55 12-3845-3572 email: [email protected]