Kernel Modules: unresolved symbols.

Stefan Möller stefan.c.moeller at t-online.de
Wed Oct 31 02:41:05 PST 2001


Hi,

I compiled Kernel 2.4.8 and the following modules:

lp.o, bsd_comp.o, ppa.o, scsi_mod.o, sd_mod.o, fat.o, isofs.o, nls_cp850.o, 
nls_iso8859-1.o, vfat.o

If I run depmod, I receive error messages for every module 
(depmod: *** Unresolved symbols in /lib/modules/2.4.8/kernel/ ...)

What really confuse me, is that I found symbols with "ksyms", that maybe 
identical with the unresolved symbols.

For example:

$ insmod fat

/lib/modules/2.4.8/kernel/fs/fat/fat.o: unresolved symbol inode_setattr
/lib/modules/2.4.8/kernel/fs/fat/fat.o: unresolved symbol load_nls
/lib/modules/2.4.8/kernel/fs/fat/fat.o: unresolved symbol generic_file_write
/lib/modules/2.4.8/kernel/fs/fat/fat.o: unresolved symbol generic_commit_write
/lib/modules/2.4.8/kernel/fs/fat/fat.o: unresolved symbol clear_inode
/lib/modules/2.4.8/kernel/fs/fat/fat.o: unresolved symbol kmalloc
/lib/modules/2.4.8/kernel/fs/fat/fat.o: unresolved symbol generic_read_dir
/lib/modules/2.4.8/kernel/fs/fat/fat.o: unresolved symbol kdevname
/lib/modules/2.4.8/kernel/fs/fat/fat.o: unresolved symbol load_nls_default
/lib/modules/2.4.8/kernel/fs/fat/fat.o: unresolved symbol __get_free_pages
/lib/modules/2.4.8/kernel/fs/fat/fat.o: unresolved symbol __mark_inode_dirty
/lib/modules/2.4.8/kernel/fs/fat/fat.o: unresolved symbol file_fsync
/lib/modules/2.4.8/kernel/fs/fat/fat.o: unresolved symbol iput
/lib/modules/2.4.8/kernel/fs/fat/fat.o: unresolved symbol block_read_full_page
/lib/modules/2.4.8/kernel/fs/fat/fat.o: unresolved symbol bread
/lib/modules/2.4.8/kernel/fs/fat/fat.o: unresolved symbol getblk
/lib/modules/2.4.8/kernel/fs/fat/fat.o: unresolved symbol generic_file_mmap
/lib/modules/2.4.8/kernel/fs/fat/fat.o: unresolved symbol panic
/lib/modules/2.4.8/kernel/fs/fat/fat.o: unresolved symbol ll_rw_block
/lib/modules/2.4.8/kernel/fs/fat/fat.o: unresolved symbol generic_file_read
/lib/modules/2.4.8/kernel/fs/fat/fat.o: unresolved symbol free_pages
/lib/modules/2.4.8/kernel/fs/fat/fat.o: unresolved symbol block_sync_page
/lib/modules/2.4.8/kernel/fs/fat/fat.o: unresolved symbol request_module
/lib/modules/2.4.8/kernel/fs/fat/fat.o: unresolved symbol cont_prepare_write
/lib/modules/2.4.8/kernel/fs/fat/fat.o: unresolved symbol unload_nls
/lib/modules/2.4.8/kernel/fs/fat/fat.o: unresolved symbol d_alloc_root
/lib/modules/2.4.8/kernel/fs/fat/fat.o: unresolved symbol sys_tz
/lib/modules/2.4.8/kernel/fs/fat/fat.o: unresolved symbol event
/lib/modules/2.4.8/kernel/fs/fat/fat.o: unresolved symbol mark_buffer_dirty
/lib/modules/2.4.8/kernel/fs/fat/fat.o: unresolved symbol kfree
/lib/modules/2.4.8/kernel/fs/fat/fat.o: unresolved symbol iunique
/lib/modules/2.4.8/kernel/fs/fat/fat.o: unresolved symbol get_empty_inode
/lib/modules/2.4.8/kernel/fs/fat/fat.o: unresolved symbol utf8_wcstombs
/lib/modules/2.4.8/kernel/fs/fat/fat.o: unresolved symbol set_blocksize
/lib/modules/2.4.8/kernel/fs/fat/fat.o: unresolved symbol xtime
/lib/modules/2.4.8/kernel/fs/fat/fat.o: unresolved symbol igrab
/lib/modules/2.4.8/kernel/fs/fat/fat.o: unresolved symbol simple_strtoul
/lib/modules/2.4.8/kernel/fs/fat/fat.o: unresolved symbol sprintf
/lib/modules/2.4.8/kernel/fs/fat/fat.o: unresolved symbol __brelse
/lib/modules/2.4.8/kernel/fs/fat/fat.o: unresolved symbol insert_inode_hash
/lib/modules/2.4.8/kernel/fs/fat/fat.o: unresolved symbol 
block_write_full_page
/lib/modules/2.4.8/kernel/fs/fat/fat.o: unresolved symbol strtok
/lib/modules/2.4.8/kernel/fs/fat/fat.o: unresolved symbol inode_change_ok
/lib/modules/2.4.8/kernel/fs/fat/fat.o: unresolved symbol printk
/lib/modules/2.4.8/kernel/fs/fat/fat.o: unresolved symbol 
__generic_copy_to_user
/lib/modules/2.4.8/kernel/fs/fat/fat.o: unresolved symbol generic_block_bmap
/lib/modules/2.4.8/kernel/fs/fat/fat.o: unresolved symbol hardsect_size
Using /lib/modules/2.4.8/kernel/fs/fat/fat.o

$ ksyms -am | grep "printk"
c011014c  printk_R__ver_printk

or

$ ksyms -am | grep "kfree"
c0122dd0  kfree_R__ver_kfree
c019bc48  sock_kfree_s_R__ver_sock_kfree_s
c019c7e4  __kfree_skb_R__ver___kfree_skb

or

$ ksyms -am | grep "kmalloc"
c0122c9c  kmalloc_R__ver_kmalloc
c019bc0c  sock_kmalloc_R__ver_sock_kmalloc

Is "printk_R__ver_printk" equal "printk", or "kfree_R__ver_kfree" equal to 
"kfree"? If these are equal, what can I do to resolve them? If they are not , 
where can I get the symbols that are missed (maybe a list of all possible 
kernel symbols)?


Thanks in advance,

Stefan Möller 
-- 
Unsubscribe: send email to listar at linuxfromscratch.org
and put 'unsubscribe lfs-support' in the subject header of the message



More information about the lfs-support mailing list