PANIC: sym(4) didn't MODULE_DEPEND cam(4).

From: Norikatsu Shigemura <nork_at_FreeBSD.org>
Date: Sat, 11 Sep 2004 02:17:16 +0900 (JST)
	I found a problem.  sym(4) module didn't MODULE_DEPEND on
	cam(4).  So modulaized sym(4) will be panic on boot with
	following message.

- - - - - - - - - - - - - - - - - - - - - - - - - - -
(snip)
link_elf: symbol xpt_print_path undefined
KLD file sym.ko - could not finalize loading
kernel trap 12 with interrupts disabled
(snip)
- - - - - - - - - - - - - - - - - - - - - - - - - - -

	I made a patch to fix this problem.  In my environment, this
	looks good works.  Anyone, please commit following patch.

Index: sym_hipd.c
===================================================================
RCS file: /home/ncvs/src/sys/dev/sym/sym_hipd.c,v
retrieving revision 1.48
diff -u -r1.48 sym_hipd.c
--- sym_hipd.c	17 Mar 2004 17:50:45 -0000	1.48
+++ sym_hipd.c	10 Sep 2004 17:10:34 -0000
_at__at_ -8501,6 +8501,7 _at__at_
 static devclass_t sym_devclass;
 
 DRIVER_MODULE(sym, pci, sym_pci_driver, sym_devclass, 0, 0);
+MODULE_DEPEND(sym, cam, 1, 1, 1);
 
 
 static struct sym_pci_chip sym_pci_dev_table[] = {
Received on Fri Sep 10 2004 - 15:17:18 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:11 UTC