On Thu, 18 Nov 1999, Tim Sailer wrote:
>On Wed, Nov 17, 1999 at 10:29:59PM -0500, John Marr wrote:
>>    I recently rebuilt my kernel (2.2.11).  When the modules are loading 
>> during startup, I get an error that there are unresolved symbols. Any idea 
>> what this is, and how I can fix it? I made sure that all my module options 
>> are compiled, and I have no idea what to do.
>
>First, run 'depmod -a' and see if that helps. If not, delete the whole 
>tree /lib/modules/2.2.11, and then go to where you made your kernel and
>run 'make modules modules_install' again. That should get you straight.


I belive
depmod -F /proc/ksyms

will make sure the correct symbols are used, or so says the man page.

I got it wrong in my first message, i said depmod -a
/usr/src/linux/System.map. depmod looks first in /boot then "/" then
/usr/src/linux for System.map it will use the first one it finds, so
if the first one found is not from the correct kernel version,
trouble can be expected.

Another reason for unresolved syms, is;
one has compiled the same kernel version twice, the second time some
option was changed from a module to being compiled in the kernel or
not compiled at all, the result is that the old module gets left in
the modules directory causing the unresolved symbols.
Simply delete old modules, eg, ones with a timestamp earlier than the
modules which dont give unresolved syms.

The best way out of this is to use the "EXTRAVERSTION"
definintion in /usr/src/linux/Makefile like,

EXTRAVERSION = -1 then -2 -3 for each compile, that exclueds the
possablity of old modules causing the problem.

I appolagise for getting facts mixed up.


>Tim
>
>-- 
>   >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
>   >> Tim Sailer                       ><  Coastal Internet, Inc.          <<
>   >> Network and Systems Operations   ><  PO Box 671                      <<
>   >> http://www.buoy.com              ><  Ridge, NY 11961                 <<
>   >> [EMAIL PROTECTED]                     ><  (516) 476-3031                  <<
>   >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
--
Regards Richard
[EMAIL PROTECTED]
http://people.zeelandnet.nl/pa3gcu/

Reply via email to