Re: lsof: Can't read kernel namelist from /System.map
You need a correct zSystem.map to go with the kernel.
This is a headache...
What I'm doing to automate the process is changing the kernel Makefile:
: leisner@thingy; cat kernel.makefile
--- Makefile 1996/09/14 00:38:40 1.1
+++ Makefile 1996/09/14 00:38:56
@@ -177,6 +177,7 @@
$(DRIVERS) \
$(LIBS) -o vmlinux
$(NM) vmlinux | grep -v '\(compiled\)\|\(\.o$$\)\|\( a \)' | sort >
System.map
+ cp System.map System.map.$(VERSION).$(PATCHLEVEL).$(SUBLEVEL).`
cat .version`
symlinks:
rm -f include/asm
making a directory /maps, putting the zSystem file there and running this
script:
leisner@thingy; cat /usr/local/bin/install_map
#! /bin/bash
version=$(uname -a | gawk '{ print $3 $4 }' | sed s/#/./)
file=/maps/System.map.$version
if [ -r $file ]; then
cp $file /zSystem.map
echo installing $file as map
else
echo $file does not exist
fi
from rc.local
BTW -- lsof didn't work with 2.1...
--
marty
leisner@sdsp.mc.xerox.com
Member of the League for Programming Freedom
--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-user-REQUEST@lists.debian.org . Trouble? e-mail to Bruce@Pixar.com
Reply to: