klogd + New Kernel Modules

John Gotts (jgotts@umich.edu)
Sat, 08 Feb 1997 19:35:14 -0500


sysklogd 1.3 patchlevel 3 seems to be broken with respect to the new way of
doing modules. (This version is not available on sunsite; however, it is used
with Red Hat 4.1. The source RPM converted to tar format is available at
http://www-personal.engin.umich.edu/~jgotts/sysklogd-1.3-15.tar.gz.) The
attached diff eliminates compilation errors, but klogd still spits out the
following messages, indicating (to me) that it can't grok the new module
format:

Error seeking /dev/kmem
Error adding kernel module table entry

--- ksym_mod.c.orig Sat Feb 8 18:53:11 1997
+++ ksym_mod.c Sat Feb 8 18:54:54 1997
@@ -515,7 +515,7 @@
last = &mp->sym_array[nsym];
}

-
+#if 0
/*
* At this stage of the game we still cannot give up the
* ghost. There is the possibility that the address is
@@ -561,8 +561,8 @@
sym->offset = (void *) value - mp->module.addr;
return(mp->name);
}
+#endif
}
-
/* It has been a hopeless exercise. */
return((char *) 0);
}

--
John GOTTS <jgotts@engin.umich.edu> http://www-personal.engin.umich.edu/~jgotts
Senior, EE/Motif Programmer/SysAdmin/Linux Hacker/Amateur Radio Callsign N8QDW