On Wed, 29 May 2002, Rick Moen wrote:
> > that depends on your klogd daemon -- the one that logs kernel messages.
> > with the sysklogd brand, it searches only under /System.map, and
> > /boot/System.map. some other klogd brand might search somewhere else.
>
> This pretty much can't be right: Searching just /System.map on a system
> that might have quite a number of kernels installed would be very, very
> brain-dead. It would mean that only one kernel could have a correct
> symbols map. That would be really bad design, which seems implausible.
oh, what i meant was /System.map-* and /boot/System.map-* where * is the
kernel version (ex. 2.2.21) in case a bare "System.map" file is not found
under / and /boot. so sysklogd brand is pretty intelligent.
>
> > for other software needing the symbol table, it looks for
> > /usr/src/linux/System.map
>
> I doubt this, too: I suspect one must look into the specifics of each
> such program.
doubt not. compiling kernel related software (ex: iptables) will need a
standard source code location for the kernel sources. /usr/src/linux is
a *standard* place for source code and not /, nor /boot. agreed?
this is also true in case you are also compiling for another platform or
have another kernel subdirectory in which case you can alter the kernel
path via KERNEL_DIR variable (well usually).
> > but with loadable modules, it doesnt have anything to do with
> > System.map. instead it checks under /proc/ksyms.
>
> The author was _not saying_ loadable modules use System.map for a
> listing of exported symbols. Quoting the relevant portion again:
>
yes, but i just mentioned it in case some audience infer from the author's
note that the message "module XXXX could not be loaded because some
versions do not match" is a result of a missing/wrong map file. no harm
done to your friend.
pong
_
Philippine Linux Users Group. Web site and archives at http://plug.linux.org.ph
To leave: send "unsubscribe" in the body to [EMAIL PROTECTED]
To subscribe to the Linux Newbies' List: send "subscribe" in the body to
[EMAIL PROTECTED]