Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 35601 - Missing ksyms (instead of listing kernel symbols, ksyms just points to insmod)
Summary: Missing ksyms (instead of listing kernel symbols, ksyms just points to insmod)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-12-11 06:36 UTC by Dean Pierce
Modified: 2004-10-02 23:45 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dean Pierce 2003-12-11 06:36:19 UTC
ksyms, which is supposed to display all exported kernel symbols, is installed as a symbolic link to insmod.


Reproducible: Always
Steps to Reproduce:
ksyms -a

Actual Results:  
bash-2.05b# ksyms -a
insmod: can't read '-a': No such file or directory

Expected Results:  
a list of kernel symbols, similar to that found in /proc/kallsyms

(the kallsyms tool also points to insmod)


*  sys-devel/binutils
      Latest version available: 2.14.90.0.7-r3

bash-2.05b# uname -a
Linux caliban 2.6.0-test11 #2 Wed Dec 10 22:04:24 PST 2003 i686 AMD Athlon(TM)
XP 2200+ AuthenticAMD GNU/Linux
Comment 1 Whit Blauvelt 2004-02-01 15:10:02 UTC
Hmm, I don't even have ksyms now at all, which prevents dosemu from running:

# dosemu -v
...
grep: /proc/ksyms: No such file or directory
...

and indeed there's no such file.

# uname -a
Linux free.transpect.com 2.6.1-gentoo #5 Mon Jan 26 19:29:49 EST 2004 i686 AMD Athlon(tm) XP 2500+ AuthenticAMD GNU/Linux
Comment 2 Whit Blauvelt 2004-02-02 09:40:47 UTC
The problem I was having with dosemu startup can be fixed by changing the reference to "ksyms" in /usr/bin/dosemu to "kallsyms". Guess kallsyms is the new ksyms. When using the proc filesystem, unfortunately a simple symbolic link can't be set with "ln -s". There must be a configuration file somewhere that would accomplish this and not break stuff that expects the ksyms file to still be there?

Now using 2.6.2-rc1-gentoo btw - the earliset 2.6.x kernels still had /proc/ksyms (or at least the dosemu script still worked without mod, so must have been seeing that).
Comment 3 Chris Bainbridge (RETIRED) gentoo-dev 2004-02-04 03:57:28 UTC
ksyms is a link to insmod so it doesn't work. (eg. man ksyms, ksyms -a). On my system its listed as belonging to two packages sys-apps/module-init-tools and sys-apps/modutils. Did one of them wipe the real ksyms?
Comment 4 Chris Bainbridge (RETIRED) gentoo-dev 2004-02-04 03:58:58 UTC
kallsyms is not the new ksyms, for me at least.. 

# ls -l /sbin/kallsyms
lrwxrwxrwx    1 root     root            6 Jan 11 20:06 /sbin/kallsyms -> insmod

It is also linked to insmod.
Comment 5 SpanKY gentoo-dev 2004-02-04 05:47:40 UTC
you shouldnt have sys-apps/module-init-tools and sys-apps/modutils installed at the sametime

pick one and remove the other
Comment 6 SpanKY gentoo-dev 2004-10-02 23:45:32 UTC
fixed in 3.0-r2

the problem was that after we install modutils and change the names to all have '.old' in them, we didnt update the ksyms links to point to insmod.old

just so you know, the ksyms apps will not work with 2.6.x